Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with sending email
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Trouble with sending email
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01007103
Message ID:
01007103
Vues:
63
I am trying to send email from a webform. The user is allowed to type a short message in a textbox then send it with a send button. The click event of the send button implements the following block of email-sending code:
		MailMessage loMessage = new MailMessage();
		loMessage.From = this.lblDataFrom.Text;
		loMessage.To = this.lblDataTo.Text;
		loMessage.BodyFormat = MailFormat.Text;
		loMessage.Priority = MailPriority.High;
		loMessage.Body = this.txtMessage.Text;
		SmtpMail.Send(loMessage);
But I get the following error message upon clicking the Send button:
The server response was: 550 5.7.1 Unable to relay for 
BTW, I am runing this from my developing machine which has IIS and SMTP Virtual Server.
Where is the problem?

TIA
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform