this is the fetch_email_phrases() function in functions.php
PHP Code:
function fetch_email_phrases($email_phrase, $languageid = -1, $emailsub_phrase = '', $varprefix = '')
{
if (empty($emailsub_phrase))
{
$emailsub_phrase = $email_phrase;
}
if (!function_exists('fetch_phrase'))
{
require_once(DIR . '/includes/functions_misc.php');
}
return
'$' . $varprefix . 'message = "' . fetch_phrase($email_phrase, 'emailbody', 'email_', true, iif($languageid >= 0, true, ''), $languageid, false) . '";' .
'$' . $varprefix . 'subject = "' . fetch_phrase($emailsub_phrase, 'emailsubject', 'emailsubject_', true, iif($languageid >= 0, true, ''), $languageid, false) . '";';
}
That appears to be the subject line and the message body.
Where is the FROM name coming from? That's not part of the subject or the message body.
--------------- Added [DATE]1234641914[/DATE] at [TIME]1234641914[/TIME] ---------------
Just as a clarification for what I want to do:
Code:
Received: my.domain ([0.0.0.0]) by my.server with MailSoftware ESMTP
Date: Fri, 13 Feb 2009 06:49:33 +0000
To: forummail@domain.com
From: "Person's Name @ Forum Name" <person@hotmail.com>
Return-Path: <forummail@domain.com>
Message-ID: <20090213xxxxxxx.xxxxx-domain.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-Mailer: vBulletin Mail via PHP
Subject: Subject Name As Set in vB Admin Panel
That's the header (altered, of course) from an e-mail sent to myself from my forum.
I want to change this information:
From: "Person's Name @ Forum Name" <person@hotmail.com>
It should instead be
From: "Person's Name" <person@hotmail.com>
I can't find where this is being generated from within vB. There is nothing that says "$enteredname @-symbol $forumname"
(variables made up, yes, just for purpose of my example of code)
I would have thought this as something simple to alter. Most of the PHP code I've seen so far is just jibber-jabber to me, there's nothing remotely related to the from-name that I can see.