07.04
php
saved
xbase
Note
swift send email with SwiftEmail
swift send email with SwiftEmail
- function _newuser_email($data)
- {
- $this->Email->connection = 'smtp'; // default and thus you don't have to specify it
- $this->Email->smtp_host = 'smtp.1and1.com';
- $this->Email->smtp_type = 'tls';
- $this->Email->username = 'jonathan@passionmansion.com';
- $this->Email->password = 'm3m0tyh';
- $this->Email->to = $data['User']['email'];
- $this->Email->subject = 'Account Validation';
- $this->Email->replyTo = 'noreply@passionmansion.com';
- $this->Email->from = 'Passion Mansion <noreply@passionmansion.com>';
- $this->Email->template = 'newuser';
- $this->Email->sendAs = 'both';
- // Set user information
- $this->set('user', $data['User']);
- // Send Email
- if ( $this->Email->send() ) {
- } else {
- }
- }
Parsed in 0.061 seconds, using GeSHi 1.0.7.14