- Previous thread: find with unrelated model
- Next thread: Web Installer
- Threads sorted by date: cakephp 200906
Hi all...
In my application, I need to send mails using smtp server. I have
given all parameters but it is not working. Then I have tracked the
errors in the email component. Then I got the following status
messages:
503 AUTH command used when not advertised
550 bosauthsmtp16: No unauthenticated relaying permitted
My mailing function is as follows:
function _sendMail()
{
$this->Email->to = 'sijumonap@gmail.com';
$this->Email->bcc = array();
$this->Email->subject = 'Test Mail';
$this->Email->replyTo = 'smtp username';
$this->Email->from = 'smtp username';
$this->Email->template = 'test';
$this->Email->sendAs = 'html';
$this->Email->smtpOptions = array( 'port'=>'25',
'timeout'=>'30',
'auth'=>true,
'host' => 'smtp host',
'username'=>'smtp username',
'password'=>'smtp password'
);
$this->Email->delivery = 'smtp';
$this->Email->send();
}
Please help me to solve this issue...
Thank you all...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Hi Brian,
Thanks for your suggestion.
I have removed the username and password from the options, but the
second error message still exists:
550 bosauthsmtp16: No unauthenticated relaying permitted
On Jun 30, 2:42 pm, brian wrote:
> Try removing the username & password from the options.
>
> On Tue, Jun 30, 2009 at 12:56 AM, si-mon wrote:
>
> > Hi all...
>
> > In my application, I need to send mails using smtp server. I have
> > given all parameters but it is not working. Then I have tracked the
> > errors in the email component. Then I got the following status
> > messages:
>
> > 503 AUTH command used when not advertised
> > 550 bosauthsmtp16: No unauthenticated relaying permitted
>
> > My mailing function is as follows:
>
> > function _sendMail()
> > {
> > $this->Email->to = 'sijumo...@gmail.com';
> > $this->Email->bcc = array();
> > $this->Email->subject = 'Test Mail';
> > $this->Email->replyTo = 'smtp username';
> > $this->Email->from = 'smtp username';
> > $this->Email->template = 'test';
> > $this->Email->sendAs = 'html';
>
> > $this->Email->smtpOptions = array( 'port'=>'25',
> > 'timeout'=>'30',
> > 'auth'=>true,
> > 'host' => 'smtp host',
> > 'username'=>'smtp username',
> > 'password'=>'smtp password'
> > );
> > $this->Email->delivery = 'smtp';
> > $this->Email->send();
> > }
>
> > Please help me to solve this issue...
>
> > Thank you all...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
This looks as a MTA issue (exim4, Postfix, Sendmail, etc). Look in the
MTA log and try send one email using console command and mail PHP
function (no CakePHP).
On Jun 29, 11:56=A0pm, si-mon wrote:
> Hi all...
>
> In my application, I need to send mails using smtp server. I have
> given all parameters but it is not working. Then I have tracked the
> errors in the email component. Then I got the following status
> messages:
>
> 503 AUTH command used when not advertised
> 550 bosauthsmtp16: No unauthenticated relaying permitted
>
> My mailing function is as follows:
>
> function _sendMail()
> {
> =A0 =A0 =A0 =A0 $this->Email->to =3D 'sijumo...@gmail.com';
> =A0 =A0 =A0 =A0 $this->Email->bcc =3D array();
> =A0 =A0 =A0 =A0 $this->Email->subject =3D 'Test Mail';
> =A0 =A0 =A0 =A0 $this->Email->replyTo =3D 'smtp username';
> =A0 =A0 =A0 =A0 $this->Email->from =3D 'smtp username';
> =A0 =A0 =A0 =A0 $this->Email->template =3D 'test';
> =A0 =A0 =A0 =A0 $this->Email->sendAs =3D 'html';
>
> =A0 =A0 =A0 =A0 $this->Email->smtpOptions =3D array( =A0'port'=3D>'25',
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'timeout'=3D>'30',
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'auth'=3D>true,
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'host' =3D> 'smtp h=
ost',
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'username'=3D>'smtp=
username',
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'password'=3D>'smtp=
password'
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0);
> =A0 =A0 =A0 =A0$this->Email->delivery =3D 'smtp';
> =A0 =A0 =A0 =A0$this->Email->send();
>
> }
>
> Please help me to solve this issue...
>
> Thank you all...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "=
CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegr=
oups.com
For more options, visit this group at http://groups.google.com/group/cake-p=
hp?hl=3Den
-~----------~----~----~----~------~----~------~--~---
Yes... I found out the error..
I have used another smtp mailing class, and in it, there is an option
to set the authentication (TRUE or FALSE). If TRUE it will work fine
and if FALSE it will show the error message "No unauthenticated
relying permitted'.
But in cake, I have used 'auth'=>true in the smtpOptions and it's not
working.
So, the final solution in cake php will be to find out the way to set
TRUE to smtp authentication.
Anybody to help me please....?
On Jun 30, 10:16 pm, aarkerio wrote:
> This looks as a MTA issue (exim4, Postfix, Sendmail, etc). Look in the
> MTA log and try send one email using console command and mail PHP
> function (no CakePHP).
>
> On Jun 29, 11:56 pm, si-mon wrote:
>
> > Hi all...
>
> > In my application, I need to send mails using smtp server. I have
> > given all parameters but it is not working. Then I have tracked the
> > errors in the email component. Then I got the following status
> > messages:
>
> > 503 AUTH command used when not advertised
> > 550 bosauthsmtp16: No unauthenticated relaying permitted
>
> > My mailing function is as follows:
>
> > function _sendMail()
> > {
> > $this->Email->to = 'sijumo...@gmail.com';
> > $this->Email->bcc = array();
> > $this->Email->subject = 'Test Mail';
> > $this->Email->replyTo = 'smtp username';
> > $this->Email->from = 'smtp username';
> > $this->Email->template = 'test';
> > $this->Email->sendAs = 'html';
>
> > $this->Email->smtpOptions = array( 'port'=>'25',
> > 'timeout'=>'30',
> > 'auth'=>true,
> > 'host' => 'smtp host',
> > 'username'=>'smtp username',
> > 'password'=>'smtp password'
> > );
> > $this->Email->delivery = 'smtp';
> > $this->Email->send();
>
> > }
>
> > Please help me to solve this issue...
>
> > Thank you all...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
Related Threads
- [ANNOUNCE] - Apache Camel Group on Linkedln - apachecamel
- [jira] Created: (AMQNET-209) Add extension methods to improve the readability of the SessionUtils and XmlUtils functions. - activemq
- [patch 0/5] Journal guided resync and support - kernel
- [PATCH -tip 1/2] x86: PAT cleanup req_type special case for pat reserve_memtype - kernel
- [flexcoders] Help setting the selectedChild of a viewstack - flex
- linux-next: mfd tree build warning - kernel
- [Hendrix] great chat support w/tanner A++ - firefox
- [Hendrix] Scroll Bar not working properly - firefox
- FormWidget Ajax - ofbiz
- Re: WTF? - gcc
- FW: Por favor ajudem a encontrar minha filhinha desaparecida. - openbsd
- how to debug extended module? - python