Hi Everybody,
I need help with the Emails. To say the truth I haven't got any idea of how to set Navision to be able to send emails. I have read quite a lot from mibuso but I must admit that I haven't found the right solution. Can anyone help me out?
0
Comments
out the solutions you have read on the forum, how do they not meet your needs, what are your needs, are you trying to send email notifications for completed sales orders. or mayby you want to be able to email a purchase order to a vendor. or maybe you want to email your customer statements each month.
but from your post we really have no idea what you are looking for.
2) Or you can use some SMTP module for that - search for JMail or SMTP Mail on forum and in download section.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Mail.NewMessage(ToName,CCName,Subject,Body,AttachFileName,OpenDialog);
If you don't have a CC or attachment just leave them blank (''). The open dialog basically means if you want it to send the e-mail automatically or not. Use the value FALSE to auto send the email and TRUE if you want it to open and sit there for the user to edit before sending.
Ensure that you have setup Microsoft Office Outlook as default mail and also
have a working a profile-Latest version would be better MS Office Outlook 2003
Use this code
Mail.NewMessage('E-Mail Address','Cc E-Mail Address',
'Subject' ,'MessageBody','',FALSE) ;
Declare Mail as Codeunit 397
You can also Search the forum :arrow: <Mail Code Unit 397>
there are lots of helpful info
I have got a problem with the emails again. I have used the above code of the mail.newmessage which you have suggested above and it has worked perfectly for some time. For some strange reason all of a sudden it simply stopped sending emails without any error messages or anything of the sort.
I have been checking the code all over again but to no avail. I have tested the same coding on both Navision SP3 and Sp2 but while the SP3 is working fine still the SP2 is simply not sending any emails. The line of code is the following:
MailModule.NewMessage('***@***.com,'','NAV - Interaction Logs',EmailBody,'',FALSE);
MailModule is codeunit Mail.
Has anyone ever encountered this problem?
Regards,
Stephen