The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vb 3.6.x - how to change welcome email sender?
I am tinkering with 3.6.x in the pre-launch stage of my new forum, and I can't seem to figure out where to change the sender info of the confirmation emails and any other email sent by the board.
Right now it seems to use the board title variable, but I don't want that as it looks rather silly: From: "Outdoor Digital Photo Online - Digital Photography of the Great Outdoors! at Outdoor Photo Net \(OPN\)" <actual email address here> Which template do I have to change to remove the title and just use something I will hardcode into that template? Thanks in advance for your time and consideration. |
#2
|
|||
|
|||
Search for the phrase welcomemail you should then find a phrase that looks like "Welcome to $vboptions[bbtitle]!" Then you can just edit it to "Welcome to Our Forums" or whatever you want.
|
#3
|
|||
|
|||
rogersnm, thanks for your quick reply, but that's not it.
There is nothing wrong with the welcome email subject or body. It's the sender that's screwed up. Let's assume you send me an email from your regular email account, the sender will show up as "Nick Rogers" <whatever@yourisp.com>. That's all good, except for me the sender is $vboptions[bbtitle], which makes it "Outdoor Digital Photo Online - Digital Photography of the Great Outdoors! at Outdoor Photo Net \(OPN\)" <actual email address here>, which is not what I would like it to say. Let's assume I want to change "Outdoor Digital Photo Online - Digital Photography of the Great Outdoors! at Outdoor Photo Net \(OPN\)" <actual email address here> to "Nick Rogers" <whatever@yourisp.com>, where would I need to do that? |
#4
|
|||
|
|||
so, lets get this straight. You have an email it syas it's from "Outdoor Digital Photo Online - Digital Photography of the Great Outdoors!" instead of "webmaster@outdoor-photo.net". From what i can see it's the subject you want changing. IT's currently set for "[bbtitle] <[email adress]>" where as you want it to be "[name] <[email adress]>". It looks like your using outlook which seems to have asigned the [bbtitle] as the name of that contact. I think it's just for you.
|
#5
|
|||
|
|||
I am using Eudora, but even if accessing the email through webmail the problem is the same, here is the email header:
Code:
Return-path: <email@domain.net> Envelope-to: email@domain.net Delivery-date: Sun, 25 Jun 2006 03:43:02 -0400 Received: from xxx by xxx.xxx.xxx with local (Exim 4.52) id 1FuPGo-0000WL-4v for email@domain.net; Sun, 25 Jun 2006 03:43:02 -0400 To: email@domain.net Subject: New User at Outdoor Digital Photo Online - Digital Photography of the Great Outdoors at Outdoor Photo Net From: "Outdoor Digital Photo Online - Digital Photography of the Great Outdoors at Outdoor Photo Net)" <email@domain.net> Auto-Submitted: auto-generated Message-ID: <200606250701.3deb9b712603@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: Sun, 25 Jun 2006 03:43:02 -0400 What I would like to achieve is that the From: line reads "Outdoor Photo Net" <email@domain.net> |
#6
|
|||
|
|||
Then change your board name.
|
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|