I wanted to put an error message on the page so the user could see their message didn't get through in the event the email was not sent. It looks like your code was written with that in mind.
It helped to have the ex.InnerException replaced with (ex.InnerException ?? ex).Message
Around line 209 where you have the call to the log, you should probably update it to the following:
umbraco.BusinessLogic.Log.Add(umbraco.BusinessLogic.LogTypes.Error, -1, string.Format("Error creating or sending contact mail, check if there is a mailFrom property on your document and that it has a value, or specify a MailFrom parameter on the macro call exception: {0}", (ex.InnerException ?? ex).Message));
System Errors when sending emails
Hi Sebastiaan,
I wanted to put an error message on the page so the user could see their message didn't get through in the event the email was not sent. It looks like your code was written with that in mind.
I have the following patch for you to consider.
Yo Seb,
Here is another little update for you.
It helped to have the ex.InnerException replaced with (ex.InnerException ?? ex).Message
Around line 209 where you have the call to the log, you should probably update it to the following:
is working on a reply...