Re: PHP mail() and SMTP Authentication ?

From: Date: Sat, 27 Jun 2015 11:33:06 +0000
Subject: Re: PHP mail() and SMTP Authentication ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-324969@lists.php.net to get a copy of this message
------------ Original Message ------------ > Date: Saturday, June 27, 2015 08:08:44 AM +0100 > From: Ashley Sheridan <ash@ashleysheridan.co.uk> > > > On 27 June 2015 00:28:36 BST, dealTek <dealtek@gmail.com> wrote: >> Hi all, >> >> I'm working on a server and want to send out mail either from a >> form to email or get email address from database then send >> >> I'm using PHP mail() >> >> currently the mail send out fine with simple PHP mail() ... >> >> but do I need to us PHP mail() and some kind of SMTP >> Authentication to lock it down? >> >> >> PHPMailer... or some better way? >> do I need to install something like this on the server? >> >> https://github.com/PHPMailer/PHPMailer >> >> If so what's best with PHP mail() ? or is there some more modern >> way to lock it down... >> > > What do you mean my locking it down? Do you mean to prevent it > being used in a spam relay? > You also need so provide a sense of how sending mail is handled in your current environment. E.g., are you running an MTA on your server and sending out directly; are you running an MTA that is configured to pass mail to a "smarthost"; do you send mail via a[n authenticated] submission port? Whether authentication is required or not is really an MTA configuration issue. If your server is running an MTA and able to send mail out directly (or via a smarthost) then you need to manage the MTA's configuration in order to control who/what can send.

« previous php.general (#324969) next »