HTML Template in Emails.

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
User avatar
MichaelC
Development Team
Development Team
Posts: 889
Joined: Thu Jan 28, 2010 6:29 pm

Re: HTML Template in Emails.

Post by MichaelC » Thu Nov 01, 2012 6:29 pm

In that case. +1 to no options at all then.
Formerly known as Unknown Bliss
psoTFX wrote: I went with Olympus because as I said to the teams ... "It's been one hell of a hill to climb"
No unsolicited PMs please except for quotes.

User avatar
brunoais
Registered User
Posts: 964
Joined: Fri Dec 18, 2009 3:55 pm

Re: HTML Template in Emails.

Post by brunoais » Thu Nov 01, 2012 7:25 pm

Oh! I didn't know about such thing. In that case I agree with you. Sending in both HTML and plain text and not have any options on that matter seem to be the right answer.

User avatar
Pony99CA
Registered User
Posts: 986
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA
Contact:

Re: HTML Template in Emails.

Post by Pony99CA » Thu Nov 01, 2012 9:20 pm

EXreaction wrote:You can send an email and include both HTML and plain text in a single message. The email client will use whichever one it wants.
I know that, but that more than doubles the size of the E-mail, increasing the board's bandwidth use. Also, I recall using some E-mail clients where you end up seeing both the plain text and HTML E-mail (not formatted -- HTML text), but I suppose that could have been a bug in the client or bad formatting on the sender's part.

An ACP option of Plain/HTML/Either (user's choice)/Both (E-mail client's choice) puts the admin in charge. As for why an admin might force plain text or HTML on users, it could be for bandwidth (plain text) or branding (HTML).

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

Oleg
Posts: 1150
Joined: Tue Feb 23, 2010 2:38 am
Contact:

Re: HTML Template in Emails.

Post by Oleg » Thu Nov 01, 2012 10:32 pm

The issue of emails taking more bandwidth is in my opinion irrelevant.

Any board should use order(s) of magnitude more bandwidth for page views than for emails.

I'm assuming the discussion so far covered notification emails only. Once notification emails are in html, how long will it take until admins ask to send bulk email in html as well?

User avatar
Pony99CA
Registered User
Posts: 986
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA
Contact:

Re: HTML Template in Emails.

Post by Pony99CA » Thu Nov 01, 2012 10:45 pm

Oleg wrote:The issue of emails taking more bandwidth is in my opinion irrelevant.

Any board should use order(s) of magnitude more bandwidth for page views than for emails.
True, but there's always the straw that breaks the camel's back. ;) Plus, when an ISP is determining whether somebody is a spammer, do they just count the number of E-mails sent in a given time or do they take bandwidth into account, too? If they take bandwidth into account, Web traffic would be irrelevant in that case.
Oleg wrote:I'm assuming the discussion so far covered notification emails only. Once notification emails are in html, how long will it take until admins ask to send bulk email in html as well?
Actually, I'd be more in favor of that. Styling and branding is more appropriate in a newsletter, plus the Admin already controls how and when such E-mails are sent. He has no real control over notifications (other than maybe disallowing them completely).

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: HTML Template in Emails.

Post by EXreaction » Thu Nov 01, 2012 11:34 pm

Current emails are in the 1-3Kb range; a normal page-view without extra images here is 100-200Kb, but down to as little as 20Kb using a local cache.

User avatar
Pony99CA
Registered User
Posts: 986
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA
Contact:

Re: HTML Template in Emails.

Post by Pony99CA » Fri Nov 02, 2012 1:17 am

Do images linked in HTML E-mail get cached, too? In other words, if my notification E-mails include the board's logo, will the E-mail reader cache that (or use an image in the browser's cache)?

I'm asking because another thing to consider is the user's bandwidth. If user's have their phones configured to get E-mail from the same account they get their notifications sent to (like I do), if the images are not cached, that 1-3 KB text E-mail gets doubled to 2-6 KB for the text and HTML and then another big chunk for the image. (How big is the phpBB logo, for example?) That could eat into the user's data plan.

With more and more carriers in the U.S., eliminating unlimited data plans, that could be a concern, too.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

User avatar
EXreaction
Registered User
Posts: 1555
Joined: Sat Sep 10, 2005 2:15 am

Re: HTML Template in Emails.

Post by EXreaction » Fri Nov 02, 2012 5:54 am

Web mail clients probably would cache images linked via HTML since the web browser handles loading the page, but I do not know about desktop mail clients.

I don't think anyone is suggesting significantly changing the email messages to include significant amounts of HTML. I think the idea is all that would be done is to put an HTML wrapper around the text and put <a> tags around the links so the user can click them if their mail client does not automatically parse links.

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1831
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: HTML Template in Emails.

Post by DavidIQ » Fri Nov 02, 2012 10:50 am

EXreaction wrote:Web mail clients probably would cache images linked via HTML since the web browser handles loading the page, but I do not know about desktop mail clients.

I don't think anyone is suggesting significantly changing the email messages to include significant amounts of HTML. I think the idea is all that would be done is to put an HTML wrapper around the text and put <a> tags around the links so the user can click them if their mail client does not automatically parse links.
Yes that is the idea. Changing the email templates to be overly complex with many images and "prettiness" will be up to the board admin but I doubt many would do anything to notification emails and I don't think we should give them the option of easily changing them either. If they wanted to change the template then they would have to edit the physical file, just like they have to do it now.
Image

User avatar
brunoais
Registered User
Posts: 964
Joined: Fri Dec 18, 2009 3:55 pm

Re: HTML Template in Emails.

Post by brunoais » Fri Nov 02, 2012 2:14 pm

EXreaction wrote:Web mail clients probably would cache images linked via HTML since the web browser handles loading the page, but I do not know about desktop mail clients.
In my case, I use thunderbird and it caches images according to its rules in the headers (thunderbird uses a browser window of gecko, just the way firefox does).
DavidIQ wrote:If they wanted to change the template then they would have to edit the physical file, just like they have to do it now.
Yeah, that's also my idea. Obviously, extensions would be able to change the e-mail templates too, right?

Post Reply