Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Jim ONeill 360 on May 05, 2019, 10:25:31 PM

Title: Email notification customization
Post by: Jim ONeill 360 on May 05, 2019, 10:25:31 PM
I'm looking to migrate away from another BB, and need to know: What are the notification emails like when a user posts a new topic, or somebody replies to a message? Does it include the title of the topic, the body of the message (or a portion thereof), or any custom fields? Can the design of the notification emails be modified?

Thanks!
Title: Re: Email notification customization
Post by: Kindred on May 07, 2019, 12:07:57 AM
There are no custom fields... the messages can be modified in the emails.english.php template files
Title: Re: Email notification customization
Post by: Jim ONeill 360 on May 07, 2019, 05:59:23 AM
Sorry, to be more clear, I'm trying to find out if the notification email can include the title of the post, and at least a snippet of the post text. Also, can it use HTML or is it limited to plain text email?
Title: Re: Email notification customization
Post by: Kindred on May 07, 2019, 06:20:05 AM
why don't you take a look? :)


for example

'notify_boards' => array(
/*
@additional_params: notify_boards
TOPICSUBJECT: The subject of the topic causing the notification
TOPICLINK: A link to the topic.
UNSUBSCRIBELINK: Link to unsubscribe from notifications.
@description:
*/
'subject' => 'New Topic: {TOPICSUBJECT}',
'body' => 'A new topic, \'{TOPICSUBJECT}\', has been made on a board you are watching.

You can see it at
{TOPICLINK}

Unsubscribe to new topics from this board by using this link:
{UNSUBSCRIBELINK}

{REGARDS}',
),


so, yes to title...
and yes, to html (but characters have to be escaped)



also,
https://custom.simplemachines.org/mods/index.php?mod=2926
Title: Re: Email notification customization
Post by: Illori on May 07, 2019, 07:24:23 AM
admin -> features and options Don't allow post text in notifications

if this option is checked the text of the post will not be in the email notification.