Skip to main content

Hi,

 

I am getting below error in some email events. This error is not coming for every email event, in some events emails are getting triggered and in some events i am getting this error.

 

Error:

"There is no connection string for the  destination email address xxxx" 

 

Error Detail: 

23066733","2015-05-26 01:03:57","Error","General","0","ErrorMessage","SourceCode.Workflow.Common.SmtpMail","0 SMTP mail send failure: Verify the SMTP connection strings are correct and that SMTP is working properly. Exception: A recipient must be specified.","anonymous","0.0.0.0",

 

Please provide any solution to resolve this issue.

 

Regards,

Hemant

The wording is a bit verbose, but your problem is here:

 

A recipient must be specified.

 

Be sure that you are always providing an email address when sending an email.  This is a common mistake when using a SmartObjects in the "To:" field, then a user is encountered that doesn't have an email address.  This can also happen if you are sending to a list of email addresses and you have an extra semi-colon.  For example, consider the following strings:

 

foo@bar.com;bar@baz.com;

foo@bar.com;;bar@baz.com

 

Sending an email to either of these would result in the exception you are seeing.  The first is invalid because the trailing semicolon gets interpretted as an empty address at the end.  The second is invalid because the two semicolons gets interpretted as an empty address in the middle.


I had the similar problem in our project.

 

I found if you add ";" at the end of last email address it will cause an issue. Also if you add Multiple ";" in between 2 email address it will also fail and gives you similar error.

 

 


Reply