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.N ormal;
mail.BodyFormat = System.Web.Mail .MailFormat.Tex t;
mail.BodyEncodi ng = System.Text.Enc oding.Unicode;
System.Web.Mail .SmtpMail.SmtpS erver = "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 ?