Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am face some problem. we purchase a domain from google & create an (info@)email id on this domain but hosting is created on godaddy server & my website is uploaded on godaddy server. i want to send a feedback on my info id from our gmail account & i am using this code but the error is - falier sending mail

try { string strBody = "Feedback
" + " Name  :  " + txtname.Text + "
" + " Email ID  :  " + txteid.Text + "
" + " Mobile   :  " + txtmob.Text + "
" + " Question  :  " + txtq.Text + "
" + ""; System.Net.Mail.MailMessage MyMailMessage = new System.Net.Mail.MailMessage("", "", "Feedback", strBody);

        MyMailMessage.IsBodyHtml = true;
        System.Net.NetworkCredential mailAuthentication = new
        System.Net.NetworkCredential("", "Password");
        System.Net.Mail.SmtpClient mailClient = new
        System.Net.Mail.SmtpClient("smtp@gmail", 25);

        mailClient.EnableSsl = true;
        mailClient.UseDefaultCredentials = false;
        mailClient.Credentials = mailAuthentication;

        lblstatus.Text = "Email successfully sent.";
    catch (Exception ex)
        lblstatus.Text = "Send Email Failed." + ex.Message;
share|improve this question

You could try sending via the GoDaddy SMTP service that comes with your hosting. There's a lot of reasons you may be having this problem. A good place to start would be to check on the GoDaddy help and make sure there's no restrictions on opening SMTP sessions to other servers on your hosting. Next check with Gmail and see if other people have this problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.