Thread: PHPMailer
View Single Post
Old 11-24-2011, 01:56 PM   #6 (permalink)
sketchMedia
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

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)
sketchMedia is offline  
Reply With Quote
The Following User Says Thank You to sketchMedia For This Useful Post:
annieblack13 (03-14-2012)