Error while sending the mail

Discussion in 'Email' started by rahul2006, Jul 17, 2009.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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: [email protected]
    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. 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
     
  3. Its most likely SMTP authentication. Make sure its set to on.
     
  4. mjp

    mjp

    Or - if you are sending from the server, try setting the SMTP server name to: localhost
     
  5. Is that smtp.localhost or just localhost?
     
  6. If for a web.config it's like this:

    <system.net>
    <mailSettings>
    <smtp>
    <network host="localhost" port="25" />
    </smtp>
    </mailSettings>
    </system.net>
     
  7. 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 :confused: 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. ...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="[email protected]" deliveryMethod="Network">
    <network host="localhost" port="25" password="*password*" userName="[email protected]" />
    </smtp>
    </mailSettings>
    </system.net>

    I've ran sitefinity here, for the Webcasts, but can not remember how that was set.
    All the best,
    Mark
     
  9. 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. 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 = new MailMessage();
    //set the addresses
    mail.From = new MailAddress("[email protected]");
    mail.To.Add(
    "[email protected]");
    //set the content
    mail.Subject = "Testing eMail";
    mail.Body =
    "Body of Testing eMail";
    //send the message
    SmtpClient smtp = new SmtpClient("smtp.navalshipcode.org");
    smtp.Send(mail);

    Thank you,
    Waiman
     
  11. I did this and it works:

    string mailServerName = "localhost";
    MailMessage message = new MailMessage("[email protected]", "[email protected]", "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
     
  12. This code gives me an undeliverable email from the System Administrator (550 error: Authentication is required for relay).

    How do I correct this?
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page