Hi All,
how to send email notification from dynamic senders instead of Admin email pulled from SMTP Mail setup
SMTPSetup.GET;
SMTPMail.CreateMessage
('NAV Admin',
'Whoeversendthis@myemail.com', //Sender
'Recipient@gmail.com', //Recipient
'Test Send Email',
'Hi This is only for testing',
TRUE);
SMTPMail.Send;
this is my code.
at the sender part usually I pulled from SMTPsetup."user id".
but i need to pull from other email
can we do that?
Thanks
Answers
it will then get the setting based on the sender.
But for 365 BC, you will need to check whether there is a standard event for you to call in your extension as i have not checked on this version.
but as long as can do this way is good enough.
Thanks a lot.
still has error message