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

CustomCampaign #13

Open
olivier-sabban opened this issue Feb 22, 2018 · 3 comments
Open

CustomCampaign #13

olivier-sabban opened this issue Feb 22, 2018 · 3 comments

Comments

@olivier-sabban
Copy link

olivier-sabban commented Feb 22, 2018

Hi,

I would like to use mailjet "CustomCampaign" property to attach my mail to a campain.
https://dev.mailjet.com/guides/#grouping-into-a-campaign

I did not find any logic property of Swift_Mime_Message to link correctly CustomCampain into your getMailjetMessage function to push a pull request

Do you have any simple idea or do I need to build my own Swift_Transport ?

@Nightbr
Copy link
Member

Nightbr commented Mar 1, 2018

ping @Zhivko-Mailjet

@latanasov
Copy link
Contributor

cc @eboisgon

@Nils-1st-retail
Copy link

I have been working on the same problem and sound a solution.
In https://app.mailjet.com/docs/emails_headers it is stated that you can send the custom campaign name as a header named 'X-Mailjet-Campaign' this seems to work for me.

$headers = $swiftMsg->getHeaders();
$headers->addTextHeader('X-Mailjet-Campaign', "CustomCampaignName");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants