ElkArte Community

Project Support => General ElkArte discussions => Topic started by: derived on February 04, 2017, 05:15:33 pm

Title: EnailTemplates
Post by: derived on February 04, 2017, 05:15:33 pm
I am setting up multiple sites, using a single email address for all the forum mail.
Want to edit the template subject lines to include the forum root url, so can easily tell which forum the mail relates too.

Is this correct code for appending the forum root url into the mail subject line?
Code: [Select]
 {$board_url} 




While looking at this, I noticed  something about Bday Mails.
So I just pointing it out.

default happy bday, with regards from, ...  a smf profile link

Code: [Select]
{REGARDS}';
$txtBirthdayEmails['happy_birthday_author'] = '<a href="http://www.simplemachines

.
Title: Re: EnailTemplates
Post by: emanuele on February 05, 2017, 04:24:29 am
The default replacements (i.e. available for all the email templates) are:
Code: [Select]
	$replacements += array(
'FORUMNAME' => $mbname,
'FORUMNAMESHORT' => (!empty($modSettings['maillist_sitename']) ? $modSettings['maillist_sitename'] : $mbname),
'EMAILREGARDS' => (!empty($modSettings['maillist_sitename_regards']) ? $modSettings['maillist_sitename_regards'] : ''),
'FORUMURL' => $boardurl,
'SCRIPTURL' => $scripturl,
'THEMEURL' => $settings['theme_url'],
'IMAGESURL' => $settings['images_url'],
'DEFAULT_THEMEURL' => $settings['default_theme_url'],
'REGARDS' => replaceBasicActionUrl($txt['regards_team']),
);
So you can add for example:
Code: [Select]
{FORUMURL}
and it will be replaced with the board url.
Title: Re: EnailTemplates
Post by: ahrasis on February 06, 2017, 09:59:27 pm
Good stuff! I wish if this is also possible with "Webmaster email address" in general server settings. May be we can divide it into two i.e. Email Username and Email / Forum URL. This will support multi sites with multi (yet like individual) emails. Something like this:

Email Username e.g. elkarte.webmaster
Email / Forum URL e.g. gmail.com / {FORUMURL}

User who receives it will see that as elkarte.webmaster@gmail.com / elkarte.webmaster@your.forum.url

Just a thought anyway. :D