thunderbird / thunderbird-android

Thunderbird for Android – Open Source Email App for Android (fka K-9 Mail)
https://thunderbird.net/mobile
Apache License 2.0
10.84k stars 2.51k forks source link

Feature Request: Send HTML formated mails #1745

Open moshpirit opened 8 years ago

moshpirit commented 8 years ago

Expected behavior

It would be cool to send mails with bold, italics, underlined and crossed words, lists, etc. Maybe using MarkDown or a button that showed a "formating bar" (maybe at the bottom of the screen?).

Note: a preview button or a live preview would be also very appreciated.

Actual behavior

There's no way to do it

Environment

K-9 Mail version: 5.114 (F-droid)

Android version: 6.0.1

Account type (IMAP, POP3, WebDAV/Exchange): IMAP

philipwhiuk commented 8 years ago

The hard part is developing a UI that is usable given the Android screen size and number of possible options.

I think the best library for this is probably https://github.com/1gravity/Android-RTEditor

From the screenshots it looks like the K@-Mail fork actually uses it. RTEditor is Apache 2.0 licensed (like K-9) so it is fine for us to use as well.

I don't tend to need to write formatted email so this is quite low on my priority list. If someone wants to pick it up I'm happy to review code though.

TLATER commented 7 years ago

I think that considering the UI problems using markdown or similar typable markup languages is probably the way to go.

I personally would like to see this feature, if markdown is considered an option I will probably start working on it.

owiuefiweytgt commented 6 years ago

Have you taken a look at Memento note taking app? https://github.com/yaa110/Memento Just found it myself. It has limited rich text capabilities, but the UI is very intuitive. Being able to change colors and embed tables and images seems like a must have nowadays. Switching to markup would be a great feature to support advanced editing.

The toolbar could be placed on a menu or pop up window to save space, just some thoughts.

Also looked at RichEditor for Android, https://github.com/wasabeef/richeditor-android , but it has not been updated in years.

Great App guys!

Valodim commented 6 years ago

Memento seems to use RichEditor, and that lib has actually been updated roughly a year ago. Looks nice though, we should take it into consideration

SternByName commented 5 years ago

Is there any way this could be prioritised? K9 is the best email app for Android but whenever I recommend it I always have to say 'but you can't format your emails at all'. Then they look at me like I've travelled from the ancient past (which I sort of have I guess!). The other popular email apps I've had a look at all allow formatting: they may be inferior to K9 in a thousand ways, but formatting does seem to be regarded as a basic function now. Afraid I can't code but very happy to test.

PackElend commented 5 years ago

Same here this quite and old request and any modern app out there supports rich text by default so I can't understand why k-9 does not.

Sent from a fair mobile

On Sat, 22 Dec 2018, 11:42 SternByName <notifications@github.com wrote:

Is there any way this could be prioritised? K9 is the best email app for Android but whenever I recommend it I always have to say 'but you can't format your emails at all'. Then they look at me like I've travelled from the ancient past (which I sort of have I guess!). The other popular email apps I've had a look at all allow formatting: they may be inferior to K9 in a thousand ways, but formatting does seem to be regarded as a basic function now. Afraid I can't code but very happy to test.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/k9mail/k-9/issues/1745#issuecomment-449561518, or mute the thread https://github.com/notifications/unsubscribe-auth/ADYMD7DL7lNKUfEDIZ310GRBQhPwEPPPks5u7gyVgaJpZM4KeH_m .

PackElend commented 5 years ago

any chance that any rich text support will be implemented soon?

cketti commented 4 years ago

Incomplete list of things that implementations have to take into account:

This feature requires a lot of changes and chances are we will introduce quite a few bugs in the process. Because of this I want us to have a build flag to be able to disable this feature for stable versions until the feature is stable enough.

starshipcoder commented 4 years ago

There is lib which could suit for typeface toolbar and edittext: https://github.com/wordpress-mobile/AztecEditor-Android/ It is design to write html code but we could use only the text editor part.

lucatruf commented 3 years ago

I understand the work needed to add an html editor and so to send actual html email. Since in settings we can choose to send html emails, would be an option to set content-type to text/html when those settings is specified? It would allow to add and correctly read an html signature at least.

Dave-Rado commented 1 year ago

it's not just the ability to format text that's glaringly missing - it's also the ability to insert links and inline images: 234420246-556f8c01-2008-4661-835f-de5b422d0f20

As for the UI that's incredibly easy to implement - all you need is a formatting toolbar at the top or bottom of the screen, similar to the one that's in the UI I'm using to type this message. Several other Android email clients have one.

As things stand, I have to use a different email client to send several messages every day, which is insane when this is such a basic feature request.

Dave

ceskyDJ commented 1 year ago

Any progress here? This is a strong weakness of this even perfect app for mailing. I hope someone will look at it and add support for formatted (using Markdown or some kind of WYSIWYG editor) in some of the upcoming releases. I looked at so many mailing apps for Android and found this app the best (has PGP support, nice UI, all options I need, good widget, ...) but there is still missing rich text editor support. So, what do you mean, is it an acceptable feature request?

nose-gnome commented 8 months ago

Is there a reason this hasn't happened yet? Is there something making this difficult to implement, if not, then I might be able to try and open a pull request to fix this, as this has been extremely annoying for me. Unless it's a lot of work to implement.

bblackmoor commented 8 months ago

Is there a reason this hasn't happened yet? Is there something making this difficult to implement, if not, then I might be able to try and open a pull request to fix this, as this has been extremely annoying for me. Unless it's a lot of work to implement.

In my opinion, the only possible explanation for lacking such a basic feature is that someone with a stranglehold on the project hates non-plaintext email, and has been blocking it for the past decade.

matj1 commented 2 weeks ago

I suggest that K9 could have an option to interpret the the text as Markdown and convert it before it is sent. Markdown allows writing text with a clean obvious structure without almost any extra interface.

One extra piece of interface useful for this is syntax highlighting because it is sometimes hard to predict if a specific thing is recognized as Markdown formatting, or a way to preview the message as HTML to make sure that it is formatted correctly.

I would prefer this over a usual formatting UI, or I would like at least a way to view and edit the HTML code directly to make sure that there are no undesirable tags.

matj1 commented 2 weeks ago

There is lib which could suit for typeface toolbar and edittext: https://github.com/wordpress-mobile/AztecEditor-Android/ It is design to write html code but we could use only the text editor part.

The HTML part is useful. I would like to keep it there so I can check the HTML of the message directly.

kewisch commented 2 weeks ago

Hi folks. I'd love to have this one as well, I suspect the only reason it hasn't happened yet is the difficulty to implement. Doing this right is incredibly complex, as there are various security implications for example when you reply to an email that includes HTML. I'm hoping this is something we can work out in 2025. If someone reading this has expertise in this area we'd very much appreciate your support.

sylbru commented 5 days ago

Hi, just wanted to mention that this feature should be implemented in a way that the rich text editor for composing HTML emails should be directly reusable for creating HTML signatures, which is another much wanted feature, essential for most users I’d say.

And while I’m here, I’ll just add that it’s probably the only thing blocking me to switch from Edison Email right now. :)