hello everybody I’ll really appreciate your help on this as I’m trying to sent a simple email and I can not
here is my config.yml <pre> swiftmailer: transport: sendmail host: /usr/bin/sendmail username: %mailer_user% password: %mailer_password% spool: type: file path: “%kernel.cache_dir%/swiftmailer/spool” </pre> I see the emails keep on spool and they are never released
Event after enter this command in console php app/console swiftmailer:spool:send --env=prod
/for more details here is my controller code/
<pre>
$message = \Swift_Message::newInstance()
//->attach($attachment)
->setContentType(“text/html”)
->setSubject(‘Hello Email’)
->setFrom(‘send@example.com’)
->setTo(‘schell.daniel@gmail.com’)
->setBody(
$this->renderView(
‘MasEventosSICBundle:Welcome:registration.html.twig’,
array(‘name’ => $name)
)
)
;
$this->get(‘mailer’)->send($message);
</pre>
This does not throw any exception but the emails are not sent I think my knowledge is not enough to see the cause Thanks a lot in advance Cheers
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
This comment has been deleted
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.