new SharpMessage( ImapX.Message.GetAsString()) throws a non explicit error : {"The type initializer for 'anmar.SharpMimeTools.SharpMessage' threw an exception."}
Is this ok?
and ImapX.Message.MessageBuilder() throws this:
{"StartIndex cannot be less than zero.\r\nParameter name: startIndex"}
Best regards,
AK89
Comments: ** Comment from web user: ak89 **
Is this ok?
and ImapX.Message.MessageBuilder() throws this:
{"StartIndex cannot be less than zero.\r\nParameter name: startIndex"}
Best regards,
AK89
Comments: ** Comment from web user: ak89 **
So, while calling ImapX.Message.MessageBuilder() the function throws an exception on line 670 while your .indexOf('/') returns -1, I don't know what do you want to find with that... my current3.FileName = "file.pdf" and nothing more..
stringBuilder.AppendFormat("Content-Type: {0}; name=\"{1}\"{2}", current3.FileType,
current3.FileName.Substring(current3.FileName.IndexOf('/')).Trim(new[]
{
'/'
}), Environment.NewLine);
Please tell me what were you intending to do with this