Quantcast
Channel: Aspose.Email Product Family
Viewing all articles
Browse latest Browse all 1367

email stack in draft

$
0
0
Hi,

I'm trying to send email from my web site using the user credential. My issues at this point is that the email is not sent to the recipient, it's stack in the draft folder of the sender and I need to provide the user password.

I use the following code:

            IEWSClient Iclient = EWSClient.GetEWSClient("https://owa.myDomain.com/ews/Exchange.asmx", userName, Password);
           
            // Create instance of type MailMessage
            Aspose.Email.Mail.MailMessage msg2 = new Aspose.Email.Mail.MailMessage();
            msg2.From = userName + "@myDomain.com";
            msg2.To = "user1@xxx.com ";
            msg2.Subject = "Subject";
            msg2.HtmlBody = "<h3>Body</h3>";

            Iclient.Send(msg2);

Why my message is stack in 'userName' draft folder ? And how to use user Credential?

Viewing all articles
Browse latest Browse all 1367

Trending Articles