11-24-2011, 01:56 PM
|
#6 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
|
CentOS is based on RHEL I think, so I'd wager your sendmail path is default: '/usr/sbin/sendmail', so you shouldnt need to specifiy a sendmail path and it should work fine.
As for your development env, why dont you set your gmail to be a smtp, so then you can test the functionality of the code before pushing it into the wild.
change the transport to be:
PHP Code:
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'ssl') ->setUsername('me@gmail.com') ->setPassword('pass');
and the rest should work as is.
Google will most likly have a form of send limit, so you might wanna check before using it to send bulk messages.
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|