API CHANGE Removed Member_SignupEmail, use your own custom sign up Email class instead.

This commit is contained in:
Sean Harvey 2012-05-04 22:27:41 +12:00
parent a79032c57f
commit fd0ec1c47f

View File

@ -479,9 +479,6 @@ class Member extends DataObject implements TemplateGlobalProvider {
*/
function sendInfo($type = 'signup', $data = null) {
switch($type) {
case "signup":
$e = Member_SignupEmail::create();
break;
case "changePassword":
$e = Member_ChangePasswordEmail::create();
break;
@ -1484,53 +1481,6 @@ class Member_ProfileForm extends Form {
}
}
/**
* Class used as template to send an email to new members
* @package framework
* @subpackage security
*/
class Member_SignupEmail extends Email {
protected $from = ''; // setting a blank from address uses the site's default administrator email
protected $subject = '';
protected $body = '';
function __construct() {
parent::__construct();
$this->subject = _t('Member.EMAILSIGNUPSUBJECT', "Thanks for signing up");
$this->body = '
<h1>' . _t('Member.GREETING','Welcome') . ', $FirstName.</h1>
<p>' . _t('Member.EMAILSIGNUPINTRO1','Thanks for signing up to become a new member, your details are listed below for future reference.') . '</p>
<p>' . _t('Member.EMAILSIGNUPINTRO2','You can login to the website using the credentials listed below') . ':
<ul>
<li><strong>' . _t('Member.EMAIL') . '</strong>$Email</li>
<li><strong>' . _t('Member.PASSWORD') . ':</strong>$Password</li>
</ul>
</p>
<h3>' . _t('Member.CONTACTINFO','Contact Information') . '</h3>
<ul>
<li><strong>' . _t('Member.NAME','Name') . ':</strong> $FirstName $Surname</li>
<% if Phone %>
<li><strong>' . _t('Member.PHONE','Phone') . ':</strong> $Phone</li>
<% end_if %>
<% if Mobile %>
<li><strong>' . _t('Member.MOBILE','Mobile') . ':</strong> $Mobile</li>
<% end_if %>
<li><strong>' . _t('Member.ADDRESS','Address') . ':</strong>
<br/>
$Number $Street $StreetType<br/>
$Suburb<br/>
$City $Postcode
</li>
</ul>
';
}
}
/**