Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swiftmailer.delivery_addresses configuration? #37

Open
trogwarz opened this issue Mar 6, 2017 · 0 comments
Open

swiftmailer.delivery_addresses configuration? #37

trogwarz opened this issue Mar 6, 2017 · 0 comments
Labels
Milestone

Comments

@trogwarz
Copy link

trogwarz commented Mar 6, 2017

cspoo_swiftmailer_mailgun:
    key    : 'key-somekey'
    domain : 'sandboxsomedomain.mailgun.org'

swiftmailer:
    transport: 'mailgun'
    spool:     { type: memory } # This will start sending emails on kernel.terminate event
    delivery_addresses:
        - '[email protected]'
$mailer  = /* Service '@mailer' from app/config.yml */;
$message = \Swift_Message::newInstance();
$message->setFrom('[email protected]');
$message->setSubject('subj');
$message->setTo('[email protected]');
$message->setBody('some html body', 'text/html', 'utf-8');
$mailer->send($message);

With default transport it works good – sends email to [email protected] (from configuration).

But with mailgun transport it send email to [email protected] which is incorrect.

Is it implemented but i'm using it wrong? Or, if not, how it can be workarounded?

@Nyholm Nyholm added the bug label Apr 14, 2017
@Nyholm Nyholm modified the milestone: Release 0.4 Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants