Link to "Setting up email for GoDaddy hosted sites"
Re: Link to "Setting up email for GoDaddy hosted sites"
08-14-2009 2:20 PM
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456
Setting up email for GoDaddy hosted sites.
Reply Contact
If you're hosting your site via GoDaddy, you can use the following code to enable email (just replace the SendMail() function located in includes/email.asp). Be sure to change your_email_address and your_email_password to appropriate values.
'--------------------------------------------------------------------------
' Sends an email and returns an empty string if successful. Otherwise, it
' returns the error message.
'--------------------------------------------------------------------------
function SendMail(toAddr, subjectText, bodyText)
dim mailer
dim cdoMessage, cdoConfig
'Assume all will go well.
SendMail = ""
'Configure the message.
set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... /sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... smtpserver") = "relay-hosting.secureserver.net"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... smtpserver") = "relay-hosting.secureserver.net"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... serverport") = 25
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... thenticate") = 1
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndusername") = "your_email_address"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndpassword") = "your_email_password"
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
'Create the email.
cdoMessage.From = ADMIN_USERNAME & " <" & ADMIN_EMAIL & ">"
cdoMessage.To = toAddr
cdoMessage.Subject = subjectText
cdoMessage.TextBody = bodyText
'Send it.
on error resume next
cdoMessage.Send
'If an error occurred, return the error description.
if Err.Number <> 0 then
SendMail = Err.Description
end if
'Clean up.
set cdoMessage = Nothing
set cdoConfig = Nothing
end function
Filed under: godaddy, email
08-20-2009 9:08 PM In reply to
Retired Chief
Top 50 Contributor
Joined on 08-19-2009
Posts 9
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I am coming up with the following error on send mail:
Email send failed with 'The server rejected the sender address. The server response was: 553 sorry, your mail was administratively denied. (#5.7.1) '
08-20-2009 9:24 PM In reply to
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
Two things to try:
Remove these lines:
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndusername") = "your_email_address"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndpassword") = "your_email_password"
And if that doesn't work, change this line to use whatever email address is associated with your godaddy account:
cdoMessage.From = your_email_address
If neither works, look for a gdform.asp file in the root of your web site. That's supposedly the script they provide for sending email and you should be able to model the pool's version off that.
Filed under: godaddy, email
08-20-2009 9:37 PM In reply to
Retired Chief
Top 50 Contributor
Joined on 08-19-2009
Posts 9
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
That was the issue. All is set.... Much thanks...
08-26-2009 1:53 PM In reply to
Spooky
Top 10 Contributor
Joined on 08-19-2009
Denver CO
Posts 49
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I've made this update to my live code and I am not getting any errors when I do the "edit the news" trick... but I'm not getting the emails either. The message displays "News updates saved, notifications sent." when I change the news story and have "Send Update" checked.
I've tried sending them to several different legitimate addresses and so far none have arrived (over 30 mins after sending). Is there a log file somewhere on the GoDaddy host that I could look at for clues?
08-26-2009 3:01 PM In reply to
shotrock
Top 10 Contributor
Joined on 08-17-2009
Posts 52
Secure Email Setting
Reply Contact
My email server requires a secure connection and adding this line solved the issue.
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... smtpusessl") = True
And changing the SMTP port number
Filed under: ssl email
08-27-2009 9:01 PM In reply to
kschelly
Top 50 Contributor
Joined on 08-28-2009
Posts 4
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I don't know if this is an email issue but I get this response when someone tries to sign up:
Email send failed with 'The transport failed to connect to the server. '
Please contact admin@forthejacket.com for help.
I can add a user as an admin, but a new user gets this message when they try to sign up.
08-05-2010 2:27 PM In reply to
nflcrazy
Top 10 Contributor
Joined on 07-16-2010
Kingston, Ontario
Posts 66
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
Not that it is a big deal but caused me a lot of grief until i caught it, im just posting this in case someone else has the issue as well.
i noticed by copying the above code it was missing the ending of the function as i have highlighted below
end function %>
Filed under: godaddy, email
08-06-2010 4:46 PM In reply to
Wizardry
Top 75 Contributor
Joined on 08-06-2010
Posts 4
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
Hi MIke,
I tried removing those 2 lines that you suggested and added my account email address but i am still receving the following....any ideas? For some reason i don't have a gdform.php or gdform.asp file in the root of my directory...so im not sure how to go forward. Thanks for any help you can provide.
Email send failed with 'The server rejected the sender address. The server response was: 553 sorry, your mail was administratively denied. (#5.7.1) ' Please contact chuckmeister3@cox.net for help.
08-06-2010 8:00 PM In reply to
dusty
Top 50 Contributor
Joined on 06-30-2010
Posts 5
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
here is a suggestion for this error when using godaddy hosting. I spent a lot of time trying to figure out the problem and tried all the suggestions, this is what helped me and it is very easy.
make sure the admin e-mail address, or the one set up in config is an e-mail address hosted by godaddy. example admin@football.com football.com has to be hosted by godaddy on their server.
As a side note, I use my e-mail hosted on godaddy but I have it forwarded to my regular e-mail - no problems
08-06-2010 10:04 PM In reply to
Wizardry
Top 75 Contributor
Joined on 08-06-2010
Posts 4
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
That was it Dusty. Thank you very much!!! Big Smile
08-14-2010 10:52 PM In reply to
grasscatcher
Top 50 Contributor
Joined on 06-02-2010
Posts 8
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I'm using version 3.1 but I cant seem to get the emails to go thru. Mike, is this just me and the way I have it set up or something else. The site is hosted by winhost not godaddy. I read the readme and the forum I'm a little confused as to what I need to change if at all. I'll keep messing with it and see what I can come up with. Any ideas would be appreciated. Great script, thanks Mike.
Page 1 of 1 (12 items)
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456
Setting up email for GoDaddy hosted sites.
Reply Contact
If you're hosting your site via GoDaddy, you can use the following code to enable email (just replace the SendMail() function located in includes/email.asp). Be sure to change your_email_address and your_email_password to appropriate values.
'--------------------------------------------------------------------------
' Sends an email and returns an empty string if successful. Otherwise, it
' returns the error message.
'--------------------------------------------------------------------------
function SendMail(toAddr, subjectText, bodyText)
dim mailer
dim cdoMessage, cdoConfig
'Assume all will go well.
SendMail = ""
'Configure the message.
set cdoMessage = Server.CreateObject("CDO.Message")
set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... /sendusing") = 2
cdoConfig.Fields("http://schemas.microsoft.com/cdo/config ... smtpserver") = "relay-hosting.secureserver.net"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... smtpserver") = "relay-hosting.secureserver.net"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... serverport") = 25
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... thenticate") = 1
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndusername") = "your_email_address"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndpassword") = "your_email_password"
cdoConfig.Fields.Update
set cdoMessage.Configuration = cdoConfig
'Create the email.
cdoMessage.From = ADMIN_USERNAME & " <" & ADMIN_EMAIL & ">"
cdoMessage.To = toAddr
cdoMessage.Subject = subjectText
cdoMessage.TextBody = bodyText
'Send it.
on error resume next
cdoMessage.Send
'If an error occurred, return the error description.
if Err.Number <> 0 then
SendMail = Err.Description
end if
'Clean up.
set cdoMessage = Nothing
set cdoConfig = Nothing
end function
Filed under: godaddy, email
08-20-2009 9:08 PM In reply to
Retired Chief
Top 50 Contributor
Joined on 08-19-2009
Posts 9
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I am coming up with the following error on send mail:
Email send failed with 'The server rejected the sender address. The server response was: 553 sorry, your mail was administratively denied. (#5.7.1) '
08-20-2009 9:24 PM In reply to
mikehall
Top 10 Contributor
Joined on 08-09-2009
Chandler, AZ
Posts 456
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
Two things to try:
Remove these lines:
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndusername") = "your_email_address"
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... ndpassword") = "your_email_password"
And if that doesn't work, change this line to use whatever email address is associated with your godaddy account:
cdoMessage.From = your_email_address
If neither works, look for a gdform.asp file in the root of your web site. That's supposedly the script they provide for sending email and you should be able to model the pool's version off that.
Filed under: godaddy, email
08-20-2009 9:37 PM In reply to
Retired Chief
Top 50 Contributor
Joined on 08-19-2009
Posts 9
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
That was the issue. All is set.... Much thanks...
08-26-2009 1:53 PM In reply to
Spooky
Top 10 Contributor
Joined on 08-19-2009
Denver CO
Posts 49
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I've made this update to my live code and I am not getting any errors when I do the "edit the news" trick... but I'm not getting the emails either. The message displays "News updates saved, notifications sent." when I change the news story and have "Send Update" checked.
I've tried sending them to several different legitimate addresses and so far none have arrived (over 30 mins after sending). Is there a log file somewhere on the GoDaddy host that I could look at for clues?
08-26-2009 3:01 PM In reply to
shotrock
Top 10 Contributor
Joined on 08-17-2009
Posts 52
Secure Email Setting
Reply Contact
My email server requires a secure connection and adding this line solved the issue.
cdoConfig.Fields.Item ("http://schemas.microsoft.com/cdo/config ... smtpusessl") = True
And changing the SMTP port number
Filed under: ssl email
08-27-2009 9:01 PM In reply to
kschelly
Top 50 Contributor
Joined on 08-28-2009
Posts 4
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I don't know if this is an email issue but I get this response when someone tries to sign up:
Email send failed with 'The transport failed to connect to the server. '
Please contact admin@forthejacket.com for help.
I can add a user as an admin, but a new user gets this message when they try to sign up.
08-05-2010 2:27 PM In reply to
nflcrazy
Top 10 Contributor
Joined on 07-16-2010
Kingston, Ontario
Posts 66
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
Not that it is a big deal but caused me a lot of grief until i caught it, im just posting this in case someone else has the issue as well.
i noticed by copying the above code it was missing the ending of the function as i have highlighted below
end function %>
Filed under: godaddy, email
08-06-2010 4:46 PM In reply to
Wizardry
Top 75 Contributor
Joined on 08-06-2010
Posts 4
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
Hi MIke,
I tried removing those 2 lines that you suggested and added my account email address but i am still receving the following....any ideas? For some reason i don't have a gdform.php or gdform.asp file in the root of my directory...so im not sure how to go forward. Thanks for any help you can provide.
Email send failed with 'The server rejected the sender address. The server response was: 553 sorry, your mail was administratively denied. (#5.7.1) ' Please contact chuckmeister3@cox.net for help.
08-06-2010 8:00 PM In reply to
dusty
Top 50 Contributor
Joined on 06-30-2010
Posts 5
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
here is a suggestion for this error when using godaddy hosting. I spent a lot of time trying to figure out the problem and tried all the suggestions, this is what helped me and it is very easy.
make sure the admin e-mail address, or the one set up in config is an e-mail address hosted by godaddy. example admin@football.com football.com has to be hosted by godaddy on their server.
As a side note, I use my e-mail hosted on godaddy but I have it forwarded to my regular e-mail - no problems
08-06-2010 10:04 PM In reply to
Wizardry
Top 75 Contributor
Joined on 08-06-2010
Posts 4
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
That was it Dusty. Thank you very much!!! Big Smile
08-14-2010 10:52 PM In reply to
grasscatcher
Top 50 Contributor
Joined on 06-02-2010
Posts 8
Re: Setting up email for GoDaddy hosted sites.
Reply Contact
I'm using version 3.1 but I cant seem to get the emails to go thru. Mike, is this just me and the way I have it set up or something else. The site is hosted by winhost not godaddy. I read the readme and the forum I'm a little confused as to what I need to change if at all. I'll keep messing with it and see what I can come up with. Any ideas would be appreciated. Great script, thanks Mike.
Page 1 of 1 (12 items)