Changes between Version 6 and Version 7 of VolunteerRecruit
- Timestamp:
- Apr 30, 2007, 9:05:41 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VolunteerRecruit
v6 v7 36 36 * ''Friend-to-friend''. These are sent by participants to their friends and family, to tell them about your project and urge them to join. The sender can add an optional message. 37 37 38 Effective use of all types of email is critical to maintaining and growing your participant base. In the absence of any email, participation typically decreases by a few percent every month. BOINC supplies the framework, but you must write the actual emails, or modify BOINC's samples as needed for your project. .38 Effective use of all types of email is critical to maintaining and growing your participant base. In the absence of any email, participation typically decreases by a few percent every month. BOINC supplies the framework, but you must write the actual emails, or modify BOINC's samples as needed for your project. 39 39 40 40 The newsletter and reminder scripts provide the following features: … … 42 42 * They let you send different emails to different 'classes' of participants. For example, you can send a different newsletter to participants who haven't computed for your project in a while. 43 43 * They let you personalize emails, e.g. by inserting the participant's name or their total credit. 44 * They provide a mechanism for inserting a secure 'opt-out' link. Note: You should ALWAYS include an 'opt-out' link at the bottom of emails (both HTML and text). I n may be illegal for you to do a mass email without one. Make sure you test this link.45 46 The scripts requires that you use [http://phpmailer.sourceforge.net/ PHPMailer], a PHP function for sending mail that 's more full-featured than the one built into PHP. Download it, put it in html/inc, and set the USE_PHPMAILER, PHPMAILER_HOST, and PHPMAILER_MAILERvariables in [WebConfig your project.inc file].44 * They provide a mechanism for inserting a secure 'opt-out' link. Note: You should ALWAYS include an 'opt-out' link at the bottom of emails (both HTML and text). It may be illegal for you to do a mass email without one. Make sure you test this link. 45 46 The scripts requires that you use [http://phpmailer.sourceforge.net/ PHPMailer], a PHP function for sending mail that is more full-featured than the one built into PHP. Download it, put it in `html/inc`, and set the `USE_PHPMAILER`, `PHPMAILER_HOST`, and `PHPMAILER_MAILER` variables in [WebConfig your project.inc file]. 47 47 48 48 All of the tools let you send multipart HTML/text messages. We recommend that you use this feature - and HTML message can include your logo and/or institutional insignia, can include hyperlinks, and can look more attractive. … … 50 50 The general procedure for using each scripts is: 51 51 52 * Create a directory (mass_email, reminder_email, or ffmail) in your html/ops/directory. In that directory, create separate files for the text body template, HTML body template, and subject line to be sent to each class of participants. NOTE: the HTML files are optional; if you leave them out, text-only emails will be sent.52 * Create a directory (mass_email, reminder_email, or ffmail) in your `html/ops/` directory. In that directory, create separate files for the text body template, HTML body template, and subject line to be sent to each class of participants. NOTE: the HTML files are optional; if you leave them out, text-only emails will be sent. 53 53 * Run the script in testing mode (see below) to ensure that the emails are as you intend. 54 * Once testing is complete, run the script in production mode. Typically, the newsletter script is run from the command line. The reminder script is typically run as a [ProjectTasks periodic task], every 24 hours or so. 54 * Once testing is complete, run the script in production mode. Typically, the newsletter script is run from the command line. The reminder script is typically run as a [ProjectTasks periodic task], every 24 hours or so. 55 55 56 56 The newsletter and reminder scripts use the recent-average credit (expavg_credit) field in the user table. To make sure this value is accurate, run [ProjectTasks update_stats] manually if you're not running it as a periodic task. … … 60 60 The newsletter and reminder scripts replace the following macros in your email bodies (both HTML and text): 61 61 62 <name/>::User name63 <create_time/>:: When account was created (D M Y)64 <total_credit/>:: User's total credit65 <opt_out_url/>:: URL for opting out (this URL includes a salted version of the participant's account key, and so is different for every participant).66 <lapsed_interval/>::The number of days since user's client contacted server (defined only for lapsed users, see below).67 <user_id/>:: The user ID (use this to form URLs)62 `<name/>`:: User name 63 `<create_time/>`:: When account was created (D M Y) 64 `<total_credit/>`:: User's total credit 65 `<opt_out_url/>`:: URL for opting out (this URL includes a salted version of the participant's account key, and so is different for every participant). 66 `<lapsed_interval/>`:: The number of days since user's client contacted server (defined only for lapsed users, see below). 67 `<user_id/>`:: The user ID (use this to form URLs) 68 68 69 69 === Avoiding spam filtering === … … 72 72 73 73 * Your HTML and text versions have the same text. 74 * Your HTML version either contains no images, or has at least 400 words. 74 * Your HTML version either contains no images, or has at least 400 words. 75 75 76 76 == Newsletters == 77 77 78 The script html/ops/mass_email_script.phpis for sending email newsletters.78 The script [source:trunk/boinc/html/ops/mass_email_script.php html/ops/mass_email_script.php] is for sending email newsletters. 79 79 Run it from the command line. 80 80 The optional arguments are: … … 91 91 * ''Failed'': zero total credit. These people failed to download and install the client software, or failed to get it working (e.g. because of proxy problems) or uninstalled it before finishing any work. Email to them should include a link to the BOINC help page (http://boinc.berkeley.edu/help.php) or other help resources. 92 92 * ''Lapsed'': nonzero credit, but their computers have not contacted your server in > 60 days. 93 * ''Current'': These are your active participants. 93 * ''Current'': These are your active participants. 94 94 95 95 To use the script, create the following files in html/ops/mass_email: 96 96 97 failed_html::HTML message sent to failed users. Example:97 `failed_html`:: HTML message sent to failed users. Example: 98 98 {{{ 99 99 <html> 100 <body bgcolor= ffffcc>100 <body bgcolor="ffffcc"> 101 101 Dear <name/>: 102 102 <p> … … 104 104 in the field of Submandibular Morphology. 105 105 In recent months we have discovered over 17 new varieties of Frombats. 106 </p> 106 107 <p> 107 108 Our records show that you created a Test Project account 108 109 on <create_time/> but that your computer hasn't completed any work. 109 110 If you had problems installing or using the software, 110 you can get help from <a href= http://boinc.berkeley.edu/help.php>online volunteers</a>.111 you can get help from <a href="http://boinc.berkeley.edu/help.php">online volunteers</a>. 111 112 Please try again! 113 </p> 112 114 <p> 113 < font size=-2>115 <small> 114 116 To not receive future emails from Test Project, 115 <a href= <opt_out_url/>>click here</a>.116 </ font>117 </ td></tr></table>117 <a href="<opt_out_url/>">click here</a>. 118 </small> 119 </p> 118 120 </body> 119 121 </html> 120 122 }}} 121 failed_text::Text message sent to failed users. Example:123 `failed_text`:: Text message sent to failed users. Example: 122 124 {{{ 123 125 Dear <name/>: … … 137 139 <opt_out_url/> 138 140 }}} 139 email_failed_subject:: Subject line sent to failed users. Example: 'Test Project News'.140 lapsed_html:: HTML message sent to lapsed users141 lapsed_text:: Text message sent to lapsed users142 lapsed_subject:: Subject line sent to lapsed users143 current_html:: HTML message sent to current users144 current_text:: Text message sent to current users145 current_subject:: Subject line sent to current users141 `email_failed_subject`:: Subject line sent to failed users. Example: 'Test Project News'. 142 `lapsed_html`:: HTML message sent to lapsed users 143 `lapsed_text`:: Text message sent to lapsed users 144 `lapsed_subject`:: Subject line sent to lapsed users 145 `current_html`:: HTML message sent to current users 146 `current_text`:: Text message sent to current users 147 `current_subject`:: Subject line sent to current users 146 148 147 149 === Testing === … … 179 181 === Checkpoint/restart === 180 182 181 mass_email_script.php manages checkpoint/restart when dealing with large numbers of participants. Mails are sent in order of increasing user ID. The file email_loghas a list of IDs that have been processed. On startup, the script reads this file, finds the last entry, and starts from there.183 `mass_email_script.php` manages checkpoint/restart when dealing with large numbers of participants. Mails are sent in order of increasing user ID. The file `email_log` has a list of IDs that have been processed. On startup, the script reads this file, finds the last entry, and starts from there. 182 184 183 185 If you are starting a mass email from the beginning, empty the file mass_email/log; i.e. … … 188 190 == Reminder emails == 189 191 190 The script html/ops/remind.phpis for sending reminder emails.192 The script `html/ops/remind.php` is for sending reminder emails. 191 193 Run it on the command line. Options are: 192 194 193 --lapsed:: send emails to lapsed users194 --failed:: send emails to failed users195 --userid N:: send both lapsed and failed emails to the user with the given ID196 --send:: actually send the email (this is an option to reduce the chance of accidents).197 --show_email:: show what would be sent rather than sending it198 --explain:: print a line describing each email195 `--lapsed`:: send emails to lapsed users 196 `--failed`:: send emails to failed users 197 `--userid N`:: send both lapsed and failed emails to the user with the given ID 198 `--send`:: actually send the email (this is an option to reduce the chance of accidents). 199 `--show_email`:: show what would be sent rather than sending it 200 `--explain`:: print a line describing each email 199 201 200 202 The script categorizes users as follows. … … 205 207 The numbers 14, 30, and 60 are all parameters in the script; edit it to change them. 206 208 207 To use the script, create the following files in html/ops/reminder_email/:208 209 failed_html:: HTML message sent to failed users210 failed_text:: Text message sent to failed users211 failed_subject:: Subject line sent to failed users212 lapsed_html:: HTML message sent to lapsed users213 lapsed_text:: Text message sent to lapsed users214 lapsed_subject:: Subject line sent to lapsed users215 216 remind.php can be run as often as you like. We recommend running it every 24 hours, specifying it as a task in config.xml. When it sends email to a user, it stores the time in their database record, and won't send them another email for at least 30 days. For this reason, it has no checkpoint/restart mechanism.209 To use the script, create the following files in `html/ops/reminder_email/`: 210 211 `failed_html`:: HTML message sent to failed users 212 `failed_text`:: Text message sent to failed users 213 `failed_subject`:: Subject line sent to failed users 214 `lapsed_html`:: HTML message sent to lapsed users 215 `lapsed_text`:: Text message sent to lapsed users 216 `lapsed_subject`:: Subject line sent to lapsed users 217 218 `remind.php` can be run as often as you like. We recommend running it every 24 hours, specifying it as a task in [ProjectTasks config.xml]. When it sends email to a user, it stores the time in their database record, and won't send them another email for at least 30 days. For this reason, it has no checkpoint/restart mechanism. 217 219 218 220 The procedure for testing your reminder email is similar to that for email newsletters (see above). … … 220 222 == Friend-to-friend emails == 221 223 222 The web page ffemail_form.php lets users send emails to their friends. To use this feature, you must create the following files in html/ops/ffmail/:223 224 subject:: The subject line used for friend-to-friend emails225 html:: HTML template for friend-to-friend emails226 text:: Text template for friend-to-friend emails224 The web page `ffemail_form.php` lets users send emails to their friends. To use this feature, you must create the following files in `html/ops/ffmail/`: 225 226 `subject`:: The subject line used for friend-to-friend emails 227 `html`:: HTML template for friend-to-friend emails 228 `text`:: Text template for friend-to-friend emails 227 229 228 230 Samples are supplied for each of these. The following macros are substituted in the message bodies: 229 231 230 <fromname/>::The name of the sender231 <toname/>:: The name of the recipient232 <comment/>::The comment supplied by the sender232 `<fromname/>`:: The name of the sender 233 `<toname/>`:: The name of the recipient 234 `<comment/>`:: The comment supplied by the sender