Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

SMTP troubles and odd fix...why does this work?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Darrel - 30 Dec 2007 21:18 GMT
I'm trying to send email from my application. I've been getting a "The
server rejected one or more recipient addresses." error. After some
googling, the fix I found was to make sure to NOT state a mail server for
SmtpMail.SmtpServer

Instead, do this:

SmtpMail.SmtpServer = ""

And, sure enough...that worked!? Why? Is that a viable solution?

-Darrel
sloan - 30 Dec 2007 22:17 GMT
Try

SmtpMail.Servers.Add("myserver");

or something like that.  This is a known issue.

You can find some downloadable code here:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry

where I have that line.

> I'm trying to send email from my application. I've been getting a "The
> server rejected one or more recipient addresses." error. After some
[quoted text clipped - 8 lines]
>
> -Darrel
Darrel - 30 Dec 2007 22:49 GMT
> SmtpMail.Servers.Add("myserver");

That appears to be C#?

I'm using Vb.net in this case.

Is the blank server 'fix' OK to use?

-Darrel
sloan - 31 Dec 2007 05:23 GMT
Ok...remove the ";" (semi colon).

The blank server probably means your own machine is relaying the messages.

You'd better check
c:\inetpub\mail\bad (or something like that) and make sure your emails are
being sent.

..

The better thing to do would be to get it to work via code.  Aka...the code
I mention.

Download my sample, and you can probably get your "real" settings to work.

>> SmtpMail.Servers.Add("myserver");
>
[quoted text clipped - 5 lines]
>
> -Darrel

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.