PDA

View Full Version : PHP & mailing list & Relay of SMTP


amir
10-17-2006, 12:11 PM
Hi,

I have a mailing list (also standard forms) based on PHP

example:
mail("external@domain.com","subject","message","from....");

and I HAD TO check the option "allow relay for local sender addresses" in my smtp server (also see here: http://www.jbmd.com/es.jpg), otherwise emails would not be sent to external email accounts.

However, everybody knows that this option opens my email server to spammers.

Is there any other solution how to keep above mention option in smtp relay unchecked? (And IŽd prefer NOT to use PEAR smtp driver) and still be able to send email ?