How to add a sender name in the e-mail subject?
- Date added:
- Saturday, 30 May 2009
- Last revised:
- Sunday, 07 June 2009
Answer
Nowadays everybody recieves a lot of spam, and to make our invite more trustful I'd like to put the username on the subject, so avoiding also the reciever to delete it right away without reading it, so check how to add the username in the subject:
The subject text is changed in your language ini file (en-GB.com_alpharecommend.ini) at AR_YOUAREINVITEDON=, but it is also definied in the controler.php file at yoursite/com_alpharecommend. If you check the line 140 you will find the order it is defined at:
subject = JText::_'AR_YOUAREINVITEDON' ) . " " . $SiteName;
So, let's suppose you want to put in the subject the name of the inviter and the text, just replace the code at line 140 as it:
$subject = $sender . " " . JText::_( \'AR_YOUAREINVITEDON\' ) . " " . $SiteName;




