Email Templates

nate
@nate
10 years ago
917 posts
I have a client that want to customize his email templates with some HTML.

Is there a master templates or do I need to edit each one?
updated by @nate: 03/23/15 02:12:33PM
brian
@brian
10 years ago
10,148 posts
Natedogg265:
I have a client that want to customize his email templates with some HTML.

Is there a master templates or do I need to edit each one?

There is a master header/footer in the core module, otherwise you need to customize each one.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
sbhadauria
@sbhadauria
9 years ago
129 posts
I want to send email as html on user signup, I don't want to change core files.
Please suggets.
brian
@brian
9 years ago
10,148 posts
sbhadauria:
I want to send email as html on user signup, I don't want to change core files.
Please suggets.

Update your email templates to have HTML in them and the mailer will send them as HTML.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
The html markup is showing up in the email.
brian
@brian
9 years ago
10,148 posts
DannyA:
The html markup is showing up in the email.

I've not seen that in testing here - are you viewing in a client that will show HTML email by default?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
9 years ago
10,148 posts
I've just released version 1.2.1 that has been changed to look for an open "html" tag in the message template - i.e.:

<html>
...

If it sees that it will send as an HTML email. I noticed there were a number of "false positives" with version 1.2.0.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
That seemed to help
alt=
@nsharma
9 years ago
6 posts
I have added the html tag in to the template and updated to jrMailer-release-1.2.1 but it not reflecting the html mail its giving the plain text still in email.
alt=
@nsharma
9 years ago
6 posts
I am trying overide the template of a module jrUser:
email_forgot_message.tpl


and overridden in the skin directory:
jrUser_email_forgot_message.tpl

but its still sending the email from old template not reflecting updated html.
paul
@paul
9 years ago
4,326 posts
Is the jrUser_email_forgot_message.tpl template in the 'active' skin folder?


--
Paul Asher - JR Developer and System Import Specialist
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Again I would be a buyer on a module that used the smarty code to inject the last weeks content on the site into an email template for sending each week. I know it's not on the roadmap but I think it would be a good seller
alt=
@nsharma
9 years ago
6 posts
yes the jrUser_email_forgot_message.tpl template in the 'active' skin folder.

I have review the jrMailer include.php and the code line
strpos(' ' . trim($_email_info['message']) never return the position 0 .
updated by @nsharma: 02/12/15 08:10:26PM
alt=
@nsharma
9 years ago
6 posts
i have override the template from active skin folder also trying to test with the core template updated html format but still mail is sending in text format.
updated by @nsharma: 02/15/15 10:01:31PM
brian
@brian
9 years ago
10,148 posts
It will send in text format unless you have:

<html>

At the very top if your message template.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
So if you customize the master header template in the core and add tag to it, do you still need to modify all the others?
brian
@brian
9 years ago
10,148 posts
DannyA:
So if you customize the master header template in the core and add tag to it, do you still need to modify all the others?

Which master header are you customizing?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
brian:


There is a master header/footer in the core module, otherwise you need to customize each one.

Hope this helps!

Which one were you referring to?
brian
@brian
9 years ago
10,148 posts
The only "overall" header for the system is:

modules/jrUser/templates/email_overall_header.tpl

You would want to add your html header there.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
DannyA
@dannya
9 years ago
584 posts
So, If you add to email_overall_header.tpl, do you still have to add it to all the other templates? Wouldn't the tag automatically be included in all the other templates since they would use that header?
brian
@brian
9 years ago
10,148 posts
DannyA:
So, If you add to email_overall_header.tpl, do you still have to add it to all the other templates? Wouldn't the tag automatically be included in all the other templates since they would use that header?

yes - if you add the HTML header to that template, it should be included in ALL emails being sent out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
jimmyk
jimmyk
@jimmy
9 years ago
514 posts
derrickhand300:
Again I would be a buyer on a module that used the smarty code to inject the last weeks content on the site into an email template for sending each week. I know it's not on the roadmap but I think it would be a good seller


Sounds like you're looking for a Newsletter module?
alt=
@nsharma
9 years ago
6 posts
modules/jrUser/templates/email_preferences_footer.tpl is not working with jrMailgun is active to send email.
alt=
DannyA
@dannya
9 years ago
584 posts
jimmyk:
derrickhand300:
Again I would be a buyer on a module that used the smarty code to inject the last weeks content on the site into an email template for sending each week. I know it's not on the roadmap but I think it would be a good seller


Sounds like you're looking for a Newsletter module?

I don't think that's what he means. I was looking for something similar.

The newsletter module is a good tool, however it's not very good for sending a newsletter based on the site's content.

It would be ideal to be able to send a news letter and have it personalized for the user according to his preferences. For example:

#1 An update of new content of people he follows (feed)- This by itself would be amazing.
#2 Create newsletter based on recommendations based on previous purchases and likes.
#3 Create a newsletter based on most popular or newest content (or really any chart).

Right now you can't really do much with newsletters. They are manually created, static, and not personalized at all.

Tags