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"
İlk başta benim ayarı berbat olan düşündüm, ben bir süre için onlarla oynamaya devam etti ve şimdi bu noktada vazgeçmeye karar verdi:
$this->Email->smtpOptions = array(
'port'=>'25',
'timeout'=>'30',
'host' => 'user-power-mac-g5.local',
'username'=>'',
'password'=>'',
'client' => 'user@users-power-mac-g5.local'
)
$this->Email->delivery = 'smtp';
$User = "some user";
$this->Email->to = 'user@users-power-mac-g5.local';
$this->Email->subject = 'Welcome';
$this->Email->replyTo = 'user@users-power-mac-g5.local';
$this->Email->from = 'Web App <user@users-power-mac-g5.local>';
$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!