I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-06-04 21:02:36-07 by fabianobr
Problems using SMTP by gmail.com
Hi,
I installed the Svnnotify module in my server (Ubuntu 8.04). The installation occours normally.
In the execution I use the --smtp parameter, and the email messages don't go...
The "svnnotify" command with verbose parameter sends:
"SVN::Notify: Sending messageSVN::Notify: Message sent"
But the messages don't go...
How do I set the SMTP port 587, and the authentication TLS of gmail?
Thank you...
Direct Responses: 9056 | Write a response
Posted on 2008-10-15 06:10:09-07 by dawood in response to 8019
Re: Problems using SMTP by gmail.com
Hi, I was facing same problem. There is no way to use TLS as smtp-authtype and specify smtp-port. I manged to get working by patching SVN::Notify. Please let me know if you are still looking for solution. Regards Dawood
Direct Responses: 9060 | Write a response
Posted on 2008-10-15 16:37:28-07 by theory in response to 9056
Re: Problems using SMTP by gmail.com

What does the patch look like?

Thanks,

David

Direct Responses: 9064 | Write a response
Posted on 2008-10-16 09:46:58-07 by dawood in response to 9060
Re: Problems using SMTP by gmail.com
just used Net::SMTP::TLS from SVN::Notify::SMTP.
Direct Responses: 9067 | 10529 | Write a response
Posted on 2008-10-16 15:26:26-07 by theory in response to 9064
Re: Problems using SMTP by gmail.com

And did that solve your problem?

--David

Direct Responses: 9071 | Write a response
Posted on 2008-10-17 06:38:52-07 by dawood in response to 9067
Re: Problems using SMTP by gmail.com
yeah, now svnnotify is able to send notifications via smtp.gmail.com
Direct Responses: Write a response
Posted on 2009-04-23 21:02:41-07 by tonyanony in response to 9064
Re: Problems using SMTP by gmail.com
Can you please give specific instructions on how you patched SVN::Notify to enable sending emails through smtp.gmail.com?
Thanks in advance
This is the verbose output Im getting when calling SVN::Notify from perl585 on linux.
Says message sent, but no email arrives or is in the senders "sent items" folder.

: Checking required parameters to new(): Instantiating SVN::Notify::HTML::ColorDiff objectSVN::Notify::HTML::ColorDiff: Preparing recipients listSVN::Notify::HTML::ColorDiff: Preparing contentsSVN::Notify::HTML::ColorDiff: Piping execution of "/usr/local/bin/svnlook" "info" "/usr/local/subversion/smiroot" "-r" "1"SVN::Notify::HTML::ColorDiff: Preparing file listsSVN::Notify::HTML::ColorDiff: Piping execution of "/usr/local/bin/svnlook" "changed" "/usr/local/subversion/smiroot" "-r" "1"SVN::Notify::HTML::ColorDiff: Preparing subjectSVN::Notify::HTML::ColorDiff: Subject is "SVN COMMIT: [1] INFRA-1"SVN::Notify::HTML::ColorDiff: Sending messageSVN::Notify::HTML::ColorDiff: Piping execution of "/usr/local/bin/svnlook" "diff" "/usr/local/subversion/smiroot" "-r" "1"Child process exited: 0 SVN::Notify::HTML::ColorDiff: Message sent[
Direct Responses: 10541 | Write a response
Posted on 2009-04-24 17:28:03-07 by tonyanony in response to 10529
Re: Problems using SMTP by gmail.com
I was able to patch Notify.pm which made it work just fine with smtp.gmail.com at port 465.
old code:
# my $smtp = $smtp_class->new( # $notifier->{smtp}, # ( $notifier->{verbose} > 1 ? ( Debug => 1 ) : ()) # ) or die "Unable to create $smtp_class object: $!"; # # $smtp->auth( @{ $notifier }{qw(smtp_authtype smtp_user smtp_pass)} ) # if $notifier->{smtp_user}; #
new code:
my $smtp = Net::SMTP::SSL->new('smtp.gmail.com', Port => 465, Debug => 1) ; $smtp->auth( @{ $notifier }{qw(smtp_user smtp_pass)} ) if $notifier->{smtp_user};
Direct Responses: 13601 | Write a response
Posted on 2012-01-17 08:43:20.793835-08 by lviggiani in response to 10541
Re: Problems using SMTP by gmail.com
Hi, I don't know anything about perl and I'm trying to patch /usr/share/perl5/SVN/Notify.pm as per your instructions. But when I run svnnotify I get the following error: Can't locate object method "new" via package "Net::SMTP::SSL" (perhaps you forgot to load "Net::SMTP::SSL"?) at /usr/share/perl5/SVN/Notify.pm line 2388. I guess I have to add something like use Net::SMTP::SSL; or load Net::SMTP::SSL; or whatever but I don't know where... Can you help me please?? Thanks, Luca.
Direct Responses: 13602 | Write a response
Posted on 2012-01-17 11:56:24.11996-08 by theory in response to 13601
Re: Problems using SMTP by gmail.com
Yes, you want 'use Net::SMTP::SSL;'.
Direct Responses: Write a response