Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with sending email
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Trouble with sending email
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01007103
Message ID:
01007103
Views:
64
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

Next
Reply
Map
View

Click here to load this message in the networking platform