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

hi
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

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

Open in new window

LVL 1
derridaAsked:
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.

gr8gonzoConsultantCommented:
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.
0
abelenkiyCommented:
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:

smtpout.secureserver.net
security type: none
port: 80 (yes 80)
require sign in
email address
password
0

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

0
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
PHP

From novice to tech pro — start learning today.