The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]()
LOL
That's my whole point, I don't want to change the board name just to change the "FROM" line of the email, furthermore, I shouldn't have to. The board name is what it is due to SEO considerations. Clearly there must be code somewhere that determines what the FROM line of emails is supposed to be, whether that is part of a template or part of the actual vB code. What I would like to find out where in the code there is a line that looks like (pseudo) FROM = $vboptions[bbtitle], so that I can hardcode a different name in there. Edit: I looked at this myself, turns out that the relevant file is /includes/class_mail.php, will report back once I figured out how to change it. I found it by searching for "from" in all files and looking through those that look like they may have something to do with email. Edit2: (automerge sucks, as this post is not flagged as new, even though there is now massivly new content ![]() Ok, in /includes/class_mail.php FIND: PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
Code:
Return-path: <email@domain.net> Envelope-to: email@domain.net Delivery-date: Mon, 26 Jun 2006 04:14:34 -0400 Received: from xxx by xxx.xxx.xxx with local (Exim 4.52) id 1FumEs-0003Hm-A1 for email@domain.net; Mon, 26 Jun 2006 04:14:34 -0400 To: email@domain.net Subject: Welcome to Outdoor Photo Net - Digital Photography and Digital Photo Online Resource! From: "Outdoor Photo Net - Digital Photography and Digital Photo Online Resource" <email@domain.net> Auto-Submitted: auto-generated Message-ID: <200606260816.9a6b42347894@www.outdoor-photo.net> 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 Date: Mon, 26 Jun 2006 04:14:34 -0400 Code:
Return-path: <email@domain.net> Envelope-to: email@domain.net Delivery-date: Mon, 26 Jun 2006 05:17:01 -0400 Received: from xxx by xxx.xxx.xxx with local (Exim 4.52) id 1FunDJ-000326-2S for email@domain.net; Mon, 26 Jun 2006 05:17:01 -0400 To: email@domain.net Subject: Welcome to Outdoor Photo Net - Digital Photography and Digital Photo Online Resource! From: "Outdoor Photo Forum" <email@domain.net> Auto-Submitted: auto-generated Message-ID: <200606260957.45748e183842@www.outdoor-photo.net> 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 Date: Mon, 26 Jun 2006 05:17:01 -0400 PHP Code:
I am not sure what the problem is. Assigning a variable to $from should eliminate the need to do any of the replace edits I showed above. I am unable to properly debug the whole thing. This is part of the original class_mail.php code PHP Code:
I just don't know enough about how this all works, but I tried both $from = 'Outdoor Photo Forum' and $from = "Outdoor Photo Forum", and both resulted in empty FROM lines in the email header, empty in such a sense that they looked like this "" <email@domain.net> Well that's about it. It works the way I chose by replacing all the code as shown above. It would be nice to get it to work by just assigning a value to $from, but after I tried this for a while I grew tried and gave up since I do have a working solution. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|