Skip to content

text_content is actually textContent #8

@freesteph

Description

@freesteph

The documentation defines text_content and html_content but this does not work:

Brevo::TransactionalEmailsApi
  .new
  .send_transac_email(
    sender: { name: "Foo", email: "[email protected]" },
    to: [{ email: "[email protected]" }],
    text_content:  "Some text",
    subject: "Hi"
  )

which yields: {"code":"missing_parameter","message":"Either of htmlContent or textContent is required"}.

Changing the param to textContent fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions