Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 January 4th, 2004, 03:58 PM
Authorized User
 
Join Date: Jun 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mail Problems with Pop Mailboxes


I am building a newsletter app, and have been running into some seemingly random and frustrating mail problems involving routing messages to pop mailboxes.

I have tried several third party mail components as well as those found in System.Web.Mail, and they all produce the same strange results.

Whenever I try to route a message to a webmail client (hotmail, etc), the mail is successfully delivered - always. Whenever I try to mail to a popmail client, the SMTP.Send method reports a successful delivery(most of the time), but the mail never arrives. On some SMTP servers I have tried, a 550 Invalid recipient error is posted when an send is attempted on a pop mailbox.

Could it be an environment thing? Are there any corelations between the mail api's and the local mapi profiles? I am having particularly frustrating issues with the popmail accounts configured in my outlook profile.

Have tried disabling my OS firewall, my AntiVirus (including mail scans), my router firewall..... I have tried it using the localhost domain in the url - along with the natted ip and the wan ip. (have not tried it on a foreign environment yet). I have mixed up mailboxes thinking that some sort of bizarre spamming program might be blocking the mail (delivery for pop works *sometimes* and then suddenly stops for no apparent reason).

The code I have been using is nothing at all exotic. Here is the code using System.Web.Mail:

MailMessage mail = new MailMessage();
mail.To=email.Text;
mail.From="[email protected]";
mail.Subject="a subject";
mail.Body=body.Text;
SmtpMail.SmtpServer="192.168.2.100"; //Have tried mixing this up
SmtpMail.Send(mail);


I have also used devMail's component:

MailMessage mail = new MailMessage();
mail.Subject=title;
mail.To.Add((string)row["firstname"]+(string)row["lastname"],(string)row["email"]);
mail.From.EMail=settings.SenderEmail;
mail.From.Name=settings.SenderName;
mail.HTMLMessage.Body=body;
mail.PlainMessage.Body="foo";
mail.ReplyTo.EMail=settings.SenderEmail;
mail.SMTPServer.Host=settings.SmtpServer;
mail.SMTPServer.Username=settings.SmtpUser;
mail.SMTPServer.Password=settings.SmtpPassword;
mail.SMTPServer.AuthenticationMode = SMTPAuthenticationMode.CRAM_MD5;

bool successTry=mail.Send();


Any help at all would be most appreciated....

Ben





Similar Threads
Thread Thread Starter Forum Replies Last Post
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
php mail() problems Morrislgn Beginning PHP 1 August 9th, 2004 03:55 PM
creating exchange mailboxes adman Pro VB 6 0 December 23rd, 2003 06:32 AM





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