On line 439 of Email.pm, try modifying it to be: my $smtp = Net::SMTP->new($Codestriker::mailhost);
to my $smtp = Net::SMTP->new($Codestriker::mailhost, Debug => 1); Also - check the stderr from apache's error log file - there might be some useful information there too. Cheers, David Hertz Wang 王怀志 wrote: > I got the same message after the change > > "Couldn't set sender to [EMAIL PROTECTED], 5.7.0 No AUTH command has been > given." > > I check the email.pm file again, i really add $smtp->auth('wanghz', > 'hertzpswd') before > and i add "the system" before "Couldn't", and then add a comment in > codestriker, a > "the system Couldn't set sender to [EMAIL PROTECTED], 5.7.0 No AUTH command > has been given." > message was given, so the changes take effect. i am sure the username and > password is correct. > > > ----- Original Message ----- > From: "Hertz Wang 王怀志" <[EMAIL PROTECTED]> > To: "David Sitsky" <[EMAIL PROTECTED]> > Cc: <codestriker-user@lists.sourceforge.net> > Sent: Thursday, March 23, 2006 7:32 PM > Subject: Re: [Codestriker-user] Help -- mail configuration > > >> Hi David, >> >> Thank you for your reply, I replace >> $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('[EMAIL PROTECTED]'); >> >> it doesn't help either. >> >> >> >> Hertz Wang >> ----- Original Message ----- >> From: "David Sitsky" <[EMAIL PROTECTED]> >> To: "Hertz Wang 王怀志" <[EMAIL PROTECTED]> >> Cc: <codestriker-user@lists.sourceforge.net> >> Sent: Thursday, March 23, 2006 6:35 AM >> Subject: Re: [Codestriker-user] Help -- mail configuration >> >> >>> Hertz Wang 王怀志 wrote: >>>> Hi All, >>>> >>>> I met another problem when try to use codestriker 1.9.2 Alpha2. >>>> >>>> When I create a new topic or add some comments, the mail notification >>>> doesn't work. this is the message I got, >>>> >>>> "5.7.0 No AUTH command has been given." >>>> >>>> My configration in codestriker.conf: >>>> $mailhost = 'pnmsmail.neusoft.com'; >>>> >>>> my mail server need authorization, how can I solve this problem? >>> Open up the file: lib/Codestriker/TopicListeners/Email.pm and go to line >>> 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 there. >>> >>> Cheers, >>> David >>> >> > ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 _______________________________________________ Codestriker-user mailing list Codestriker-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/codestriker-user