Sending email confirmation using codeunit 400

nbangazanbangaza Member Posts: 30
HI Everyone,

I created a button 'Email Order'on the sales order form to automatically send an email confirmation to a customer. I am currently using Nav W1(SP1 5.0) and Outlook 2007. I used codeunit 400 to do this function because our users access Navision through Terminal Server services and with codeunit 397 didnt work when i tested it on the TS.

My question is, is it possible when using codeunit 400 not to have the mail send automatically but to save it in drafts or pop up when you click on the button 'Email Order' so that the users can make adjustments if they need to?

for example when using codeunit 397 you can say
MailSent := Mail.NewMessage(Customer."E-Mail",'','subject,body,attachment,TRUE);
and specify TRUE or FALSE if you want the mail to automatically be sent

Regards,
N

Comments

  • FDickschatFDickschat Member Posts: 380
    You can use CU397. The only thing every user working on a TS needs to do is run Outlook once on the TS to generate a MAPI profile on the TS (and have TS windows profiles set to roaming of course).
    Frank Dickschat
    FD Consulting
Sign In or Register to comment.