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?
UPDATE: in my Apache log I found this: "sendmail: Cannot open mail:25", I'm 100% sure that my smtp server is working just fine...