473,404 Members | 2,137 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,404 software developers and data experts.

SMTP Email

I cant get an email out using System.Web.Mail.SmtpMail.Send(msg)
If I enter a SmtpMail.SmtpServer, then I get the error, "The server rejected
the sender address. Invalid Address"
If I dont enter one, I don't get a .NET error, but my mail ends up in the
mailroot\Drop folder with a "DNS Failure".
Also, should the SmtpServer name be the DNS (ie., mycomputer.def.com) or
just the name of the computer/SMTP (ie., mycomputer)?
Nov 19 '05 #1
6 2221
Looks like your SMTP server is configured in such a way that it is rejecting
the e-mail due to the e-mail address that it is from. This would be
something that would have to be configured on the SMTP server.

More often than not, I use a DNS name for the SmtpServer name. However, it
just needs to resolve to the IP address of the SMTP server. For example, if
your local machine was an SMTP server, you could use "localhost".

--
Ben Lucas
Lead Developer
Solien Technology, Inc.
www.solien.com

"klynn" <kl***@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
I cant get an email out using System.Web.Mail.SmtpMail.Send(msg)
If I enter a SmtpMail.SmtpServer, then I get the error, "The server
rejected
the sender address. Invalid Address"
If I dont enter one, I don't get a .NET error, but my mail ends up in the
mailroot\Drop folder with a "DNS Failure".
Also, should the SmtpServer name be the DNS (ie., mycomputer.def.com) or
just the name of the computer/SMTP (ie., mycomputer)?

Nov 19 '05 #2
Hi Klynn,

The SMTP value should be your ISP SMTP server (the same as Outlook or any
mail system used)... If your server have it's own smtp, you can just used
localhost.
--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada
"klynn" <kl***@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
I cant get an email out using System.Web.Mail.SmtpMail.Send(msg)
If I enter a SmtpMail.SmtpServer, then I get the error, "The server rejected the sender address. Invalid Address"
If I dont enter one, I don't get a .NET error, but my mail ends up in the
mailroot\Drop folder with a "DNS Failure".
Also, should the SmtpServer name be the DNS (ie., mycomputer.def.com) or
just the name of the computer/SMTP (ie., mycomputer)?

Nov 19 '05 #3
When I enter "localhost", my message is "The Server rejected one or more
recipient addresses. Unable to relay for <myemailaddress> (which is the "to
address")
What does this mean?

"Jc Morin" wrote:
Hi Klynn,

The SMTP value should be your ISP SMTP server (the same as Outlook or any
mail system used)... If your server have it's own smtp, you can just used
localhost.
--------------------------
Jean-Claude Morin, MCP
Software Developer
2k1Soft/kCentric, Canada
"klynn" <kl***@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
I cant get an email out using System.Web.Mail.SmtpMail.Send(msg)
If I enter a SmtpMail.SmtpServer, then I get the error, "The server

rejected
the sender address. Invalid Address"
If I dont enter one, I don't get a .NET error, but my mail ends up in the
mailroot\Drop folder with a "DNS Failure".
Also, should the SmtpServer name be the DNS (ie., mycomputer.def.com) or
just the name of the computer/SMTP (ie., mycomputer)?


Nov 19 '05 #4
"klynn" <kl***@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
When I enter "localhost", my message is "The Server rejected one or more
recipient addresses. Unable to relay for <myemailaddress> (which is the
"to
address")
What does this mean?


http://www.systemwebmail.com
Nov 19 '05 #5
Still getting DNS Failures when I use the DNS name. It makes it through
ASP.NET but the email ends up in the inetpub\mailroot\Drop folder. I noticed
that my Relay Restrictions list only allows my IP address through (it doesnt
list the domain name). Wonder if that is a problem? Same with my connections
list.

"Mark Rae" wrote:
"klynn" <kl***@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
When I enter "localhost", my message is "The Server rejected one or more
recipient addresses. Unable to relay for <myemailaddress> (which is the
"to
address")
What does this mean?


http://www.systemwebmail.com

Nov 19 '05 #6
Phew. Finally fixed this one. It has to do with only allowing certain email
addresses out. So when I use outlook to send to my own email, it fails, but
when I use it to send to someone else's it works. So "DNS Failures" isn't
the SMTPs server DNS, but I think my own DNS (the to-email address). Then,
once I realized what was going on in Outlook, I got the ASP.NET to do the
same thing. It can send to the allowable email address, but not to my own (I
have no idea why, but at this point, it doesnt matter, cause the allowable
address is the one that it needs in my application).
anyway, thats it.

"klynn" wrote:
Still getting DNS Failures when I use the DNS name. It makes it through
ASP.NET but the email ends up in the inetpub\mailroot\Drop folder. I noticed
that my Relay Restrictions list only allows my IP address through (it doesnt
list the domain name). Wonder if that is a problem? Same with my connections
list.

"Mark Rae" wrote:
"klynn" <kl***@discussions.microsoft.com> wrote in message
news:3B**********************************@microsof t.com...
When I enter "localhost", my message is "The Server rejected one or more
recipient addresses. Unable to relay for <myemailaddress> (which is the
"to
address")
What does this mean?


http://www.systemwebmail.com

Nov 19 '05 #7

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...
2
by: Dan Boyle | last post by:
Hi, I am having difficulty connection to an smtp host. I am using the following code but I don't think I fully understand what smtp host can be used. function setSMTPParams($host = null,...
2
by: RandRace | last post by:
I'm having some problems with a little script i wrote using net::smtp. I originally wrote it in linux where it works perfectly. I tried to use it from windows the other day and it doesn't work. It...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
1
by: Brian Bischof | last post by:
In my Win app I found that using the SMTP object doesn't release resources after closing the application. During testing I have to open and close the app many times and I found that after about three...
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...
6
by: John Salerno | last post by:
If I want to write a cgi script that reads the contents of an HTML form and emails it to me, what would I use as the host parameter for my SMTP instance? The example in the docs is 'localhost', but...
7
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
5
by: jimhill10 | last post by:
I have a perl script that creates an email attachment file from POST data on a web page. This works just fine. I want to customize the email body to contain all of the text data from the file...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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
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 projectplanning, 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.