473,732 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SMTP Email

I cant get an email out using System.Web.Mail .SmtpMail.Send( msg)
If I enter a SmtpMail.SmtpSe rver, 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 2241
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***@discussi ons.microsoft.c om> wrote in message
news:E7******** *************** ***********@mic rosoft.com...
I cant get an email out using System.Web.Mail .SmtpMail.Send( msg)
If I enter a SmtpMail.SmtpSe rver, 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***@discussi ons.microsoft.c om> wrote in message
news:E7******** *************** ***********@mic rosoft.com...
I cant get an email out using System.Web.Mail .SmtpMail.Send( msg)
If I enter a SmtpMail.SmtpSe rver, 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***@discussi ons.microsoft.c om> wrote in message
news:E7******** *************** ***********@mic rosoft.com...
I cant get an email out using System.Web.Mail .SmtpMail.Send( msg)
If I enter a SmtpMail.SmtpSe rver, 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***@discussi ons.microsoft.c om> wrote in message
news:3B******** *************** ***********@mic rosoft.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\mailroo t\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***@discussi ons.microsoft.c om> wrote in message
news:3B******** *************** ***********@mic rosoft.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\mailroo t\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***@discussi ons.microsoft.c om> wrote in message
news:3B******** *************** ***********@mic rosoft.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
13873
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 address to the correct one but I wondered about passwords? Outlook Express needs a password so how would I do it. Unless anyone has any other suggestions/tutorials. Oh and just so you know my port 25 is blocked by ISP, I think that limits my...
2
2808
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, $port = null, $helo = null, $auth = null, $user = null, $pass = null) { if (!is_null($host)) $this->smtp_params = $host;
2
13702
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 connects to the server and prints the banner but will not send mail. Here is my script: use Net::SMTP; my $smtp = Net::SMTP->new('smtp.comcast.net') or die "Can't Open server"!";
3
5585
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 account. I was using optimum online service with smtp server as “mail.optonline.net”. I can receive email correctly. Now I switch to verizon DSL. I change my smtp server accordingly as
1
2142
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 times it locks up when I call the Send() method and returns the error "Could not access CDO.Message Object". I found that if I create a new Win App and copy and paste the code into it, then it runs fine for the first couple of times and then starts...
34
18264
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 "127.0.0.1". 4. Authentication: "Anonymous access" only. 5. Outbound connection listen to TCP 25. Besides,
6
2099
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 I don't know what that means or refers to. I imagine I would have to use something that was tied to me specifically, but tied to what? My computer? My email address?
7
7739
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 free edition for anti-virus. I use an ISP provider from my country and according to them I do not need to perform authentication while sending mails through their SMTP address. Thus I am using external SMTP server. I don't have IIS installed...
2
12175
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, error is thrown at the .send point. Error is: The following error occured Sending an email: System.ApplicationException: An error occurred sending an email To helen@HerMail.com From ade@MyMail.com Cc Subject A test with Finlistener #1. The body...
5
5300
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 itself. I thought this would be just a matter of using the $smtp->datasend($POSTvalues) with the $values coming from the names on the web page posting the data. Can someone show me what the correct code snippet would be? Here is my code: ...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9307
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9235
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8186
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, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6735
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.