How do you send an email with summernote

Hello,

I am trying to send an email but it is not working using summernote. For some reason, all the rest of the fields works and can be sent.
When I try to send the field which was build with summernote - It is not working.

Any help

Hi,
Can you please share a link to the page? Or share some screenshots and code?

P.S.: Please avoid posting questions without context. Every user has a different requirement and a different way of doing things. Without proper screenshots, code, link etc. its very difficult to even understand what/how anyone is trying to do.

Thank you for your reply:

I am trying to send an email list from a template. The form is nicely saved in the database. But when I try to send the email address it is not working.
I read somewhere I had to change the type of my database to text/blob. I did that. It did not work. So, I increase the length to 2000. It did not work.
I am guessing the issue is the match between type of data in the database and the email address.


The email step has nothing to do with summernote. It just sends whatever data it is given.
What are the bindings you have in place in the send email step?

When you say data is saved in the DB, do you see the summernote HTML in there?
In the DB, best practice to store such large strings is setting the data type of the column to TEXT (depending on what DB server you are using). There is no character limit to be set when type is TEXT.

Yes, It is inside the database.

When I remove the field where summernote is stored. The email is sent. But when I add the field in the email to send. It is not triggered at all.

DB looks good. Please share screenshot of send email step with the DB parameter binding.

Also, when you run the server action, do you see the HTML in the “query” part of the response?

<div class"emailbody"=""> {{query[0].CampaignBody}}</div>

You can see the HTML on the page?

Also, do you not receive the email at all or just the campaign body is missing?
Lastly, is there any error in the console/network tab?

When the form does not submit. So, I did not receive any email in this situation.
Note: When I was using var in the database - I was able to send the email but it was short because of the limitation of the number of characters.
Now, I am using longtext. It is not send anything.
So, I decided to remove the campaign body in the email. It was working. But when I put it back. it stops working.

Do you also think I should change utf8_general_ci? Or does not matter in this situation?

Does not matter for now.

I am not able to find any issue so far with the implementation you have. Maybe I am missing something.
In the email body binding step, is the type selected as HTML? I can't see that in the screenshot you shared.

I don’t think it is changing anything with the email.
Do you want the link of the change/

image

I meant this format option. Its set to HTML, right?

Yes, I have it.

I don’t know if I am the only one having this issue. But I cannot see what is wrong.

I think we have it working for us. Don’t remember exactly where. But there is no issue with HTML and emails. It could be that the length of HTML email body is causing an issue.

Try this:

  1. Create a set value in server action. Set the value to be <p>Hello 123</p>.
  2. Set the output on.
  3. In send email step, bind this variable instead of CampaignBody in body.

If this works, set the value in set value step to be {{query[0].CampaignBody}} and try sending email again.
Do you see any errors in the network tab when email fails?

How to I see the email error. I cannot find it display.

In the developer tools network tab.
image

I got it,