DiscountASP.NET Forums

Go Back   DiscountASP.NET Forums > Services > Email

Email SmarterMail and older posts regarding the legacy system.

Reply
 
Thread Tools Search this Thread
Old 07-17-2009, 02:11 AM   #1
rahul2006
 
Join Date: Jul 2009
Posts: 7
Error while sending the mail

Hi all,
I am getting following error while sending the mail from discountasp.net server.

Mailbox unavailable. The server response was: No such user here

I have changed my smtp server name to : smtp.domianname.com

I have also set the smtp username and also password but yet i have not created the username ex: test@domianname.com
password : test
Is it necessary to give smtp username and password?
Could you please let me know how can i solve the error?


Thanks
rahul2006 is offline   Reply With Quote
Old 07-17-2009, 04:49 AM   #2
wisemx
Moderator
 
wisemx's Avatar
 
Join Date: Mar 2006
Location: Johnson City, TN. U.S.A.
Posts: 3,175
Send a message via MSN to wisemx
Hi,
From where, and how, are you sending this Email?
Many of us should be able to help you, with a few more details.
All the best,
Mark
wisemx is offline   Reply With Quote
Old 07-17-2009, 11:27 AM   #3
Chuck
DiscountASP.NET Staff
 
Join Date: Jun 2007
Posts: 160
Its most likely SMTP authentication. Make sure its set to on.
Chuck is offline   Reply With Quote
Old 07-17-2009, 11:51 AM   #4
mjp
DiscountASP.NET Staff
 
mjp's Avatar
 
Join Date: May 2006
Posts: 819
Or - if you are sending from the server, try setting the SMTP server name to: localhost
mjp is offline   Reply With Quote
Old 07-21-2009, 04:43 PM   #5
SteveCMS
 
Join Date: May 2009
Posts: 3
Quote:
Originally Posted by mjp View Post
Or - if you are sending from the server, try setting the SMTP server name to: localhost
Is that smtp.localhost or just localhost?
SteveCMS is offline   Reply With Quote
Old 07-21-2009, 04:49 PM   #6
wisemx
Moderator
 
wisemx's Avatar
 
Join Date: Mar 2006
Location: Johnson City, TN. U.S.A.
Posts: 3,175
Send a message via MSN to wisemx
If for a web.config it's like this:

<system.net>
<mailSettings>
<smtp>
<network host="localhost" port="25" />
</smtp>
</mailSettings>
</system.net>
wisemx is offline   Reply With Quote
Old 07-21-2009, 05:14 PM   #7
SteveCMS
 
Join Date: May 2009
Posts: 3
Is this essential if I am setting the Smtp settings in code like "smtp.<domain_name>.com"?

I am running into a problem where I am executing code to send an e-mail blast from my site. It is making it into my domain's SmarterMail account but not into Yahoo, Google, Verizon and so on. Nobody outside. What could the problem be?

