Re: [Codestriker-user] Help -- mail configuration
Brought to you by:
sits
From: David S. <si...@us...> - 2006-03-23 23:49:25
|
On line 439 of Email.pm, try modifying it to be: my $smtp =3D Net::SMTP->new($Codestriker::mailhost); to my $smtp =3D Net::SMTP->new($Codestriker::mailhost, Debug =3D> 1); Also - check the stderr from apache's error log file - there might be some useful information there too. Cheers, David Hertz Wang =CD=F5=BB=B3=D6=BE wrote: > I got the same message after the change >=20 > "Couldn't set sender to wa...@ne..., 5.7.0 No AUTH command has b= een given." >=20 > I check the email.pm file again, i really add $smtp->auth('wanghz', 'he= rtzpswd') before=20 > and i add "the system" before "Couldn't", and then add a comment in cod= estriker, a > "the system Couldn't set sender to wa...@ne..., 5.7.0 No AUTH co= mmand has been given." > message was given, so the changes take effect. i am sure the username a= nd password is correct. >=20 >=20 > ----- Original Message -----=20 > From: "Hertz Wang =CD=F5=BB=B3=D6=BE" <wa...@ne...> > To: "David Sitsky" <si...@us...> > Cc: <cod...@li...> > Sent: Thursday, March 23, 2006 7:32 PM > Subject: Re: [Codestriker-user] Help -- mail configuration >=20 >=20 >> Hi David, >> >> Thank you for your reply, I replace=20 >> $smtp->mail($from); >> with >> $smtp->auth('wanghz', 'hertzpswd'); >> $smtp->mail($from); >> >> it doesn't work, 'hertzpswd' is my real password(of course, i changed = it now :) ) >> >> and then i relpace $from with my email >> $smtp->mail('wa...@ne...'); >> >> it doesn't help either. >> >> >> >> Hertz Wang=20 >> ----- Original Message -----=20 >> From: "David Sitsky" <si...@us...> >> To: "Hertz Wang =CD=F5=BB=B3=D6=BE" <wa...@ne...> >> Cc: <cod...@li...> >> Sent: Thursday, March 23, 2006 6:35 AM >> Subject: Re: [Codestriker-user] Help -- mail configuration >> >> >>> Hertz Wang =CD=F5=BB=B3=D6=BE wrote: >>>> Hi All, >>>> =20 >>>> I met another problem when try to use codestriker 1.9.2 Alpha2. >>>> =20 >>>> When I create a new topic or add some comments, the mail notificatio= n=20 >>>> doesn't work. this is the message I got, >>>> =20 >>>> "5.7.0 No AUTH command has been given." >>>> =20 >>>> My configration in codestriker.conf: >>>> $mailhost =3D 'pnmsmail.neusoft.com'; >>>> =20 >>>> my mail server need authorization, how can I solve this problem? >>> Open up the file: lib/Codestriker/TopicListeners/Email.pm and go to l= ine >>> 442, where you should see: >>> >>> $smtp->mail($from); >>> >>> Modify this code to read (substitute the strings with your actual >>> username/password values). >>> >>> $smtp->auth('myusername', 'mypassword'); >>> $smtp->mail($from); >>> >>> Let me know if that work or not. If it does, I'll modify >>> codestriker.conf so that this extra mail config can be specified ther= e. >>> >>> Cheers, >>> David >>> >> > |