Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Forums : .NET : ASP.NET : not able to send email with smtp VERY URGENT!! Signup · Login
Author Thread
not able to send email with smtp VERY URGENT!!
Posted in tutorial: Sending Emails using ASP.NET
·  nidhi
User
Joined: 22 Jul 2004
Total Posts: 1

not able to send email with smtp VERY URGENT!!

Posted: 22 Jul 2004
iam sending mail with smtp .
code is as:
I am importing System.Web.Mail

Dim objEmail As New Email()
objEmail.FromAddress = "ernidhi2003@yahoo.com"
objEmail.ToAddress = "nidhi@hotmail.com objEmail.EmailSubject = "hi"

objEmail.EmailBody = "hi"
SmtpMail.SmtpServer = "209.249.62.185"

SendMail(objEmail)
Label1.Text = "sent"
also using "try catch" but getting no error . also, on running the code i get the msg "sent" through the Label1. still, the mail is not received at nidhi@hotmail.com.

i have checked at dos promp that smtp service is running on my system
·  Faisal Khan
AdminAdminAdminAdmin
Joined: 24 Sep 2002
Total Posts: 594
Re: not able to send email with smtp VERY URGENT!!
Posted: 23 Jul 2004
If your SMTP server is running on your local system then set SmtpMail.SmtpServer to "localhost".

Faisal Khan.
Stardeveloper.com
Read Blog | Follow on Facebook, Twitter
Want to leave a comment? Login or Register for free!

Users Who Have Visited This Thread In Last 24 Hours
4 Visitors

Login to post a comment or start a new thread
UserName Or Email Address:       Password:       Auto-Login:    
· Create New User Account
· Send Forgotten Password by Email
 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.