The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Emailing form in vbulletin
I have a form and it enabled to email to an email address here's the codes in the hook locations.
Here's what I got so far, Code:
//ENABLE FORM TO BE EMAILED - 1 = yes, 0 = no $formemail = "1"; //EMAIL ADDRESS TO EMAIL TO $formemailaddress = "email@email.com"; Code:
if ($formemail == "1") { require_once(DIR . '/includes/class_bbcode_alt.php'); $plaintext_parser =& new vB_BbCodeParser_PlainText($vbulletin, fetch_tag_list()); $plaintext_parser->set_parsing_language($touserinfo['languageid']); $formsend = $plaintext_parser->parse($formsend); $emails = explode(';', $formemailaddress); foreach ($emails AS $email) { vbmail($email, $posttitle, $formsend); } } So i created a 2nd one of the $formemail called formemail2 Also created the 2nd code snippet as well with the "2" added onto it. In the $formemailaddress2 if I put in a regular email address, it sends like it should. But I'm trying to pull the vbulletin user email by using $bbuserinfo[email] But it doesn't email. I'm thinking that it's not pulling the vB user info. Can anyone shed some light on this? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|