Skip to content

[Mailer] Sendgrid API Transport: allow use of asm #53830

@clemcoder

Description

@clemcoder

Description

Hello,
I am attempting to use asm parameters with the SendGrid API Transport.
The asm parameters need to be sent like this

{
"subject":"Hello, World!",
"asm":{"group_id":1234,
"groups_to_display":[1234,5789]
}

However, with the mailer, I am only able to add parameters in the headers or at the 'personalizations' => 'custom_args' level.

Have I missed something?
Is there a way to add parameters at the root payload?
If not, could this feature be added?

Thanks.

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions