The parameter 'addresses' cannot be an empty string

末鹿安然 提交于 2019-11-28 13:32:01

try

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

and verify the content of the variable "toEmailAddress".

This exception is being thrown by the MailAddress constructor. It means you are trying to add an empty string as an email address, which is not valid.

In this case it means toEmailAddress is an empty string.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!