Getting SMTP to Work with GoDaddy

Rate It (1)

Last post 08-21-2009 4:12 AM by Sadie. 18 replies.

Sort Posts:

  • Re: Getting SMTP to Work with GoDaddy

    06-23-2009, 8:22 PM
    Locked
    • Member
      185 point Member
    • KevInKauai
    • Member since 04-23-2007, 12:51 AM
    • Posts 249

    Aloha, vaevictus - -

    This is an extreme OLD thread, but apparently confusion about sending email abounds. I know that once I got it properly working, I tend to "clone" all the new ones from the working model.

    Here is a general framework that I know works:

     

    1            Dim objMail As New MailMessage
    2            objMail.IsBodyHtml = True
    3    
    4            With objMail
    5                .From = New MailAddress("from_where@your_domain.com")
    6                .To.Add(pEmail)
    7                .Subject = "Your SUBJECT
    8                .Bcc.Add("mybcc@your_domain.com")
    9    
    10               .Body = “body of email message”
    11   
    12           End With
    13   
    14           Dim client As SmtpClient = New SmtpClient("relay-hosting.secureserver.net")
    15           client.UseDefaultCredentials = True
    16   
    17           Try
    18                   client.Send(objMail)
    19           Catch Ex As Exception
    20               ‘ handle your error HERE
    21           End Try
    22   
    

     Of course, the success of the Send is going to count on the way that your local hosting service is set up. The "relay-hosting.secureserver.net" is specific to GoDaddy.

    I hope this helps!  :)  KevInKauai

  • Re: Getting SMTP to Work with GoDaddy

    07-08-2009, 5:42 PM
    Locked
    • Member
      2 point Member
    • shadman
    • Member since 07-08-2009, 9:35 PM
    • Posts 2

    I'm trying to get cdonts working on Godaddy and have duplicated the above and I still do not receive my emails. I setup an email account for the from file, is there anything else I can do to get it working. GoDaddy support will not help. Should the web.config have a suffix of .txt?

  • Re: Getting SMTP to Work with GoDaddy

    07-08-2009, 7:52 PM
    Locked
    • Member
      185 point Member
    • KevInKauai
    • Member since 04-23-2007, 12:51 AM
    • Posts 249

     Aloha, shadman.

    I sorry to say that I have no experience with CDONTS for email with GoDaddy. However, I don't think that adding ".txt" to you web.config file will work at all.

    Have you looked around the GoDaddy HELP center? I just did with the search phrase "CDONTS" and there were 19 entries, including one promisingly titles "Cdonts Example for ASP Hosting". Perhaps this is a silly question, but why are you determined to use CDONTS when SendMail works just fine?

    There seems to be another thread on CDONTS here: http://forums.asp.net/p/1356318/2783429.aspx#2783429 Good luck with that.

     

    :) KevInKauai

     

  • Re: Getting SMTP to Work with GoDaddy

    08-21-2009, 4:12 AM
    Locked
    • Member
      2 point Member
    • Sadie
    • Member since 08-15-2009, 4:56 AM
    • Posts 3

    Here is a page on GoDaddy's website that will help anyone, who has migrated to IIS7 Hosting Service, send Email from your web applications.  Hope it helps, for the year 2009 anyway.

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

    Smile

Page 2 of 2 (19 items) < Previous 1 2