The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to have a prefix on every email set?
I would like it so that when an email is sent from the system it is prefixed by a phrase of my choosing, like "Community Message -" and then it adds the true subject after that.
I think a lot of people have junk mail features in their email or just ignore emails where the subject doesn't catch them. Where would I put this code? Which file? I've been searching. Thanks Josh |
#2
|
||||
|
||||
You can edit each emailsubject_ template and add that.
|
#3
|
||||
|
||||
You can also run this template to it automatically:
Code:
UPDATE template SET template = CONCAT('Community Message - ', template) WHERE title LIKE 'emailsubject%'; |
#4
|
|||
|
|||
Thank You... That helps out a lot.
One more question. Say I wanted to include the text that I was going to use in a file (for instance the config.php file used for vbPortal). How would I go about doing that? Thanks Josh |
#5
|
||||
|
||||
That would be a lot harder, you'll need to trace down every call to mail() in vBulletin, make sure the config variable can be used there (you might need to globalize it) and use it in the templates.
|
#6
|
|||
|
|||
Thanks. I've got some things I'm going to work on. I can always fall back on the easy way.
Josh |
#7
|
||||
|
||||
How can I do this with 3.6.x? (I'm not seeing any "emailsubject_" templates.)
Specifically I'd like to add a default prefix for emails sent out via the AdminCP -> Users -> "Send Email to Users" function. (It's email.php in the admincp folder, if that helps.) I'd like those emails to have my forum name as a prefix, so users can consistently find/filter them. |
#8
|
||||
|
||||
Wow, impressive five year bump.
You can use the "mail_send" hook to update the subject (and other parameters) before a mail is sent. |
#9
|
||||
|
||||
Thanks! I was a good boy and did a search.
Quote:
I know how to edit templates, phrases and plugins, but haven't yet deal with hooks. I'm self-taught with all things vBulletin and have gotten along fine for awhile now. I follow instructions well. Any notes on how to use the mail_send hook to add a prefix to these emails, would be appreciated. |
#10
|
||||
|
||||
Any help on how to do this?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|