Godaddy email configuration settings?

Last post 11-10-2009 7:25 AM by Umair Aslam Bhatti. 8 replies.

Sort Posts:

  • Godaddy email configuration settings?

    11-01-2009, 6:37 PM
    • Member
      25 point Member
    • hfinmt
    • Member since 08-26-2009, 9:31 PM
    • Posts 74

    Hello fellow Godaddy users,

    I am hoping someone can help me find a solution to sending email from a simple "contact us" web page with Godaddy hosting.  Other people have found a solution, however I have not. Below is the code I have used in a test page for sending email with Gmail, so I know that the code works.  I also know that for it to work with Godaddy hosting, I need to change some settings.  Such as: network host to "relay-hosting.secureserver.net".  I have attempted coding both with and without "username" and "password"; with and without "port" to no avail.  Would a fellow Godaddy hoster please inform me with what has worked for them?

    Page code: 

    <%@ import namespace="System.Net" %>

    <%@ import namespace="System.Net.Mail" %> 

    <script runat="server">

     

        protected void btnSubmit_Click(object sender, EventArgs e)

        {

            MailMessage myMail = new MailMessage();

            SmtpClient smtp = new SmtpClient();

     

            myMail.From = new MailAddress("xxxxx@gmail.com");

            myMail.Subject = "contact form";

            MailAddressCollection myMailTo = new MailAddressCollection();

            myMail.To.Add("xxxxx@gmail.com");

     

            StringBuilder sb = new StringBuilder();

            sb.Append("Name: " + txtName.Text + "<br>");

            sb.Append("Email Address: " + txtUserEmail.Text + "<br>");

            sb.Append("Comments: " + txtComments.Text + "<br>");

     

            string strBody = sb.ToString();

            myMail.Body = strBody;

            myMail.IsBodyHtml = true;

           

            smtp.EnableSsl = true;

            try

            {

                smtp.Send(myMail);

     

                myMail = null;

            }

     

            catch (System.Exception ex)

            {

                Response.Write(ex.Message);

            }       

        }

    </script>

     

    Web.config

     

    <system.net>

      <mailSettings>

       <smtp from="">

        <network host="smtp.gmail.com" password="xxxxxx" port="587"

         userName="xxxxx@gmail.com" />

       </smtp>

      </mailSettings>

     </system.net>

     

  • Re: Godaddy email configuration settings?

    11-01-2009, 11:45 PM
    Answer

    well godaddy make problem with smtp u can do like

    System.Net.Mail.SmtpClient client = new SmtpClient("relay-hosting.secureserver.net", 25);

    client.DeliveryMethod = SmtpDeliveryMethod.Network;

    it works fine for me

     

    22.Net
  • Re: Godaddy email configuration settings?

    11-02-2009, 5:30 AM
    • Member
      266 point Member
    • rumsfo
    • Member since 08-05-2009, 7:36 AM
    • Posts 125

    Why don't contact them and ask to fix that as that seems to be the system error  and each single customer might have related problems


  • Re: Godaddy email configuration settings?

    11-02-2009, 8:56 AM
    • All-Star
      77,096 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,502
    • Moderator
      TrustedFriends-MVPs

    hfinmt:
    I am hoping someone can help me find a solution to sending email from a simple "contact us" web page with Godaddy hosting.

    Considering there is a tech note on GoDaddy's support on exactly how to do this, the answer is "Yes, someone can help you."

    Jeff

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: Godaddy email configuration settings?

    11-02-2009, 10:37 AM
    • Member
      25 point Member
    • hfinmt
    • Member since 08-26-2009, 9:31 PM
    • Posts 74

    Hi Jeff,

    Can you tell me a little more on the topic of this tech note.  I am not sure what the tech note you are referring to will help me fix.  I am not sure what questions to ask the Godaddy tech support team., 

  • Re: Godaddy email configuration settings?

    11-02-2009, 1:54 PM
    • All-Star
      77,096 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,502
    • Moderator
      TrustedFriends-MVPs

    http://help.godaddy.com/article/955

    Note that the email server is not GMail, as in your code.  You can't send through GMail on a shared account.  No specific ports, no authentication, just use that SMTP server.

    For further help with mail, see systemnetmail.com.

    Jeff 

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: Godaddy email configuration settings?

    11-02-2009, 1:55 PM
    • All-Star
      77,096 point All-Star
    • jeff@zina.com
    • Member since 09-26-2003, 10:43 AM
    • Naples, FL, USA
    • Posts 10,502
    • Moderator
      TrustedFriends-MVPs

    By the way, all of this, and more, is easily found at:

    http://www.google.com/search?q=send+asp.net+email+godaddy

    Jeff 

    Blatant Self Promotion: ASP.NET 3.5 CMS Development
  • Re: Godaddy email configuration settings?

    11-10-2009, 1:49 AM
    • Member
      190 point Member
    • Mellanie
    • Member since 10-19-2009, 2:28 AM
    • Posts 89

    You should contact Godaddy support, I think they will help you

    Seekdotnet.com provided ASP.NET Hosting for Shared Windows 2008 Hosting and also supported Reseller ASP Hosting Plan.

    Get 25% Off for any hosting plans within type this 25%OFF at Promotional Code's box

  • Re: Godaddy email configuration settings?

    11-10-2009, 7:25 AM

    Please mark as answer if your problem is resolved.  if your own answer helps you then u can also mark it as answered , when some is searching on net it will help them too. Regards Umair

    22.Net
Page 1 of 1 (9 items)