Hello,
I am working with SMTP mail. i am sending posted sales invoice using SMTP mail it is working fine. But it not showing the Dialog box i want to open the dialog before send the email.
this is what i tried and its working fine just want to open the dialog before sending the email
SmtpMail.CreateMessage(SMTPSetup."User ID",SMTPSetup."User ID",SMTPSetup."User ID",'Email With Signature','',TRUE);
SmtpMail.AddAttachment(FilePath,'salesinvoice.pdf');
SmtpMail.AppendBody('Hi All, <BR><BR>');
SmtpMail.AppendBody('This is test<BR><BR>');
SmtpMail.AppendBody('<HR>');
SmtpMail.AppendBody('<BR>');
SmtpMail.AppendBody('Regards,<BR>');
SmtpMail.AppendBody('M Arif<BR>');
SmtpMail.AppendBody('New- Cronus International<BR>');
CompanyInfo.CALCFIELDS(Picture);
IF CompanyInfo.Picture.HASVALUE THEN BEGIN
TempBlob.INIT;
TempBlob.Blob := CompanyInfo.Picture;
TempBlob.INSERT;
FileName := FileManagment.BLOBExport(TempBlob,'Signature.jpg',FALSE);
END;
SmtpMail.AppendBody('<IMG style="HEIGHT: 153px; WIDTH: 445px" src="file:///'+ FileName +'"'+ 'width=100 height=100>');
SmtpMail.Send;
Hello,
You can use the Outlook integration using dotnet variable.
See the reference Outlook Attachment & Send in NAV Using Dotnet Variables
Ok, There is Page ID 9700, You have to call this page, You can take help from Codeunit 9520 Email Management by using RunDialog function.
Please dig out more on this.
Cheers!
I am using Nav 2017 yes i know the default functionality but i am trying with custom email body witch include company logo that's why i chose smtp
It is working for me only as i click on action it send email not showing the dialog i want to show the dialog before send the email
Please mention which version you are using
As per NAV 2016 you can create your own email profile and set it with the report after SMTP Mail setup done.
Click On Posted Sales Invoice > Email Button (this is default functionality of NAV) no need to write custom code. Hope it will help you.
Sohail Ahmed
1,200
YUN ZHU
1,006
Super User 2025 Season 1
Mansi Soni
836