Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending email
Message
 
To
08/05/2007 05:48:41
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01223300
Message ID:
01223301
Views:
22
Your server surely rejects relaying. See http://www.systemnetmail.com/


>Hi
>I am trying to send a email from .NET it seems to work but nothing happens. After several minutes I get the message
>“your email message was unable to be sent because your email server rejected the sender”
>
>   public void SendEmail()
>        {
>
>        MailMessage mail = new MailMessage();
>      mail.From = new MailAddress("fromName@btopenworld.com");
>      mail.To.Add("toName@btopenworld.com");
>      mail.Subject = "hi from stuart ";        	
>      mail.Body = "This is the main message";
>SmtpClient smtp = new SmtpClient("mail.btinternet.com");
>      smtp.Credentials = new NetworkCredential("myUserName@btopenworld.com", "myPassword");
>      smtp.Send(mail);
>
>        }
>
>
>The user name and passwords are correct
>What am I doing wrong?
>TIA
>Stuart
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform