Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php # /system/applications/models/mailer.php
- /*
- * @descr Send a validation email to a specified subscriber
- * @param Array Subscriber info
- * @retrn void
- */
- function send_validation ($subscriber)
- {
- // prepare the message
- $body = "Hi $subscriber->name, <br/><br/>"
- . 'Please click on the link to subscribe to our newsletter. '
- . 'If you cannot click on the link, copy the url and paste it on to the navigation bar of your browser: '
- . site_url('newsletter/validate/q1a2z3w4s5x6'.$subscriber->id);
- // send an email message
- $this->email->from('noreply@joinparamount.com', 'No-Reply');
- $this->email->to($subscriber->email);
- $this->email->subject('Validate your e-mail address');
- $this->email->message($body);
- $this->email->send();
- // prepare the view
- $data['title'] = 'An e-mail validation has been sent - JoinParamount.com';
- $data['message'] = 'An e-mail has been sent to the address you provided. Please click on the link provided inside to be verified.';
- $this->load->view('notification', $data);
- }
- ?>
Add Comment
Please, Sign In to add comment