System.web.mail

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I'm using following code to send the emai

MailMessage myMail = new MailMessage()
myMail.From="(e-mail address removed)"

myMail.To="(e-mail address removed)"
myMail.Subject="subject"

myMail.Body="Body"
SmtpMail.SmtpServer="myMailServer"
SmtpMail.Send (myMail)

The problem is the I can only send the mail on the same server. if i
have t
send a mail to a different server like (e-mail address removed) . it shows th
following erro

The server rejected one or more recipient addresses. The server
respons
was: 550 not local host yahoo.com, not a gatewa

how to send the mail to different server

Thanks in advance
da
 
HI,
how should i configure my mail server properly. Some on told me that i can send to a different server by giving the id and password of my web server. I don't know much about that.
How should i proceed further

Thanks

Das
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SMTP question 8
Email Client 1
Email out of C# 1
sending an email 1
Send Mail Problem 3
503 This mail server requires authentication 2
mail attachment program in c# 1
System.Net.Mail.SmtpClient is slower 1

Back
Top