I have a simphone app running on Debian 7 Vm. I am trying to send mail using Swift Mailer. All codes are fine while code is running but no email is received. What am i doing
Controller:
$ message = \ swift_message :: newInstance () - & gt; SetSubject ('Hello Email') - & gt; SetFrom ('Send@example.com') - & gt; Setup ('name.lastname@gmail.com') - & gt; Setbody ('hello'); $ Mailer = $ this- & gt; Get ('mailer'); If (! $ Mailer-> Send ($ message, $ failures)) {Resonance "Failures:"; Print_r ($ failures); Return "to"; } Other {Return 'Email Successfully Sent'; }
This is always returning "Email successfully sent". Swift mailer: Transport: "% mailer_transport%" host: "% mailer_host%" Username: "% mailer_user%" Password: "% s"
Mailer_password% "#spool: {type: memory}
parameters.yml:
mailer_transport: smtp mailer_host: 127.0.0.1 mailer_user: null mailer_password: empty
php.ini:
[mail function]; For Win32 only; Http://php.net/smtp SMTP = 127.0.0.1; Http://php.net/smtp-port smtp_port = 25
In order < / P>
No comments:
Post a Comment