SMTP mail with link

Navision Articles

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

This post has 9 Replies | 1 Follower

Top 500 Contributor
Male
Posts 70
570 Points
Joined: Jul 16, 2008
Last Online:
Dec 20, 2009 21:52
ahmed ali Posted: Aug 7, 2008 20:44
How helpful was this post/question? Please rate here:

 I need to send smtp mail with link Confused

Navision Developer.
NAV Certified.

Top 500 Contributor
Male
Posts 70
570 Points
Joined: Jul 16, 2008
Last Online:
Dec 20, 2009 21:52
ahmed ali replied on Aug 7, 2008 20:58
How helpful was this comment/solution? Please rate here:

//SMTPVar = code uint 400 

 
SMTPVar.CreateMessage('Name','mail@hotmail.com','mail@hotmail.com','STPM','New',True);
SMTPVar.Send;

I need to know the error in this code and what the code i need to add
link in mail

Navision Developer.
NAV Certified.

Top 500 Contributor
Male
Posts 70
570 Points
Joined: Jul 16, 2008
Last Online:
Dec 20, 2009 21:52
ahmed ali replied on Feb 9, 2009 14:05
How helpful was this comment/solution? Please rate here:

I developed some forms on Navision and i used SMTP mail to sent  the email from form with item path  and it seem in the email like this

Normal 0 false false false EN-US X-NONE AR-SA MicrosoftInternetExplorer4

 navision://client/run?database=d:%5Cerp_solution%5Cnavision%5Cr%26%26d%5Cdata%5Cr  %26%26d1.fdb%26company=Ver4.0TrainingMe%26servertype=NAVISION%26target=Form%2030%26view=SORTING(Field1)%26position=Field1=0(PC0000001)

I want to convert this path to link so i can open this item from this path directly...  

Navision Developer.
NAV Certified.

Top 10 Contributor
Male
Posts 1,415
21,188 Points
Joined: Aug 16, 2000
Last Online:
Mar 20, 2010 15:59
Location: Vienna, Austria, Europe
Moderator
Sponsor
Thomas Brodkorb replied on Feb 9, 2009 14:29
How helpful was this comment/solution? Please rate here:

You need to build some html code with the <a> tag yourself and assign it to the body.

We did this several times and it works fine.

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

Top 500 Contributor
Male
Posts 70
570 Points
Joined: Jul 16, 2008
Last Online:
Dec 20, 2009 21:52
ahmed ali replied on Feb 9, 2009 15:11
How helpful was this comment/solution? Please rate here:

Thank you Thomas

but can you send me the code  Embarrassed

Navision Developer.
NAV Certified.

Top 10 Contributor
Male
Posts 1,415
21,188 Points
Joined: Aug 16, 2000
Last Online:
Mar 20, 2010 15:59
Location: Vienna, Austria, Europe
Moderator
Sponsor
Thomas Brodkorb replied on Feb 9, 2009 16:19
How helpful was this comment/solution? Please rate here:

Mail.CreateMessage('Thomas','thomas@domain.com', 'you@you.com', 'This is a html Test','<a href="http://dynamicsuser.net">click this link</a>',TRUE);

Mail is a variable for CU 400.

Just replace the text under double quotes with the link you want ot call.

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

Top 500 Contributor
Male
Posts 70
570 Points
Joined: Jul 16, 2008
Last Online:
Dec 20, 2009 21:52
ahmed ali replied on Feb 9, 2009 20:47
How helpful was this comment/solution? Please rate here:

Thanks a lot Thomas


Navision Developer.
NAV Certified.

Top 10 Contributor
Male
Posts 1,415
21,188 Points
Joined: Aug 16, 2000
Last Online:
Mar 20, 2010 15:59
Location: Vienna, Austria, Europe
Moderator
Sponsor
Thomas Brodkorb replied on Feb 20, 2009 22:38
How helpful was this comment/solution? Please rate here:

ahmed ali:

Thanks a lot Thomas

Would you please be so kind to verify the solution which helped you to solve your problems?
This helps others with similar problem to see that there is a solution for their problem and also helps you and the posters of the cverified solutions to earn points.

To do so, just click the green "Verify Solution" button in the post you want to verify.

 

Thomas Brodkorb


Dynavics & DynamicSolutions Based on the improved budget situation is light at the end of the tunnel is now permanently switched on.

 

Don't forget to the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

 

Top 500 Contributor
Male
Posts 70
570 Points
Joined: Jul 16, 2008
Last Online:
Dec 20, 2009 21:52
ahmed ali replied on Feb 21, 2009 12:43
How helpful was this comment/solution? Please rate here:

Sorry Thomas

I tried to click on the "Verify Solution"  many times but it's not working .

Navision Developer.
NAV Certified.

Top 10 Contributor
Male
Posts 5,053
94,835 Points
Joined: Oct 1, 1995
Last Online:
Mar 20, 2010 16:01
Location: Copenhagen, Denmark
DynamicsNAVMVP
Moderator
SystemAdministrator
Erik P. Ernst replied on Feb 21, 2009 12:54
How helpful was this comment/solution? Please rate here:

Ahmed,

You can't verify posts which are from before our upgrade to Community Server 2008.5 in December.

 

Best regards,
Erik P. Ernst

DUG’s Admin's Blog

Don't forget to "Verify Solution" the post(s) that solved your problem. This credits the experts who helped, earns you points and marks your thread as Resolved so we all know you have been helped.

Page 1 of 1 (10 items) | Get this RSS feed | Bookmark and Share