It can be text or HTML.', 'text/html') Įcho 'I am sure, your configuration are not correct. >setTo(array(' ' => 'Receiver Name')) // your email / multiple supported. >setFrom(array(' ' => 'Sender Name')) // can be $_POST etc. $message = Swift_Message::newInstance('Wonderful Subject Here') $mailer = Swift_Mailer::newInstance($transport)
WHAT IS MY SMTP SERVER ADDRESS FOR GMAIL PASSWORD
>setPassword('my_secure_gmail_password') // Your Gmail Password >setUsername(' ') // Your Gmail Username $transport = Swift_SmtpTransport::newInstance('ssl://', 465) Require_once './path/to/lib/swift_required.php' Handle large attachments and inline/embedded images with low memory Use event-driven plugins to customize the library. Send MIME compliant HTML/multipart emails.
Protect from header injection attacks without stripping request data Support servers that require username & password and/or encryption. Send emails using SMTP, sendmail, postfix or a custom Transport $mail = $smtp->send($to, $headers, $body)