Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 18, 2012 07:00 AM by bhushan_bharat
Aug 18, 2012 04:27 AM|LINK
i can able to send mail from local host,but i cant able to send mail from server.
Aug 18, 2012 05:12 AM|LINK
public void sendemail()
MailMessage ms = new MailMessage();
ms.IsBodyHtml = true;
string to="To Address"
string fromaddr = "from address"
ms.From = new MailAddress(fromaddr);
ms.Subject = "Your Password Remainder";
string body = "content of body"
ms.Body = body;
ms.Priority = MailPriority.Normal;
SmtpClient smtp = new SmtpClient();
smtp.Credentials = new System.Net.NetworkCredential("email Id", "password");
txtemail.Text = "";
catch (Exception ex)
Aug 18, 2012 05:20 AM|LINK
You didn't specified the Code what you used for sending mail nor the Error message.
. By the way, in previous answer there is Full Code for Sending mails, Just Replace Variables and publish to Web. Then tell what is result.
Aug 18, 2012 05:30 AM|LINK
Please post your code and if you got any exception messages post it to enable us helps you
Aug 18, 2012 07:00 AM|LINK
have look these links