SMTP ERROR MESSAGE

This message is for C/AL programmers: A DotNet variable has not been instantiated. Attempting to call

Microsoft.Dynamics.Nav.SMPT.SmtpMessage.Send in CodeUnit SMTP Mail:TrySend

Did you call CreateMessage function before sending the e-mail?

Hi ,

First use the SMTP.Createmessage function by filling the parameters and then try SMTP.Send function to send the mail.