![]() |
|
|||||||
| Email SmarterMail and older posts regarding the legacy system. |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
Moderator
|
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
__________________
Webcast Evangelist for DiscountASP.NET ![]() Contact me to... Request new Webcasts Ping me on Twitter asp.net Blog Overload of my Daily I.T. News/Alerts |
|
|
|
|
|
#3 |
|
DiscountASP.NET Staff
Join Date: Jun 2007
Posts: 160
|
Its most likely SMTP authentication. Make sure its set to on.
|
|
|
|
|
|
#4 |
|
DiscountASP.NET Staff
Join Date: May 2006
Posts: 819
|
Or - if you are sending from the server, try setting the SMTP server name to: localhost
|
|
|
|
|
|
#5 |
|
Join Date: May 2009
Posts: 3
|
|
|
|
|
|
|
#6 |
|
Moderator
|
If for a web.config it's like this:
<system.net> <mailSettings> <smtp> <network host="localhost" port="25" /> </smtp> </mailSettings> </system.net>
__________________
Webcast Evangelist for DiscountASP.NET ![]() Contact me to... Request new Webcasts Ping me on Twitter asp.net Blog Overload of my Daily I.T. News/Alerts |
|
|
|
|
|
#7 |
|
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 |
|
|
|
|
|
#8 |
|
Moderator
|
...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
__________________
Webcast Evangelist for DiscountASP.NET ![]() Contact me to... Request new Webcasts Ping me on Twitter asp.net Blog Overload of my Daily I.T. News/Alerts |
|
|
|
|
|
#9 |
|
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 |
|
|
|
|
|
#10 |
|
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 |
|
|
|
|
|
#11 |
|
Moderator
|
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
__________________
Webcast Evangelist for DiscountASP.NET ![]() Contact me to... Request new Webcasts Ping me on Twitter asp.net Blog Overload of my Daily I.T. News/Alerts |
|
|
|
|
|
#12 |
|
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 |
|
|
|
|
|
#13 | |
|
Join Date: Oct 2009
Posts: 6
|
Quote:
How do I correct this? |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sending Mail from Exchange server to DASP, ExchangePop3, SMTP error | clayutility | 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 |