The parameter 'addresses' cannot be an empty string

后端 未结 2 1544
说谎
说谎 2020-12-11 03:08

I am trying to send an email asp.net, using the System.Net.Mail.SmtpClient class.

However I am getting the following exception message:

The parameter         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 03:47

    try

    message.To.Add(New MailAddress(toEmailAddress));
    

    and verify the content of the variable "toEmailAddress".

提交回复
热议问题