Error Sending Email. Value Cannot be null. Parameter name: address

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
I am getting the above error when trying to send an email.

Full message is

System.ArgumentNullException: Value cannot be null. Parameter name: address at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding) at Nop.Services.Messages.EmailSender.SendEmail(EmailAccount emailAccount, String subject, String body, String fromAddress, String fromName, String toAddress, String toName, String replyto, IEnumerable`1 bcc, IEnumerable`1 cc) at Nop.Services.Messages.QueuedMessagesSendTask.Execute()

However, when I use 'Send test email' it works.

I am getting this error when user tries to send an email response with active chat. That is if the operator is not present.

Thanks in advance for the help.

Prathima
9 years ago
(To) Email address is missing some point.
9 years ago
Thank you very much for the reply.

I have gone into the queued messages (administrator section) and when I open them they have both to and from email address set.

Prathima
9 years ago
What about to name? should be empty or something, NOT null
9 years ago
Both ToName and FromName have values too.

only fields that are not filled are CC and BCC fields.
9 years ago
I have noticed 'ReplyTo' field is null.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.