I am using Sitefinity CMS, but that shouldn't matter. I have proven the code works, but it's just not being forwarded at all... (I'm a bit baffled actually because the same code sends messages to those same external webmail accounts in response to a "Leave us a message/Contact Us" set of controls. The To addresses are spelled correctly and are set up properly for the Smtp class in .NET.

Thanks,
Steve
SteveCMS is offline   Reply With Quote
Old 07-21-2009, 05:50 PM   #8
wisemx
Moderator
 
wisemx's Avatar
 
Join Date: Mar 2006
Location: Johnson City, TN. U.S.A.
Posts: 3,175
Send a message via MSN to wisemx
...There are places the smtp setting is needed, for example in some forums packages I've used smtp but in others simply localhost.

In my own web.config I'm doing it like this:
<system.net>
<mailSettings>
<smtp from="wisemx@msftwise.com" deliveryMethod="Network">
<network host="localhost" port="25" password="*password*" userName="wisemx@msftwise.com" />
</smtp>
</mailSettings>
</system.net>

I've ran sitefinity here, for the Webcasts, but can not remember how that was set.
All the best,
Mark
wisemx is offline   Reply With Quote
Old 07-21-2009, 07:32 PM   #9
SteveCMS
 
Join Date: May 2009
Posts: 3
Thanks for the tips Mark. There MUST be something that will help me in what you are saying. I'll try it out tomorrow when I have more energy. Right now I'm going to wind it down... zzzzzz

Cheers!
Steve
SteveCMS is offline   Reply With Quote
Old 07-24-2009, 01:30 AM   #10
navalshipc1
 
Join Date: Jul 2009
Posts: 4
Same problem (Error while sending eMail)

Hello to all,

I have the same problem as "rahul2006". I read all the postes in here, but I still don't understand what is the solution for the problem. Did rahul2006 solve his problem?
How do I make SMTP authentication to set to ON?

Here is my code for sending eMail, can you spot anything wrong?

//create the mail message
MailMessage mail = newMailMessage();
//set the addresses
mail.From = newMailAddress("postmaster@navalshipcode.org");
mail.To.Add(
"Waiman.Li@DNV.com");
//set the content
mail.Subject = "Testing eMail";
mail.Body =
"Body of Testing eMail";
//send the message
SmtpClient smtp = newSmtpClient("smtp.navalshipcode.org");
smtp.Send(mail);

Thank you,
Waiman
navalshipc1 is offline   Reply With Quote
Old 07-24-2009, 05:22 AM   #11
wisemx
Moderator
 
wisemx's Avatar
 
Join Date: Mar 2006
Location: Johnson City, TN. U.S.A.
Posts: 3,175
Send a message via MSN to wisemx
Hi,
First off...Salute!
Now...You can read about the settings here:
http://msdn.microsoft.com/en-us/libr....net.mail.aspx

There's a lot of code missing above but I do spot something critical...
That should be "new MailMessage" instead of "newMailMessage"
Ooh Rah?
All the best,
Mark
wisemx is offline   Reply With Quote
Old 08-31-2009, 11:07 AM   #12
Carlos Bernal
 
Join Date: Aug 2009
Posts: 1
I did this and it works:

string mailServerName = "localhost";
MailMessage message = new MailMessage("myemail@mydomain.com", "otheremail@otherdomain.com", "test", "body");
SmtpClient mailClient = new SmtpClient();
mailClient.Host = mailServerName;
mailClient.Port = 25;
mailClient.Send(message);
message.Dispose();

Hope it helps

Carlos Bernal
www.adios-obesidad.com
Carlos Bernal is offline   Reply With Quote
Old 10-28-2009, 10:22 AM   #13
we2j53d
 
Join Date: Oct 2009
Posts: 6
Quote:
Originally Posted by Carlos Bernal View Post
I did this and it works:

string mailServerName = "localhost";
MailMessage message = new MailMessage("myemail@mydomain.com", "otheremail@otherdomain.com", "test", "body");
SmtpClient mailClient = new SmtpClient();
mailClient.Host = mailServerName;
mailClient.Port = 25;
mailClient.Send(message);
message.Dispose();

Hope it helps

Carlos Bernal
www.adios-obesidad.com
This code gives me an undeliverable email from the System Administrator (550 error: Authentication is required for relay).

How do I correct this?
we2j53d is offline   Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending Mail from Exchange server to DASP, ExchangePop3, SMTP error clayutility Email 11 05-06-2009 02:11 PM
Sending Mail woes with System.Net.Mail glenharvy ASP.NET 2.0 2 10-22-2008 11:47 AM
Mail Not Sending Jalbee ASP.NET 2.0 2 08-27-2007 05:55 AM
Sending Mail via website ecmatechnet ASP.NET 2.0 5 05-04-2006 05:43 AM
sending e-mail from SQL2005 malbar99 Databases 1 02-10-2006 01:50 AM


All times are GMT -8. The time now is 04:37 AM.


vBulletin ©Jelsoft Enterprises Ltd.