-
-
Notifications
You must be signed in to change notification settings - Fork 38
Conversation
Hi @Raukze - thanks for submitting this PR, we very much do appreciate your contribution. This enhancement is an excellent idea and we would be very happy to take it into Photobooth. On a first glance all changes look perfectly well. Give me a few days please, in order to find time and try things out in detail. |
AltBody replaces the Body if it's an HTML email and the receivers email client does not support HTML
Today I found this article where in the paragraph "Create an HTML email message" they say that you should always set There are a few things that need to be thought through further. In the case that someone has enabled the HTML email option but has not filled the alternative text, an empty body would be displayed for email clients that cannot display HTML emails. As I see it, there are at least three options here:
My personal opinion on this is that users who are interested in using HTML email functionality will look through all the configurable options and if they want to set an alternative text they will. The question is also how many cases there really are where the user's email client cannot display HTML emails... |
Hey and thanks for your contribution!
Or
(Sorry for closing the PR by accident, reopened) |
A fallback in empty case could be added like here: 3017d15#diff-24a73b9c7159dc18b2595e0c6a5948231af591bdbc9df8e895666d213f039b3f |
- only use alt_text if we can assure that it is set - use msgHTML() if email type is HTML and alt_text is not set - in all other cases just use the regular text as body
Hey, thanks for the suggestion @andi34 |
Thanks @Raukze , sorry I haven't had time yet to test but will try to test soon! |
Being honest with you I have never done this before and I tried to figure it out by myself but without any success. I'm willing to help if you could give me a small hint or an instruction on how to do it that'd be great. Thanks :) |
Run the following command in your root folder of photobooth
which will reformat the code to a standard formatting. As this might do changes to the code, then commit those changes into your branch. |
Thanks I was able to run the command. But I'm quite new to |
Don't worry, then we'll run it once it's merged. |
Prerequisites checklist
What is the purpose of this pull request? (put an "x" next to an item)
What changes did you make? (Give an overview)
I added the capability of the text field of the E-Mail being in HTML format. The configuration option can be found under advanced options in the E-Mail section. It is turned off by default.
Is there anything you'd like reviewers to focus on?
This is my first ever PR so please let me know if there is anything I did wrong. 🙂