I am using GMAIL smtp to send mail using the SwiftMailer package, however it is not working. I installed the files and placed the lib folder onto the server as instructed. Here is my php code:
require_once "lib/swift_required.php";
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, 'ssl')
->setUsername('clubbedinapp@gmail.com')
->setPassword('password')
;
$mailer = Swift_Mailer::newInstance($transport);
$message = Swift_Message::newInstance('Wonderful Subject')
->setFrom(array('clubbedinapp@gmail.com' => 'Evaluaciones'))
->setTo(array('nishil.shah17@gmail.com'=> 'A name'))
->setBody('Test Message Body')
;
$result = $mailer->send($message);
echo $result;
I am getting multiple errors like so: