Symfony sfMail not delivering emails
Posted
by Cav
on Stack Overflow
See other posts from Stack Overflow
or by Cav
Published on 2010-04-18T18:02:40Z
Indexed on
2010/04/18
18:03 UTC
Read the original article
Hit count: 250
Hi,
somehow sfMail doesn't want to send emails and I can't find the reaseon why. send() simply returns 0, here is my code:
$message = $this->getMailer()->compose("[email protected]", "[email protected], "test", "testing");
echo $this->getMailer()->send($message);
factories.yml:
all:
mailer:
class: sfMailer
param:
logging: %SF_LOGGING_ENABLED%
charset: %SF_CHARSET%
delivery_strategy: realtime
transport:
class: Swift_SmtpTransport
param:
host: smtp.email.com
port: 25
encryption: ~
username: [email protected]
password: mytestpass
and I simply get "0" as result. Any ideas what am I doing wrong?
© Stack Overflow or respective owner