SMTP - Not working

si-mon
2009-06-30T04:56:58+00:00


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...
------------------------------------------

Re: SMTP - Not working by brian on 2009-06-30T09:43:54+00:00

VHJ5IHJlbW92aW5nIHRoZSB1c2VybmFtZSAmIHBhc3N3b3JkIGZyb20gdGhlIG9wdGlvbnMuCgpP
biBUdWUsIEp1biAzMCwgMjAwOSBhdCAxMjo1NiBBTSwgc2ktbW9uPHNpanVtb25hcEBnbWFpbC5j
b20+IHdyb3RlOgo+Cj4gSGkgYWxsLi4uCj4KPiBJbiBteSBhcHBsaWNhdGlvbiwgSSBuZWVkIHRv
IHNlbmQgbWFpbHMgdXNpbmcgc210cCBzZXJ2ZXIuIEkgaGF2ZQo+IGdpdmVuIGFsbCBwYXJhbWV0
ZXJzIGJ1dCBpdCBpcyBub3Qgd29ya2luZy4gVGhlbiBJIGhhdmUgdHJhY2tlZCB0aGUKPiBlcnJv
cnMgaW4gdGhlIGVtYWlsIGNvbXBvbmVudC4gVGhlbiBJIGdvdCB0aGUgZm9sbG93aW5nIHN0YXR1
cwo+IG1lc3NhZ2VzOgo+Cj4gNTAzIEFVVEggY29tbWFuZCB1c2VkIHdoZW4gbm90IGFkdmVydGlz
ZWQKPiA1NTAgYm9zYXV0aHNtdHAxNjog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BjYWtlLXBocEBnb29nbGVncm91cHMuY29tClRvIHVuc3Vi
c2NyaWJlIGZyb20gdGhpcyBncm91cCwgc2VuZCBlbWFpbCB0byBjYWtlLXBocCt1bnN1YnNjcmli
ZUBnb29nbGVncm91cHMuY29tCkZvciBtb3JlIG9wdGlvbnMsIHZpc2l0IHRoaXMgZ3JvdXAgYXQg
aHR0cDovL2dyb3Vwcy5nb29nbGUuY29tL2dyb3VwL2Nha2UtcGhwP2hsPWVuCi1+LS0tLS0tLS0t
LX4tLS0tfi0tLS1+LS0tLX4tLS0tLS1+LS0tLX4tLS0tLS1+LS1+LS0tCgo=

Re: SMTP - Not working by si-mon on 2009-06-30T11:07:55+00:00

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 <bally.z...@gmail.com> wrote:
> Try removing the username & password from the options.
>
> On Tue, Jun 30, 2009 at 12:56 AM, si-mon<sijumo...@gmail.com> 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...
------------------------------------------

Re: SMTP - Not working by aarkerio on 2009-06-30T17:17:25+00:00

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 <sijumo...@gmail.com> 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...
------------------------------------------

Re: SMTP - Not working by si-mon on 2009-07-01T05:37:16+00:00

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 <mmont...@gmail.com> 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 <sijumo...@gmail.com> 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...
------------------------------------------
Loading


$ This page is proudly powered by www.pubbs.net, you can see more at cakephp archive | Partners: Global Manufacturers