Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 24th, 2006, 11:54 AM
Authorized User
 
Join Date: Feb 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default I have a problem in mailing application

I have developed a simple application to do emails to different users. But one thing i cannot understand. After my application sends email, this email is placed in Queue folder but i cannot recieve that email

One more thing i want to know that wt are the available free smtp server by using which my application can send email to all the internet users.



Umair Hasan Zubairy
Software Developer
Auriga group of computer
__________________
Umair Hasan Zubairy
Software Engineer
Auriga group of Companies
 
Old July 24th, 2006, 12:10 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I would have to see the code your using to send the email as I have never had a problem using system.web.mail to send email through an SMTP server.

As far as your mail server question goes, Open Xchange is a very nice open source mail server though it is quite tiedsome to get it up and running. There are various others just google for them.

"The one language all programmers understand is profanity."
 
Old July 26th, 2006, 03:42 PM
Authorized User
 
Join Date: Apr 2006
Posts: 79
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via AIM to anujrathi Send a message via MSN to anujrathi Send a message via Yahoo to anujrathi
Default

Hi Hasan,
I think u hav not assigned SMTP server to ur MailMessage object. If u r connected with internet then u can use localhost as ur SMTP server & u will surely recieve ur mails. But there are some servers that accept this type of mails bcoz these mails r not authorised, so goes to spam or bulk folders. Also u can't send mails from all emails like yahoo, gmail,aol etc(which does'nt support. gmail support but yahoo not).

Try this code...

try
{
MailMessage objMailMsg = new MailMessage();
objMailMsg.From = txtFrom.Text.Trim();
objMailMsg.To = txtTo.Text.Trim();
objMailMsg.Subject = txtSubject.Text.Trim();
objMailMsg.Body = txtName.Text + " wrote, " + txtComments.Text;
SmtpMail.SmtpServer="localhost";
SmtpMail.Send(objMailMsg);
Response.Write("Your mail has been send successfully");
}
catch(Exception exc)
{
lblMessage.Text = "Send fail: " + exc.ToString();
}





Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailing problem in C# dotnet 2.0 kalyanykk ASP.NET 2.0 Basics 0 September 9th, 2008 09:10 AM
mailing manish_partey ASP.NET 1.0 and 1.1 Professional 1 April 25th, 2007 08:20 AM
Mailing prashanth_kumarbv Classic ASP Basics 2 October 27th, 2006 08:40 PM
asp / access mailing list database problem srobert1 Access ASP 1 May 2nd, 2005 06:11 PM
Add Mailing List Problem USADarts BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 0 August 11th, 2004 10:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.