XF 2.3 Change e-mail Sender from default Board title to new value

frm

Well-known member
My Board title is pretty long that it gets cut off in emails on most viewports.

I'd like to change it to an acronym for what appears as the sender for emails instead of the full-length board title.

Is this possible with a template edit of some sort? I have never touched the email templates to know.

Thanks in advance,
 
Solution
In Email options, change "Default email sender name" (emailSenderName) to your preferred short name - this will be set as the "From" name in emails.
In the templates lists go to Email templates via the tab at the top of list.

In MAIL_CONTAINER

Find this bit
Code:
<table id="bodyTable" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
    <td align="center" valign="top" id="bodyTableContainer">
        <table border="0" width="600" cellpadding="0" cellspacing="0" class="container" style="table-layout: fixed;" dir="{$xf.language.text_direction}">
        <tr>
            <td class="header" align="center" valign="top">
                <a href="{{ link('canonical:index') }}">{$xf.options.boardTitle}</a>
            </td>

Change {$xf.options.boardTitle} to your acronym.

Alternatively it is probably better to use {$xf.options.boardShortTitle} instead if you have a short board title configured in ACP SETUP Options > basic Options
 
Last edited:
In Email options, change "Default email sender name" (emailSenderName) to your preferred short name - this will be set as the "From" name in emails.
 
  • Like
Reactions: frm
Solution
In the templates lists go to Email templates via the tab at the top of list.

In MAIL_CONTAINER

Find this bit
Code:
<table id="bodyTable" border="0" width="100%" height="100%" cellpadding="0" cellspacing="0">
<tr>
    <td align="center" valign="top" id="bodyTableContainer">
        <table border="0" width="600" cellpadding="0" cellspacing="0" class="container" style="table-layout: fixed;" dir="{$xf.language.text_direction}">
        <tr>
            <td class="header" align="center" valign="top">
                <a href="{{ link('canonical:index') }}">{$xf.options.boardTitle}</a>
            </td>

Change {$xf.options.boardTitle} to your acronym.

Alternatively it is probably better to use {$xf.options.boardShortTitle} instead if you have a short board title configured in ACP SETUP Options > basic Options
That would be in the email contents, which is fine.

I was going for the "from:" line in email boxes.

Didn't know there was an alternative 3rd option, emailSenderName.

Thanks though, I'll edit out the long title there!
 
Back
Top Bottom