Skip to content

option to send email as html #40

@xmak

Description

@xmak

Can you add an option to send emails as HTML when using the email provider? According to Strapi docs, you just need to set a "html" property instead of "text":

        await strapi.plugins['email'].services.email.send({
          to: recipient.email,
          from: config.from,
          subject: config.subject ? config.subject : 'New Contact Form Submission',
          html: message,
        })

It would be cool if this choice could be set up in some config file. Overriding the send() function for a small thing like this seems like an overkill.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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