1
Vote

System.FormatException - invalid character

description

Hi,

I tried implementing it in SharePoint 2013. The installation was smooth. But on running the webpart got the following issue.

System.FormatException: An invalid character was found in the mail header: ','. at System.Net.Mail.DotAtomReader.ReadReverse(String data, Int32 index) at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index) at System.Net.Mail.MailAddressParser.ParseMultipleAddresses(String data) at System.Net.Mail.MailAddressCollection.ParseValue(String addresses) at SPS_EmailAttachmentButton.Layouts.SPS_EmailAttachment.EmailAttachment.SendEmail(String To, String CC, List`1 Attachments) at SPS_EmailAttachmentButton.Layouts.SPS_EmailAttachment.EmailAttachment.OnClickSubmit(Object sender, EventArgs e)

I have tried all possible options in "To", single Email/Multiple Email with comma/Multiple Email with semi-colon but no respite. Please see attachment. Also the cancel button on the pop-up doesn't seem to close the pop-up as well. Please advise.

file attachments

comments