Hi,
I tryed to send an email with the smtpmail class in the .net framework
and I got an error in Outlook.
Here is my code:
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
mail.From = "to**@toto.to";
mail.To = to**@toto.to;
mail.Subject = "subject";
mail.Body = "message";
mail.Priority = System.Web.Mail.MailPriority.Normal;
mail.BodyFormat = System.Web.Mail.MailFormat.Text;
mail.BodyEncoding = System.Text.Encoding.Unicode;
System.Web.Mail.SmtpMail.SmtpServer = "smtpServerName";
System.Web.Mail.SmtpMail.Send(mail);
Here is the Outlook error:
Can't open this item. Could not complete the operation. One or more
parameter values are not valid.
Microsoft has some infos there:
http://support.microsoft.com/default...b;en-us;198909
But this does not help me a lot !
Any idea ?