0
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: [email protected]
password: pass
이것은 빠른 메일러를위한 구성입니다. 내가 이메일을 보내 좋아하면 그럼 내가 사용해야합니다는 Symfony에서 SwiftMailer의 기본값 FROM을 설정합니다.
$message = $this->getMailer()->compose(
array('[email protected]' => 'user'),
$affiliate->getEmail(),
'Jobeet affiliate token',
body
);
$this->getMailer()->send($message);
이 내가이 줄을 설정 싶습니다
array('[email protected]' => 'user'),
을 자동으로. 내가 config에서 [email protected]을 변경하면이 줄에서 자동으로 변경하고 싶습니다. 나는 나의 위치에있는 몇몇 장소에있는 우송자를 보낸다. 가능합니까?
어쩌면 app.yml과 동일할까요? 도움을
감사
을하지만, 설정에서이 나던 일 .yml –
나는 메일러가 factories.yml에서 설정되어야한다고 생각한다. settings.yml에 메일러를 설정했다면'(sfConfig :: get ("settings_mailer_transport_param_username")' – denys281