473,434 Members | 1,829 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,434 software developers and data experts.

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

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
Dec 30 '07 #1
3 905
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.

"Darrel" <no*****@nospam.comwrote in message
news:ev**************@TK2MSFTNGP04.phx.gbl...
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

Dec 30 '07 #2
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
Dec 30 '07 #3
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.

"Darrel" <no*****@nospam.comwrote in message
news:uN**************@TK2MSFTNGP02.phx.gbl...
>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

Dec 31 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Andy Turner | last post by:
Hi, I'm trying to setup PHP so it will use a remote SMTP server. I'm going to sound like a newbie but how? I know you need to alter php.ini, change SMTP from localhost to the SMTP server and the...
11
by: Christian Patterer | last post by:
Hi, Even after searching the web for hours, I can't get my PHP configuration work. I have Apache and PHP installed. Now I want to use the mail() function in PHP. On the Linux server I have...
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
6
by: M P | last post by:
Need help! Whats wrong with my code? My plan is this, I have my IIS5.0 on Server A and then I will use SMTP service of Server B. I already configured IIS to use Server B as its SMTP Server but I...
8
by: Sue | last post by:
Does this "NT-based machine (NT, 2K, XP)" mean a WindowsXP machine is a NT-based machine? What does NT stand for and what does it mean? What is CDONTS? What does this mean - "The machine...
7
by: Razzie | last post by:
Hey all, I need to connect to an SMTP server and get a notification when it gets a new mail to send. I want to be able to 'read' that email (retrieve recipient information for example). Is that...
2
by: Jeremy | last post by:
I posted a message recently about an SmtpMail issue I was having (SmtpMail causes the server to have a 502 response: Unknown Command 'SATA'). Since then, I have tried 3 different SMTP components,...
4
by: Tushar | last post by:
Please help: I found some of the following information in messeges in this group but I would like someone to confirm them please. I would like to use the following web-services / ASP.Net code to...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.