HTML mail code

heirophant

New Member
I few months ago i had a code to send HTML mails from Vbulletin. I found it on google but when i upgraded to 3.6.8 it disappeared.

I tried to use commbull but it is failing to send emails :|.

I'm trying to find that code again. It was just a few lines to modify in a file in vbulletin and then i would have the option to send HTML or Plain Text mails. I think it was a modification for version 2.x but it worked on v 3.x

Does anyone knows what i'm talking about? Does anyone one uses this? can you get for me?

Thanks a lot in advance!
 
try gaz, from geek articles, search for it in the forum. also this is for vb3.6, and you can make ht ml mail nad plain text mails, the script takes out aumatically your css for the mail
 
Step 1:
In admincp/email.php find:

Code:
 print_textarea_row($vbphrase['message_email'], 'message', '', 10, 50);

Directly below it place:
Code:
 print_yes_no_row('Send HTML Email?', 'sendhtml', 0);

Step 2:
In admincp/email.php find:

Code:
 construct_hidden_code('test', $vbulletin->GPC['test']);

Directly below it place:
Code:
 construct_hidden_code('sendhtml', $_POST['sendhtml']);

Step 3:
In includes/class_mail.php find:
Code:
$headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;

and replace with:
Code:
if($_POST['sendhtml'])  {
  $headers .= 'Content-Type: text/html' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
}else{
  $headers .= 'Content-Type: text/plain' . iif($encoding, "; charset=\"$encoding\"") . $delimiter;
}
 
Back
Top