Reply-to SMTP Mail NAV 2016

Hi, I need to set a different Reply-to on SMTP Email.
How can I do this on NAV 2016?

I’m using CU 400 to build my e-mail, this e-mail have an PDF attachment.
I will appreciate any help.

KR,

Iã Mendes

Well you can set your own senderadresse if you use createMessage

SMTPMail.CreateMessage(SenderName,SenderAddress,Recipients,Subject,Body,HtmlFormatted);
Then you can use:
SMTPMail.AddAttachment(‘You own text or HTML’);
SMTP.Send()

Thanks, that is what i´m doing.
But I need to define always the same senderAdress to avoid bloqued e-mails.
Ex: support@test.com
It was a client demand we can’t chage it.

To clarify you want a mail to be sent from ex. support@test.com, but when they hit reply on the email it needs to send it to helpdesk@test.com?

Yes that is the objective!

Well if you a set on using codeunit 400, I think that will be a problem, codeunit 400 is using the .NET assembly called Microsoft.dynamics.Nav.SMTP which you not support what you need.

smtp.png

You could add the .NET assembly “System.Net.Mail.MailMessage” there you can set “ReplyTo”

OK thank you I will try to find out another way