Hi all,
When I try to send an email using the DotNetNuke.Services.Mail.Mail.SendMail utility (DNN 4.9.2) I get no subject line and no message body content if I use the following method overload:
Note: sendFrom, testRecipients, replyTo, subjectLine are variables that I have made sure contain values as I step through the debugger in VS2005 so it all looks fine before the SendMail operation.
Mail.SendMail(sendFrom, testRecipients, "", "", replyTo, DotNetNuke.Services.Mail.MailPriority.Normal, subjectLine, DotNetNuke.Services.Mail.Mailformat.Html, System.Text.Encoding.UTF8, bodyText, null, "", "", "", "", false);
Again, the message does get sent but it arrives without a subject line or a body content.
I changed the code to use this other overload and the message gets sent and it arrives ok, with a subject line and the message body:
Mail.SendMail(sendFrom, testRecipients, "", "", DotNetNuke.Services.Mail.MailPriority.Normal, subjectLine, DotNetNuke.Services.Mail.Mailformat.Html, System.Text.Encoding.UTF8, bodyText, "", "", "", "", "", false);
Does anyone know if there's a known bug in the DotNetNuke.Services.Mail.Mail.SendMail system when using the overload that contains the ReplyTo?
Thanks in advance!
Jose Lopez
DotNetNuke.Services.Mail.
DotNetNuke.Services.Mail.