Skip to content

swiftmailer.delivery_addresses configuration? #37

Open

Description

@tinpansoul
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:
        - 'testing@example.com'
$mailer  = /* Service '@mailer' from app/config.yml */;
$message = \Swift_Message::newInstance();
$message->setFrom('from@example.com');
$message->setSubject('subj');
$message->setTo('to@example.com');
$message->setBody('some html body', 'text/html', 'utf-8');
$mailer->send($message);

With default transport it works good – sends email to testing@example.com (from configuration).

But with mailgun transport it send email to to@example.com which is incorrect.

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

Activity

  1. modified the milestone: Release 0.4 on Apr 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions