appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

[Bug]: SMTP : The mail does not consider new line character

Open prapullac opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Description

When the user sends out a lengthy mail via SMTP that considers with paragraphs. The mail was written properly on the Appsmith but when received in a single liner

Steps To Reproduce

  1. Add the configuration
  2. Create a query
  3. Add a lengthy body with new line character
  4. send a mail to the user and observe the mail on receiving end
Screenshot 2023-02-20 at 3 34 52 PM

Public Sample App

No response

Issue video log

No response

Version

Production

prapullac avatar Feb 20 '23 10:02 prapullac

@sumitsum For SMTP plugin, there is no where specified to the users that the email body will be accepted of type text/html , When users will try to add a new line, it doesn't work For new line, they'll have to use <br> instead. There are 2 possible solutions here

  1. Let the users select the body type.
  2. Be clear to the users that we will accept only text/html type.

I suggest we should go with letting user's choose the content-type text/plain will be default choice, and advanced users who know html can choose text/html if they need

sanveer-osahan avatar Apr 07 '23 04:04 sanveer-osahan

@sanveer-osahan instead of having a drop down to select the body type and another input for body content. Lets use the segmented button control to select the type of body and text area for entering the content. image

Figma Link: https://www.figma.com/file/Qs7p5frNx7uEfVYpADGk0d/Query-Pane-Improvements?node-id=1701-56624&t=ZtR4uAToEI4QK5sn-4

parth-appsmith avatar May 03 '23 14:05 parth-appsmith

Will be closed by https://github.com/appsmithorg/appsmith/issues/22749

sanveer-osahan avatar May 10 '23 10:05 sanveer-osahan