I am on GoDaddy servers and I can't make my site send e-mails. I have googled the hell out of this and can't find an answer anywhere that works for me. I set up PHP mailer with these settings:

Primary SMTP server: relay-hosting.secureserver.net
port : 25
no SSL

the test e-mail goes out fine but the contact form gives me an error message saying:

SMTP -> ERROR: DATA not accepted from server: 554 The message was rejected because it contains prohibited virus or spam content

Your message has been sent. (it actually has NOT been sent)
Sending of at least one e-mail failed. The error returned was:
SMTP error: data not accepted.
Unable to send e-mail. Please contact the site administrator if the problem persists.

This is driving me crazy. ANY help is greatly appreciated.

Comments

Kirk’s picture

If you're using an external server to send mail, you need a module like this http://drupal.org/project/smtp

A Drunken Theory’s picture

I Googled it and it seems likes it's a GoDaddy issue. I'd contact them and see what they have to say.

Here's one of the many Google results that indicates it's a GoDaddy issue.

I've struggled with GoDaddy for YEARS and now have adapted the policy of "NoGoDaddy." They have caused me nothing but troubles with little resolution. I refuse to take on a new client that uses GoDaddy. (GoDaddy rant over).

A Drunken Theory’s picture

Or you could use that module. LOL. :D (doh)

Kirk’s picture

Though I suggested the module, I also support the NoGoDaddy movement.

lcarnathan’s picture

I can't move away from godaddy right now......

