I am SMTP mail feature to send the mail with the help of codeunit 400. I have added the code on a push button. The mail feature is executing very properly, but I want the Document No. also to be sent in the mail in which I am facing the problem.Can anyone help me with this…
This is the code I have added…
SMTP.CreateMessage(‘NAVISION MAIL’,‘erp@ripple.in’,‘divyashree.s@nrrs.net’,
‘test’,’’,TRUE);
SMTP.AppendBody('Dear Sir / Madam,the Document No. '+“No.”+‘has been posted’);
SMTP.Send;
I checked with the debugger… it doesn’t have any value… But I hav written the code to execute while posting a document… It has to take the No. which gets posted right? Or shud I write somethin else fa it to pick the No.??