Greetings! I'm trying to add simple mail functionality to a little web app and I'm stuck. I'm able to send email from the terminal to myself on local machine just fine, but when I try to run the app I get "Connection refused: 61"
At first I thought my setting are messed up, I kept playing with them for a while and for now decided to give up at this point:
$this->Email->smtpOptions = array(
'port'=>'25',
'timeout'=>'30',
'host' => 'user-power-mac-g5.local',
'username'=>'',
'password'=>'',
'client' => '[email protected]'
)
$this->Email->delivery = 'smtp';
$User = "some user";
$this->Email->to = '[email protected]';
$this->Email->subject = 'Welcome';
$this->Email->replyTo = '[email protected]';
$this->Email->from = 'Web App <[email protected]>';
$this->Email->sendAs = 'text';
$this->set('User', $User);
$this->Email->send();
$this->set('smtp-errors', $this->Email->smtpError);
I'm trying to run this on an XAMPP with cakePHP 1.2.5 and only the core mail comp. Thanks in advance!