I need to send smtp mail with link
Navision Developer.NAV Certified.
//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
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...
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.
Thank you Thomas
but can you send me the code
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.
Thanks a lot Thomas
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.
Sorry Thomas
I tried to click on the "Verify Solution" many times but it's not working .
Ahmed,
You can't verify posts which are from before our upgrade to Community Server 2008.5 in December.
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.