News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Where do I find the email specification/layout?

Started by Yikesfactor, September 16, 2018, 10:24:28 AM

Previous topic - Next topic

Yikesfactor

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.

Kindred

#1
In Themes/default/languages

I think its email.templates.english.php or something similar
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Yikesfactor

Quote from: Kindred on September 16, 2018, 03:02:58 PM
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.

Illori

what exact text are you wanting to modify? if you tell us that then we can tell you where it may be.

Yikesfactor

#5
Quote from: Illori 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.


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.
Version 2.0.15

Used phpBB before, new to SMF.

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

Illori

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.

Yikesfactor

Quote from: Illori 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.


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.

Yikesfactor

Quote from: Yikesfactor on September 17, 2018, 06:14:29 AM
Quote from: Illori 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.


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.

Kindred

#9

$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.';
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Yikesfactor

Quote from: Kindred on September 17, 2018, 07:54:14 AM

$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.

Advertisement: