mailer:
class: sfMailer
param:
logging: %SF_LOGGING_ENABLED%
charset: %SF_CHARSET%
delivery_strategy: realtime
transport:
class: Swift_SmtpTransport
param:
host: localhost
port: 25
encryption: ~
username: user@gmail.com
password: pass
this is config for swift mailer. if i would like send email then i must use:
$message = $this->getMailer()->compose(
array('user@gmail.com' => 'user'),
$affiliate->getEmail(),
'Jobeet affiliate token',
body
);
$this->getMailer()->send($message);
i would like set this line:
array('user@gmail.com' => 'user'),
automatically. if i change user@gmail.com in config then i would like automatically change in this line. i have mailer in few place in my site.
Is possible?
maybe same as in app.yml ?
thanks for help
You can make next:
in app.yml:
And make: