Advertisement:

Author Topic: Where do I find the email specification/layout?  (Read 387 times)

Online Yikesfactor

  • Semi-Newbie
  • *
  • Posts: 93
Where do I find the email specification/layout?
« on: September 16, 2018, 10:24:28 AM »
I've noticed the notification emails do not comply with current requirements.

And I cant find anything about email layout in the Admin section.

Where do I find the email stuff, so I can edit mailing address and opt-out information into it?
Version 2.0.15

Used phpBB before, new to SMF.

I know enough to be dangerous.
Breaking things is my specialty.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,961
  • Gender: Male
    • Kindred-999 on GitHub
Re: Where do I find the email specification/layout?
« Reply #1 on: September 16, 2018, 03:02:58 PM »
In Themes/default/languages

I think its email.templates.english.php or something similar
« Last Edit: September 16, 2018, 05:43:37 PM by Kindred »
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 8,154
  • 'Tis the gift to be simple (duh)
Re: Where do I find the email specification/layout?
« Reply #2 on: September 16, 2018, 04:53:27 PM »
Try EmailTemplates.english.php.

Online Yikesfactor

  • Semi-Newbie
  • *
  • Posts: 93
Re: Where do I find the email specification/layout?
« Reply #3 on: September 17, 2018, 12:07:03 AM »
In Themes/default/languages

I think its email.templates.english.php or something similar


A lot of email stuff is in there, but not the ending appended after.

Is there another file where the framework of the email is defined?
Version 2.0.15

Used phpBB before, new to SMF.

I know enough to be dangerous.
Breaking things is my specialty.

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,733
Re: Where do I find the email specification/layout?
« Reply #4 on: September 17, 2018, 05:20:31 AM »
what exact text are you wanting to modify? if you tell us that then we can tell you where it may be.

Online Yikesfactor

  • Semi-Newbie
  • *
  • Posts: 93
Re: Where do I find the email specification/layout?
« Reply #5 on: September 17, 2018, 06:02:38 AM »
what exact text are you wanting to modify? if you tell us that then we can tell you where it may be.


Email requirements these days include a postal address for the person/org sending it, and a method of opting out of the emails.

So I need to add both. The first being an address, and the second being a statement they can opt out of notifications by turning them off in their profile.

In early phpBB, this was in a field within the admin section. if SMF has it there, I cant find it, hence asking for where in the php it's defined.

As far as I can see, the end email statement is very short, starting with 'regards', putting in the forum name, and ending with 'team.' But that isn't in the file mentioned earlier.


Edit: Given whats been going on in the EU lately, the forum software hasn't kept up with international regulations in this area. Even in the US, anything without an opt-out method, is likely to be tagged as spam. And form memory, this is a requirement now in the US for a mailing address on commercial emails.
« Last Edit: September 17, 2018, 06:13:12 AM by Yikesfactor »
Version 2.0.15

Used phpBB before, new to SMF.

I know enough to be dangerous.
Breaking things is my specialty.

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 49,733
Re: Where do I find the email specification/layout?
« Reply #6 on: September 17, 2018, 06:11:28 AM »
themes\default\languages\index.english.php
   Line 113: $txt['regards_team'] = 'Regards,' . "\n" . 'The ' . $context['forum_name'] . ' Team.';

/themes\default\languages\Post.english.php
   Line 12: $txt['regards_team'] = "Regards,\nThe " . $context['forum_name'] . ' Team.';

i am not sure when one vs the other is used but that is where the text is.

Online Yikesfactor

  • Semi-Newbie
  • *
  • Posts: 93
Re: Where do I find the email specification/layout?
« Reply #7 on: September 17, 2018, 06:14:29 AM »
themes\default\languages\index.english.php
   Line 113: $txt['regards_team'] = 'Regards,' . "\n" . 'The ' . $context['forum_name'] . ' Team.';

/themes\default\languages\Post.english.php
   Line 12: $txt['regards_team'] = "Regards,\nThe " . $context['forum_name'] . ' Team.';

i am not sure when one vs the other is used but that is where the text is.


Thanks. Now I'm not sure I'm up to altering it, but I'll go look.
Version 2.0.15

Used phpBB before, new to SMF.

I know enough to be dangerous.
Breaking things is my specialty.

Online Yikesfactor

  • Semi-Newbie
  • *
  • Posts: 93
Re: Where do I find the email specification/layout?
« Reply #8 on: September 17, 2018, 06:52:16 AM »
themes\default\languages\index.english.php
   Line 113: $txt['regards_team'] = 'Regards,' . "\n" . 'The ' . $context['forum_name'] . ' Team.';

/themes\default\languages\Post.english.php
   Line 12: $txt['regards_team'] = "Regards,\nThe " . $context['forum_name'] . ' Team.';

i am not sure when one vs the other is used but that is where the text is.


Thanks. Now I'm not sure I'm up to altering it, but I'll go look.

I'm not up to doing this. Can anyone suggest replacement code for this:

After the above code, I need to add...

"You are receiving this email because you requested notifications from XXXXX forum."
"You can stop receiving these emails at any time by turning off email notifications in your forum profile."
"The forum mailing address is,"
"BlahBlah name, PO box, Suburb,city,region, postcode/zip,country."

...with appropriate spacing so it looks good.

These all need to be used every time the existing line is activated.
Version 2.0.15

Used phpBB before, new to SMF.

I know enough to be dangerous.
Breaking things is my specialty.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 56,961
  • Gender: Male
    • Kindred-999 on GitHub
Re: Where do I find the email specification/layout?
« Reply #9 on: September 17, 2018, 07:54:14 AM »
Code: [Select]
$txt['regards_team'] = 'You are receiving this email because you requested notifications from  ' . $context['forum_name'] . ' forum.\n
You can stop receiving these emails at any time by turning off email notifications in your forum profile.\n
The forum mailing address is,\n
BlahBlah name, PO box, Suburb,city,region, postcode/zip,country.';
« Last Edit: September 17, 2018, 07:55:06 AM by Illori »
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Online Yikesfactor

  • Semi-Newbie
  • *
  • Posts: 93
Re: Where do I find the email specification/layout?
« Reply #10 on: September 17, 2018, 08:22:12 AM »
Code: [Select]
$txt['regards_team'] = 'You are receiving this email because you requested notifications from  ' . $context['forum_name'] . ' forum.\n
You can stop receiving these emails at any time by turning off email notifications in your forum profile.\n
The forum mailing address is,\n
BlahBlah name, PO box, Suburb,city,region, postcode/zip,country.';



Thank you !  :D
Version 2.0.15

Used phpBB before, new to SMF.

I know enough to be dangerous.
Breaking things is my specialty.