For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > September 2007 > RE: [PEAR] mail to gmail









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PEAR] mail to gmail
Ryan Sims

2007-09-11, 7:03 pm

Hello Bora,

The issue is not with your PHP code. It appears you have a =
misconfiguration
in your mail server that does not allow you to relay mail to any hosts
outside of the localdomain.

To fix this, consult your SMTP server documentation and add all your =
domains
to the rcpthosts file. =20

For qmail:
http://www.palomine.net/qmail/relaying.html

For Postfix:
http://archives.neohapsis.com/archi...07-06/1526.html


Ryan Sims


> -----Original Message-----
> From: Bora Tahir Izg=F6rd=FC [mailto:izgordu@uzem.itu.edu.tr]
> Sent: Tuesday, September 11, 2007 5:45 AM
> To: pear-general@lists.php.net
> Subject: [PEAR] mail to gmail
>=20
> Hello,
>=20
> I can email to any gmail or yahoo account from interface of my email
> service.
> However, when i try to send email (to another account for ex. gmail or
> yahoo) using mail function and same smtp server, i get this:
>=20
> *Warning*: mail() [function.mail
> <http://localhost/php_forms/function.mail>]: SMTP server response: 553
> sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) in
> *C:\AppServ\www\php_forms\kit_form2.php* on line *27
>=20
> and when i use my email addres as receiver, i can get the mail.
>=20
> should i do something else to send email other to other accounts using
> mail function?
>=20
> Thanks
>=20
> Bora Tahir
> *
>=20
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com