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

smtp.send problem

I'm having a problem using the System.Net.Mail.SmtpClient. After I set
everything up and issue the Send method it throws an exception indicating
"Sorry, that domain isn't in my list of allowed rcpthosts", which is
apparently coming from the mail server, smtpout.secureserver.net.

However, I do indeed have the email address set up properly (with GoDaddy)
and I have successully set up Outlook Express with the appropriate paremeters
so that I can send and recive emails for the email address through that
(Outlook express).
When I try to do it with System.Net.Mail.SmtpClient, and set up the
parameters the same as I set them up for Outlook Express, I get that "domain
isn't allowed" message.

Any ideas what I could be doing wrong?
Sep 27 '07 #1
4 2267
Hi,

have your set the smtp user and password? You can set the credentials
by:

SmtpClient smtp = new SmtpClient(smtpServer, smtpPort);

smtp.Credentials = new NetworkCredential(login, password);

smtp.Send(message);

Santi

Sep 27 '07 #2

Get my downloadable code at:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry
I'd pay attention to the SSL demo I have.
Just guessing because of this name "smtpout.secureserver.net"

But my code makes it easy to try different authenication models.


"Roger Garrett" <Ro**********@discussions.microsoft.comwrote in message
news:37**********************************@microsof t.com...
I'm having a problem using the System.Net.Mail.SmtpClient. After I set
everything up and issue the Send method it throws an exception indicating
"Sorry, that domain isn't in my list of allowed rcpthosts", which is
apparently coming from the mail server, smtpout.secureserver.net.

However, I do indeed have the email address set up properly (with GoDaddy)
and I have successully set up Outlook Express with the appropriate
paremeters
so that I can send and recive emails for the email address through that
(Outlook express).
When I try to do it with System.Net.Mail.SmtpClient, and set up the
parameters the same as I set them up for Outlook Express, I get that
"domain
isn't allowed" message.

Any ideas what I could be doing wrong?

Sep 27 '07 #3
Yes, I've set the credentials. It does seem to be getting through to the
email processer server. The message I get seems to be indicating that it's
not letting me send the outgoing email to the particular email address domain
that I'm sending it to. But I also have set up Outlook Express (with all the
same paremeters) and that works just fine, both for receiving and sending
emails. So it's got me stumped as to why it doesn't work when using doing it
through my C# program.

- Roger

Sep 27 '07 #4
I figured out the problem.

The constructor for the System.Net.NetworkCredential includes UserName,
Password, and Domain as arguments. When I specify all three I get the error
message back from the email server. When I leave off the Domain portion it
works fine, sending my email through.

This would seem to be a goof on the part of the email server. Even if I were
somehow specifying the wrong domain, the error message they respond with is
"Sorry, that domain isn't in my list of allowed rcpthosts". But that is
usually an indication that the intended recipient of the email is not within
their list of valid recipients. It is NOt usually an indication that the
authentication failed.

So, it works no, after four hours of searching the Internet and
trial-and-error.
Sep 27 '07 #5

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

Similar topics

1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
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...
4
by: CLEAR-RCIC | last post by:
I want to send an email from our Intranet site to myself whenever an error happens. Our manager will not let us install SMTP on the web server. Is it possible to send email programatically...
2
by: oliu321 | last post by:
Hi, First I am not trying to write a client to talk with hotmail straightly. I am trying to write some codes to send emails through a SMTP server. I wrote a C++ version using pure socket...
11
by: ibiza | last post by:
Hi all, I am trying to use the System.Net.Mail class for the first time, with ASP.NET 2.0. I setup everything according to http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives...
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,...
7
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
1
by: the_ricka | last post by:
Hi all, I'm fairly new to python, but very excited about it's potential. I'm trying to write a simple program that will accept input from a command line and send email. The parameters I used on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.