Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael Beever 74 posts 155 karma points
    Nov 03, 2021 @ 10:33
    Michael Beever
    0

    Hello,

    I am trying to send an email to receipients from Formulate but all emails seem to be sent in plain text.

    Is there a way to stop this or change it?

    Thanks

  • Nicholas Westby 2054 posts 7100 karma points c-trib
    Nov 10, 2021 @ 18:12
    Nicholas Westby
    0

    According to the latest code for the email handler:

            // Add plain text alternate view.
            var mimeType = new ContentType(MediaTypeNames.Text.Plain);
            var emailView = AlternateView.CreateAlternateViewFromString(plainTextBody, mimeType);
            message.AlternateViews.Add(emailView);
    
    
            // Add HTML alternate view.
            mimeType = new ContentType(MediaTypeNames.Text.Html);
            emailView = AlternateView.CreateAlternateViewFromString(htmlBody, mimeType);
            message.AlternateViews.Add(emailView);
    

    It should be including both an HTML and a plain text version of the email. See here: https://github.com/rhythmagency/formulate/blob/v3/master/src/formulate.app/Forms/Handlers/Email/EmailHandler.cs

    If by "plain text" you mean that the emails are very basic, you could either create a custom handler to send a more developed email or you could use the designed emails feature of Formulate pro: https://www.formulate.rocks/pro/designed-emails

    That allows you to construct custom emails (e.g., if you want to have a better design).

    Another alternative would be to send the data to some third party like HubSpot, then send an email using that platform.

Please Sign in or register to post replies

Write your reply to:

Draft