Skip to content

custom headers with smpt relay #29

Open
@thber190356

Description

@thber190356

When I'm sending custom headers using SMTP relay, my mayljet transactional template is assigned correctly with the X-MJ-TemplateID but X-MJ-Vars variables are not included in the content of the template. Any idea what I'm doing wrong?

Code in PHPMailer:
$mail->addCustomHeader('X-MJ-TemplateID','xxxxx');
$mail->addCustomHeader('X-MJ-TemplateLanguage','true');
$mail->addCustomHeader('X-MJ-Vars','{"name":"xxx", "city:xxx"}');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions