473,416 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Problem in Sending Email Using asp.net

Can any1 help me...
How to send emails using asp.net..
I m using windows 2000 server and visual studio 2003(.net framework 1.1)
I m not getting any error while i m sending email using asp.net(With SMTP) but the receiver is not getting mail... It's very URGENT....
I already set connection(127.0.0.1) and Relay(127.0.0.1) using Inetmgr(Default SMTP Virtual Server)......
Plz help me.... Thanks....
Sep 18 '06 #1
6 2343
// ********* This is for Sending Mail's to the User ***********//
MailMessage Mail=new MailMessage();
Mail.From=FromAdd;
Mail.To=ToAdd;
Mail.BodyFormat = MailFormat.Html;
Mail.Subject=Subject;
Mail.Body=Msg;
//***Authontication Details ***
Mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", 1);
//1 means authenticate=true
//0 means authenticate=false
Mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "urname@domainname");
Mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "urmailaccountpassword");
SmtpMail.SmtpServer = "mail.domainname.com";
SmtpMail.Send(Mail);


************************************************** *************************************

Follow the above code...Hope it works
Goodluck!!!
Sep 18 '06 #2
Hi vamshika

I have already try with this code... and i was able to sending emails with my web application( asp.net with vb.net)and receiver was getting mails but recently i m facing another problem. Now the Problem is that mails are stucked in the Queue Folder (c:\inetpub\mailbox\queue) and the receiver is not getting mails. Now How can i resolve this... Plz help me.... Thanks.........
Sep 20 '06 #3
Hi..... To Every1

I m facing a problem when i upload my webapplication to the server using FTP.... and i m getting msg Page Cannot be displayed.... HTTP ERROR 404 AND IIS CONFIGURATION........
Now what should i do to solve this problem.......
Plz Help me.....
Thanks
Sep 20 '06 #4
Hi
Me too facing the same problem. So how did you solve it. I think this is because I need to host my web application and then it will works fine. Anyways Pls let me know the solution you applied to fix it.

Regards,
Ashima




Hi vamshika

I have already try with this code... and i was able to sending emails with my web application( asp.net with vb.net)and receiver was getting mails but recently i m facing another problem. Now the Problem is that mails are stucked in the Queue Folder (c:\inetpub\mailbox\queue) and the receiver is not getting mails. Now How can i resolve this... Plz help me.... Thanks.........
Nov 17 '06 #5
karthi84
271 100+
hi there,
the mail queueing is a default process. if u send a mail it will be queued untill the required bandwidth of connection is available for the mail to be sent. so dont worry. your mail will be sent if the connection is ideal.
Dec 29 '06 #6
sashi
1,754 Expert 1GB
Hi everyone,

Just make sure SMTP service is running, the default port is :25, just make sure it's listening to port :25. Are you firewall? Does your firewall allow outbound TCP / UDP packets on port :25?

Please check these details, hope it helps. Good luck & Take care.
Dec 30 '06 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Serge Myrand | last post by:
Hi everybody, The following code for sending email (found on msn I think) works find when used in a .VBS file. I double click the file and the mail is send. When I use the same code in my .ASP...
6
by: Mike the Canadian | last post by:
I am having a very strange problem sending email with php. I have two domains. I can send an email to one domain using php but not the other. If I put both email addresses in the mail command only...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
5
by: Maqsood Ahmed | last post by:
Hello, We have been experiencing a problem with AutoResentEvent class for past 2-3 months. It seems that it just stops at WaitOne and the thread doesn't released from blocking state. We have...
0
Dormilich
by: Dormilich | last post by:
this is a follow-up thread to this one. http://bytes.com/topic/html-css/answers/863662-form-not-submitted-sometimes I figured out that the mail sending class triggers the described error....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.