CHANGING THE TEXT OF THE SIGNUP EMAIL - Jun 1st, 2011
|
Another thing you’ll probably want to do is to change changing the text of the sign up e-mail that’s sent to prospective members.
At the bottom of the websiteMembership.php plugin file, you’ll find the following block of code.
// send email $to = $_REQUEST['email']; $subject = "{$_SERVER['HTTP_HOST']} Account Details"; $message = "Hi {$_REQUEST['email']},\n" . "\n" . "Thanks for signing up to {$_SERVER['HTTP_HOST']}.\n" . "\n" . "Your username is: {$username}\n" . "Your password is: {$_REQUEST['password']}\n" . "\n" . "Please click here to login:\n" . "http://{$_SERVER['HTTP_HOST']}{$GLOBALS['WEBSITE_LOGIN_LOGIN_FORM_URL']}\n" . "\n" . "Thanks!\n";
$mailResult = @mail($to, $subject, $message, "From: {$SETTINGS['adminEmail']}"); if (!$mailResult) { die("Mail Error: $php_errormsg"); }
}
?>
While this is OK for a one step sign up approach, you’ll probably not want to include the user name, password, or login address in this e-mail.
In the version below, I’ve changed that to a more logical set of instructions. Including a payment link if required.
Note that /n is the code for a new line, there is only one ; and it marks the end of the message $section, the . is the operator that says “add” this line to the string,
// send email $to = $_REQUEST['email']; $subject = "{$_SERVER['HTTP_HOST']} Membership Application"; $message = "Hi {$_REQUEST['email']},\n" . "\n" . "Thanks for applying to be a member of {$_SERVER['HTTP_HOST']}.\n" . "\n" . "As soon as your membership has been approved you'll receive a confirmation email with a link to our login page.\n" . "Once you log in you'll be able to enter your member profile information so that others can contact you.\n" . "\n" . "Remember, you can not be approved if you haven't paid your first year's dues.\n" . "\n" . "You can pay your dues on-line using PayPal here:\n" . "http://www.your_website.org/paypal.php\n" . "\n" . "Thanks and Welcome!\n" . "\n" . "The Membership Committee\n";
$mailResult = @mail($to, $subject, $message, "From: {$SETTINGS['adminEmail']}"); if (!$mailResult) { die("Mail Error: $php_errormsg"); }
}
|
The materials on this web site have been created for use with CMS Builder content management software. CMS Builder software is published and licensed for use by InteractiveTools.com. Please contact
Interactive Tools for information on the downloading of the software or the purchasing of licenses.