Sending EMail not working (code is not throwing error).

Discussion in 'Email' started by lock, Apr 18, 2013.

  1. Here is my code. The below code is not working constantly. Sometimes it's sending email/sometimes not.

    SmtpClient smtp = new SmtpClient();
    MailMessage mailMsg = new MailMessage();
    mailMsg.From = new MailAddress("[email protected]", "xxx-Register");
    mailMsg.To.Add(txtEmail.Text);
    mailMsg.Subject = "Onlince Test Assigned";
    mailMsg.IsBodyHtml = true;
    mailMsg.Body = sHTMLContents;
    smtp.Send(mailMsg);
    Web.config:
    ============
    <network host="mail.xxx.com" userName="[email protected]" password="emba123" enableSsl="false" port="25"/>

    Can someone help me to figure out the issue?
     
  2. ComputerMan

    ComputerMan Winhost Staff

    Are you sending email from your local computer or from our web server?

    So, some emails do get received using the code and some don't? Are you sending to multiple email addresses?
     
  3. From WebServer. 2 times it did send email, after that no email. No errors. Single email address.
     
  4. Same problem here...

    Exact same problem here, sending mails with code, and nothing happens, no error message, no rejected mails, nothing, they simply not arrive.
    This just began happening few days ago :mad:
    Any solution or help?
     
  5. ComputerMan

    ComputerMan Winhost Staff

    I'd suggest you guys contact the support department and provide them with the email user you're using to send out the email messages with. Also, provide them with the email addresses that you're sending to.

    Don't forget to include the time and date that you sent the email messages.
     
    Last edited by a moderator: Oct 14, 2015

Share This Page