PDA

View Full Version : send email with a high priority


Delphiprogrammi
01-18-2006, 10:00 PM
hi people,

What does this modification do ?

This modifies the admincp => users => email users system.It provides you with a choice wheter you want to email with a high priority or not.High priority simply means there will be a little red exclamation icon infront of the message subject.Just Like the emails you get sometimes from jelsoft "vbulletin product updates"

files to modify:2

/forum/admincp/email.php
/forum/includes/class_mail.php


to install and use this small modification do the folowwing

in /forum/admicp/email.php

find this code


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


directly below it add this code


print_yes_no_row('Send Email With High Priority ?','email_high',0);


in /forum/admincp/email.php

find this code

$vbulletin->input->clean_array_gpc('p', array(
'user' => TYPE_ARRAY,
'profile' => TYPE_ARRAY,
'serializeduser' => TYPE_STR,
'serializedprofile' => TYPE_STR,
'septext' => TYPE_NOTRIM,
'perpage' => TYPE_UINT,
'startat' => TYPE_UINT,
'test' => TYPE_BOOL,
'from' => TYPE_STR,
'subject' => TYPE_STR,
'message' => TYPE_STR,

below 'message' add

'emailhigh' => TYPE_BOOL,


find


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


directly below add this code


construct_hidden_code('email_high',$vbulletin->GPC['email_high']);


in /forum/includes/class_mail.php find this code


$headers .= 'X-Priority: 3' . $delimiter;


replace that with this code


if($_POST['email_high'])
{
$headers .='X-Priority:1' . $delimiter;
$headers .='X-MSMail-Priority:High' . $delimiter;
}
else
{

$headers .= 'X-Priority: 3' . $delimiter;
}



save all files upload (to there default location) in ascii mode

all done

Working fine with vbulletin 3.5.4

nhacso
01-19-2006, 01:00 PM
- Delphiprogrammi, if use this way => Email will move Inbox or Bulk !?

- And with experience's Delphiprogrammi, every send email should use how many "Email send at once" as best? (Because my board now have ~ 16.000 members; Every I send email forum AdminCp, a lots every always move to Bulk mail) :surprised:

Delphiprogrammi
01-19-2006, 01:31 PM
all this modofication does is provide you with a choice to send high priority email or not it doesn't interfere with anything else

nhacso
01-20-2006, 11:20 AM
I understood. Thanks Delphiprogrammi. :nervous:

Delphiprogrammi
01-20-2006, 12:17 PM
hi people,

Anybody want the "request a read receipt" feature ? i'm willing to add it but again if you have a large board you'll receive a large amount of read receipts ... might not be what you want ....

ztempuser
09-16-2006, 04:48 PM
bringing the old back
this iwll work in 3.6.1?

ztempuser
09-17-2006, 12:28 AM
i just did this mod and works great on 3.6.0 thanks:)