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
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

HTML Template in Emails.

Post by Dragosvr92 »

What does everyone think about including a html template, in the emails received from a phpbb forum ?

It could make use of the board css.
Previous user: TheKiller
Avatar on Memberlist 1.0.3

Danielx64
Registered User
Posts: 304
Joined: Mon Feb 08, 2010 3:42 am

Re: HTML Template in Emails.

Post by Danielx64 »

No as it could make the email bigger than it need to be IMO

User avatar
callumacrae
Former Team Member
Posts: 1046
Joined: Tue Apr 27, 2010 9:37 am
Location: England
Contact:

Re: HTML Template in Emails.

Post by callumacrae »

+1, as phpBB emails are pretty ugly.
Made by developers, for developers!
My blog

ForumsFaciles
Registered User
Posts: 25
Joined: Sat Jun 05, 2010 10:49 pm
Location: On Ascraeus
Contact:

Re: HTML Template in Emails.

Post by ForumsFaciles »

+1, I'd like to see this implemented.

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

Re: HTML Template in Emails.

Post by brunoais »

I didn't understand...You mean to have a template of the e-mails sent to the user?

User avatar
imkingdavid
Registered User
Posts: 1050
Joined: Thu Jul 30, 2009 12:06 pm

Re: HTML Template in Emails.

Post by imkingdavid »

He means styling the emails to make them look like they were sent from the board. Currently, iirc, they are just plain text.
TheKiller wrote:It could make use of the board css.
Would it use the default board style or would it go through each user to determine which style they use and then use that CSS? Also, how would it determine which rules to use from that stylesheet? We would probably need to create a new stylesheet file that contains only the rules that would be needed for emails. Of course that's just extra work for each style author.

Anyway, I'm not sure how I feel about this. Some emails (from the stone age) cannot accept HTML. Other people might have HTML turned off in their email address's settings. If we implement this, we should provide another UCP option to determine whether or not the user wishes to receive HTML or plain text emails.
I do custom MODs. PM for a quote!
View My: MODs | Portfolio
Please do NOT contact for support via PM or email.
Remember, the enemy's gate is down.

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: HTML Template in Emails.

Post by Dragosvr92 »

Yep, they are plain text.

I am not entirely sure... I guess it should use the style the user has defined in his UCP.
Maybe they should chose what css template they want on their emails, same like the board style?

It should mainly get the background, text colour, from the body element. link colours etc.....
Whatever the template should look like.. It should use only css from the board, no round corners images, as the images might be missing..

I guess it would be simpler to create a new email.css file for it tho... Then users would have to include the new file into their style, and put the colours they need..? Or.. as you said, the style authors would have to fix it.

You are right. They should be able to chose if they want the html template or prefer to be old school and use the plain text.
Previous user: TheKiller
Avatar on Memberlist 1.0.3

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

Re: HTML Template in Emails.

Post by DavidIQ »

I think emails should at least be sent as HTML and links formatted as such. The recent actions of Apple with their patents have forced HTC to do silly stuff with their Android 4.x email software which means that links in phpBB emails don't actually turn to links because we send emails as plain text. There are ways around this like rooting and such but not everyone wants to do that to their mobile phones.
Image

Jocelyn79
Registered User
Posts: 11
Joined: Mon Apr 04, 2011 12:42 pm

Re: HTML Template in Emails.

Post by Jocelyn79 »

I agree, I would like my board to be able to send HTML emails with some styling, instead of plain-text old-looking emails.
There could be a board-wide setting and a user-setting for choosing between text emails or HTML emails.

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: HTML Template in Emails.

Post by Dragosvr92 »

Btw, at the moment phpbb sends emails with no sender name. Just the website domain name.
It should add the forum title as a sender, or the board owner name. wordpress uses the title Wordpress, as sender..
Maybe you could add some check boxes for this two options, and a checkbox that lets you type a different title. Or use a drop down selection menu instead of check boxes..
Previous user: TheKiller
Avatar on Memberlist 1.0.3

Post Reply