Hello Pavez
I downloaded the latest version of the DLL .. then downloaded the source and found the method in the class ImapBase sendAndReceive had a comment block, this below:
if (text2.StartsWith ("+") &&! command.StartsWith ("UID FETCH"))
{
flag = false;
}
when uncommented the function worked.
the only problem now is when I add attachment, it's a mistake "startIndex nof found"
ImapX.Message newMsg ImapX.Message = new ();
newMsg.Subject = mail.strAssunto;
newMsg.From = new ImapX.MailAddress (mail.strNomeOrigem, mail.strOrigem);
newMsg.To.Add (new ImapX.MailAddress (mail.strNomeDestinatario, mail.strDestinatario));
if (mail.lstCopias.Count> 0)
{
foreach (string emailEdn in mail.lstCopias)
newMsg.To.Add (new ImapX.MailAddress ("" emailEdn));
}
if (anexosEnvio.Count> 0)
{
foreach (ImapX.Attachment anex in anexosEnvio)
{
newMsg.Attachments.Add (annex);
}
}
newMsg.HtmlBody.TextData = mail.strCorpo;
newMsg.Date = DateTime.Now;
QryStrings NameValueCollection = Request.QueryString;
if (qryStrings ["TP"] == "reply")
newMsg.AddFlag (ImapX.ImapFlags.ANSWERED);
else newMsg.AddFlag (ImapX.ImapFlags.SEEN);
AppendMessage (newMsg, Constants.LOCAWEB_ENVIADAS);
I downloaded the latest version of the DLL .. then downloaded the source and found the method in the class ImapBase sendAndReceive had a comment block, this below:
if (text2.StartsWith ("+") &&! command.StartsWith ("UID FETCH"))
{
flag = false;
}
when uncommented the function worked.
the only problem now is when I add attachment, it's a mistake "startIndex nof found"
ImapX.Message newMsg ImapX.Message = new ();
newMsg.Subject = mail.strAssunto;
newMsg.From = new ImapX.MailAddress (mail.strNomeOrigem, mail.strOrigem);
newMsg.To.Add (new ImapX.MailAddress (mail.strNomeDestinatario, mail.strDestinatario));
if (mail.lstCopias.Count> 0)
{
foreach (string emailEdn in mail.lstCopias)
newMsg.To.Add (new ImapX.MailAddress ("" emailEdn));
}
if (anexosEnvio.Count> 0)
{
foreach (ImapX.Attachment anex in anexosEnvio)
{
newMsg.Attachments.Add (annex);
}
}
newMsg.HtmlBody.TextData = mail.strCorpo;
newMsg.Date = DateTime.Now;
QryStrings NameValueCollection = Request.QueryString;
if (qryStrings ["TP"] == "reply")
newMsg.AddFlag (ImapX.ImapFlags.ANSWERED);
else newMsg.AddFlag (ImapX.ImapFlags.SEEN);
AppendMessage (newMsg, Constants.LOCAWEB_ENVIADAS);