Frans/Ted > Along those lines, though, one of the things that annoys me about the > SmtpMail objects is that they don't handle authenticated SMTP, as far as I > can tell. Can anybody comment or prove me wrong? Assuming I'm right, anybody > know of an authenticated-SMTP-supporting class replacement/supplement?
Actually, that's *sorta* not true (depends upon framework/os version). Check out my faq at http://www.systemwebmail.com/faq/3.8.aspx <shamless_plug> But if you are going to buy a 3rd party component, buy mine. ;-) www.aspNetEmail.com </shamless_plug> Cheers! Dave ----- Original Message ----- From: "Frans Bouma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 09, 2004 4:29 AM Subject: Re: [ADVANCED-DOTNET] problem using SmtpMail Object > A little research into how SMTP works is probably in order > here, to be honest--but the short story is, don't use an > "[EMAIL PROTECTED]" address unless you're actually part of the > yahoo.com domain. (Somebody with more SMTP knowledge than I > probably needs to jump in here and confirm what I'm > saying--this is purely based on practical knowledge, not > having read the SMTP specs or anything.) It depends on the mailserver but nowadays it's uncommon to solely rely on the from domain to allow relaying or not, because that's easily spoofed (anyone who has ever telnetted to port 25 of a given mailserver knows :)). Nowadays it is more common to specify explicitly who can and thus who can't (everybody else) relay mail on a given server. To protect your server from being a spammer's starting point (and to protect yourself from getting blacklisted in the anti-spam lists), a mailserver admin often enabled SMTP authentication for sending mail or defines IP address ranges for 'trusted' mail origins. Relaying is the term for sending mail from domain ABC through the mailserver of domain XYZ to yet another mail domain, say TYU. Needless to say, spamming can only be done anonymously through relaying. The funny thing is: relaying is also the backbone of the email-system: often mailservers use 'smart smtp hosts' which 're-route' email for other mail servers, which is in fact relaying. It depends on the mailserver type how it figures out if a sender tries to relay a mail. This is often done by checking the from address. If that isn't local, the sender is marked as a a relaying sender and the rules for relaying kick in. As you said, it is likely that the original email address domain 'yahoo.com' is the cause of the relaying rules being applied. > Along those lines, though, one of the things that annoys me > about the SmtpMail objects is that they don't handle > authenticated SMTP, as far as I can tell. Can anybody comment > or prove me wrong? Assuming I'm right, anybody know of an > authenticated-SMTP-supporting class replacement/supplement? the one I could find is EasyMail, .NET edition. It's not free however. http://www.quiksoft.com/emdotnet/comparison.asp FB > > Ted Neward > Speaker, Author, Instructor: .NET and Java > http://www.neward.net/ted/weblog > > > > -----Original Message----- > > From: Moderated discussion of advanced .NET topics. > > [mailto:[EMAIL PROTECTED] On Behalf Of Ankit > > Sent: Sunday, February 08, 2004 5:54 AM > > To: [EMAIL PROTECTED] > > Subject: [ADVANCED-DOTNET] problem using SmtpMail Object > > > > Hi all, > > > > I am getting the following error while sending mail from > asp.net using > > SmtpMail Object. > > > > The Server rejected One or More recipient address. The > server response > > was 550 5.7.1 Unable to relay for [EMAIL PROTECTED] > > > > Dim mailobj As new MailMessage > > > > mailobj.To = "[EMAIL PROTECTED]" > > mailobj.From = "[EMAIL PROTECTED]" > > mailobj.Body = "aadasdadadada" > > > > SmtpMail.SmtpServer = "127.0.0.1" > > SmtpMail.Send(mailobj) > > > > However the mail is dispatching if I am using CDONTS, Using > > Server.CreateObject . > > > > Whts worng with the code, am I amissing something. > > > > Thanx > > > > Ankit > > > > > > > > > > > > =================================== > > This list is hosted by DevelopMentor. http://www.develop.com Some > > .NET courses you may be interested in: > > > > NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles > > http://www.develop.com/courses/gaspdotnetls > > > > View archives and manage your subscription(s) at > > http://discuss.develop.com > > > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > Some .NET courses you may be interested in: > > NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles > http://www.develop.com/courses/gaspdotnetls > > View archives and manage your subscription(s) at > http://discuss.develop.com > > > =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor� http://www.develop.com Some .NET courses you may be interested in: NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles http://www.develop.com/courses/gaspdotnetls View archives and manage your subscription(s) at http://discuss.develop.com