I do have that module installed but when I try to submit a form through the contact module I get this message:

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 p3nlsmtp02.shr.prod.phx3.secureserver.net ESMTP "
SMTP -> get_lines(): $data is "220 p3nlsmtp02.shr.prod.phx3.secureserver.net ESMTP "
SMTP -> FROM SERVER:220 p3nlsmtp02.shr.prod.phx3.secureserver.net ESMTP
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-p3nlsmtp02.shr.prod.phx3.secureserver.net "
SMTP -> get_lines(): $data is "250-p3nlsmtp02.shr.prod.phx3.secureserver.net "
SMTP -> get_lines(): $data was "250-p3nlsmtp02.shr.prod.phx3.secureserver.net "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-p3nlsmtp02.shr.prod.phx3.secureserver.net 250-PIPELINING "
SMTP -> get_lines(): $data was "250-p3nlsmtp02.shr.prod.phx3.secureserver.net 250-PIPELINING "
SMTP -> get_lines(): $str is "250-SIZE 31457280 "
SMTP -> get_lines(): $data is "250-p3nlsmtp02.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 "
SMTP -> get_lines(): $data was "250-p3nlsmtp02.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 "
SMTP -> get_lines(): $str is "250 8BITMIME "
SMTP -> get_lines(): $data is "250-p3nlsmtp02.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 250 8BITMIME "
SMTP -> FROM SERVER: 250-p3nlsmtp02.shr.prod.phx3.secureserver.net 250-PIPELINING 250-SIZE 31457280 250 8BITMIME
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "553 sorry, your mail was administratively denied. (#5.7.1) "
SMTP -> get_lines(): $data is "553 sorry, your mail was administratively denied. (#5.7.1) "
SMTP -> FROM SERVER:553 sorry, your mail was administratively denied. (#5.7.1)
SMTP -> ERROR: MAIL not accepted from server: 553 sorry, your mail was administratively denied. (#5.7.1)
The following From address failed: *********@gmail.com

Kirk’s picture

Based on the error your getting, it looks like the SMTP server doesn't like you. Are you sure you're using the proper credentials? Try email GoDaddy support.

lcarnathan’s picture

This has to be possible. Too many people use it for there not to be a way. It is making me want to punch stuff lol.

lcarnathan’s picture

new discovery:

With the PHP Mailer enabled... on the contact form when an email is sent, it will go through as long as it is from an email address that is on my Godaddy account. If the (from) email address is not from my godaddy account the error:

SMTP -> ERROR: DATA not accepted from server: 554 The message was rejected because it contains prohibited virus or spam content

is returned.

Any Ideas?

Kirk’s picture

Yeah, the idea is that they seemingly require you use a godaddy email address for authentication to make sure you're not a spammer. Ask them to see if you can use another email address.

lcarnathan’s picture

It is very hard to believe that someone has not already had and solved this problem. This sucks.

lcarnathan’s picture

Talked to Godaddy and they said that the problem is that the php mailer is literally trying to send the e-mail from the e-mail address in the from field, or atleast make it look like that is where the e-mail came from. Godaddy says that their servers are seeing that as "spoofing" and that is why it is being kicked back as spam/virus.

Does anyone know if there is a way that i can modify the php to fix this problem?

Kirk’s picture

Another GoDaddy user having a similar problem today. http://drupal.org/node/1065312

Regardless of what their techs said, I'm going to guess this is something they either changed or broke.

A Drunken Theory’s picture

Is there any specific reason why you have to send the mail with another email address? I'd love to help you further but I simply greatly dislike GoDaddy, so I always look for the "easy" way out when dealing with them. (Refraining from going on another rant. lol)

Kirk’s picture

It really is a shame that so many people give them money for "hosting" and I'm using that term very lightly.

A Drunken Theory’s picture

Indeed. I truly have some horror stories involving them. I would like to share but I will refrain and keep this thread non hijacked. The only reason I'm continuing with this thread is that I feel their pain.

Meanwhile, this maybe some helpful information. I've came across quite a few issues with this with different searches.

ejb’s picture

This is frustrating! My site was working fine 2 days ago, now all of a sudden I'm having the same issue. Just like the original poster, I have a GoDaddy registered domain name, hosting and email address, run the SMTP Authentication module with PHP Mailer, use this for SMTP Out: relay-hosting.secureserver.net and have tried ports 25 & 80.

This is all so I can use the Spread module to have Send To A Friend functionality on the site. A couple of days ago, I changed Spread so that it always used my GoDaddy registered email address in the From field.

I thought I had this beat! Now it seems as if they have changed something else and I can no longer authenticate my SMTP. I even tried Gmail SMTP and have the same issue. It's like they are blocking outgoing email for my website.

I called them and confirmed that my settings were correct. They had no additional information about what happened, or how to resolve other than directing me to the Support Knowledgebase.

A Drunken Theory’s picture

Sounds about right.

ejb’s picture

First of all, you must use the GoDaddy SMTP relay. They don't let you use the GMAIL one.

The SMTP address to put into the SMTP Authenticate module is: relay-hosting.secureserver.net with port 25. Do not put in a Username/Password, as GoDaddy does not require authentication to work. You will get an error if you do. If you have entered one previously, click the "restore defaults" button at the bottom of the module to clear it out.

Use the correct version of PHP Mailer (version 2.2.1). Also, there is patched code available for it that is in the SMTP module download. The file is called "class.phpmailer.php.2.2.1.patch". Edit the "class.phpmailer.php" file in the PHP Mailer folder and remove code marked with a "-" and add code marked with a "+".

The last thing is your outbound email must use a GoDaddy registered "From" address. That's the only guarantee they provide that it will be sent. They definitely will not allow you to send an email from a Yahoo, Gmail, Hotmail, AOL, MSN or Live address.

After I did all these things, it began working.

zfly9’s picture

where can I get that patch file?

ejb’s picture

The patch file is in the SMTP Authentication module.

zfly9’s picture

Did it and still doesn't work...

I have this in my recent log entries for drupal...

warning page not found 02/23/2011 - 12:25 roundcube/bin/msgimport Anonymous
warning page not found 02/23/2011 - 12:25 bin/msgimport Anonymous
warning page not found 02/23/2011 - 12:25 mail/bin/msgimport Anonymous
warning page not found 02/23/2011 - 12:25 webmail/bin/msgimport Anonymous
warning page not found 02/23/2011 - 12:25 roundcube-0.1/bin/msgimport Anonymous
warning page not found 02/23/2011 - 12:25 roundcubemail-0.2/bin/msgimport Anonymous
warning page not found 02/23/2011 - 12:25 roundcubemail/bin/msgimport Anonymous
warning page not found 02/23/2011 - 12:25 roundcubemail-0.1/bin/msgimport Anonymous

CoreyTravel’s picture

I'm guess you figured out this issue since this is an older post.

I was having this same error when trying to set up a contact form in Drupal 7 using a GoDaddy hosting plan:

ERROR: "reason: 553 sorry, your mail was administratively denied. (#5.7.1))"

I came to find out that your Default admin e-mail can't be a "Hotmail, g-mail, or Yahoo" account.

They told me that it was an executive decision to block those e-mails for spamming reasons.

So, I changed my Admin e-mail to a "non-Hotmail" account and my contact form is now sending out the contact form data just fine.

Hope that helps.

cabplan’s picture

I am having this issue as well, I changed my admin account to not have a gmail account anymore, just a not existing info@mysite.com. And the (reason: 553 sorry, your mail was administratively denied. (#5.7.1)) still came to my gmail. i do not have my gmail set on anything else so I have no idea why it is still sending errors to this email. does anyone know why this is happening. I have my school email set to receive the email and when I filled out the form I also used my school email so no where did I have gmail even set.

I also install the SMTP Authentication module and not sure how to use this. If I am using a godaddy server what would be my SMTP server? is that just my host? I never had to set this up before.

cabplan’s picture

Ok I found that I still had my gmail account on the site information but even when I changed this to my school email (@luc.edu) or a fake email (info@mysite.com). The form now creates this error when I try to submit the form:

Unable to send e-mail. Contact the site administrator if the problem persists.

I believe I need to use the SMTP module I installed but not sure how to setup my godaddy server. So any advice would be most appreciated.

shanarigelhaupt’s picture

Corey,

Thank you for your response on this! I followed your advice and it is working beautifully! I appreciate the help.

chawkyan’s picture

I've tried this and it works! Thanks.
What I did is I changed my Admin email and the contact form email to contact@mydomain.com and is working now.
Just to make sure that the email is non hotmail, gmail or yahoo account.
Also I set my godaddy email account to forward all the email to my gmail account. So in my gmail I can receive all the email sending from the contact form without login into my godday email :)

bufflex’s picture

Thanks you for this..I've made the exact changes on my website and now everything works as it should. I'm receiving all site messages to my gmail thanks to forwarding from GoDaddy's email account.