OK, I changed my code to the following, I now get a different error:

$email = new CakeEmail();
$email->smtpOptions = array(
        'port'=>'25',
        'timeout'=>'30',
        'host' => 'smtp.talktalk.net',
        'username'=>'xxxxxx',
        'password'=>'xxxxxx'//,
);
$email->to($email_to);
$email->subject('Welcome to xxxxxx');
$email->replyTo('[email protected]');
$email->from('[email protected]');
$msg = 'Welcome to xxxxxx.  You have created an account with the user
name: '.$username.';
return $email->send($msg);

The error:
Could not send email.
Error: An Internal Error Has Occurred.

Stack Trace
#0 C:\xampp\htdocs\cake\lib\Cake\Network\Email\CakeEmail.php(967):
MailTransport->send(Object(CakeEmail))
...

Thanks.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to