Message: 553 sorry, your mail was administratively denied. (#5.7.1) on zend framework

i`m not sure if this is the right category to send my problem, but i`ll try.

my site is built with zend framework and is hosted on godaddy.

i have a contact form that work great. now i wanted to add that on my blog every time a comment is added i will get an email about that comment. i used zend_mail again. and on my locale machine it works.

but on the server i get this error: Message: 553 sorry, your mail was administratively denied. (#5.7.1)

i have googled it  and some say its godaddy, but my contact form does work.

i attach the code for the mail sending from the comment action.

best regards

$tr = new Zend_Mail_Transport_Smtp('the godaddy smtp');
                $mail = new Zend_Mail('UTF-8');
                //set the From,To,and Subject headers
                $mail->addTo($this->config->email->from_admin, "{$this->config->email->from_admin}");
                $mail->setSubject('a comment was added');
                $name = $name;
                $message = $commentField;
                $postlink = '' . $theid;
                // retrieve the email template
                require '_email-comment.phtml';
                // attach the email template to the email and send it

Open in new window

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

A 553 SMTP error means that you basically don't have permissions to use that mail server for outbound mail. In the mail world, it's called Relaying Denied.

1. Ensure you're using the right mail server host name. GoDaddy probably has lots of mail servers. so they may require you to use a specific one. You might also try just using "localhost" instead of a specific host and see if that works.

2. Contact GoDaddy support if #1 doesn't pan out and ask them what mail server you should use.
This is what i had to setup to get my droid to work with my godaddy free account. (the paid account does not have these weird issues)
Make sure your mail form uses the proper info from below:
security type: none
port: 80 (yes 80)
require sign in
email address

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
derridaAuthor Commented:
the problem was the mail from

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.