On 31/10/2007, Simon Sasburg <simon.sasburg@gmail.com> wrote:ok I'm going to downgrade what I said to 'it works fine with gmail' - it just doesnt do starttls, your code does. git-send-email --from 'brian.ewins@gmail.com' --to 'brian.ewins@gmail.com' --smtp-server smtp.gmail.com --smtp-user 'brian.ewins@gmail.com' --smtp-pass 'secret' --smtp-ssl 0001-the-patch-goes-here That's using SSL on port 465, not TLS. Did this not work for you? I thought Net::SMTP passed its constructor options to IO::Socket, but no. An alternate way of getting starttls to work, without using Net::SMTP::TLS, is this: #connect with Net::SMTP - not ::SSL or the connect will fail $smtp = Net::SMTP->new('smtp.gmail.com', Port => 587, Debug => 1) or die "Could not connect to server\n"; #issue the starttls command, assuming user asked for this $smtp->command('STARTTLS'); $smtp->response(); #if server says 220, then go ahead and convert the socket. Bless as Net::SMTP::SSL # - necessary to inherit both IO::Socket::SSL and Net::SMTP #start_SSL has been renamed, twice. Nice stable api :) #extra args for checking server cert etc can be passed to start_SSL. $smtp->code() == 220 and $smtp = Net::SMTP::SSL->start_SSL($smtp) or die "STARTTLS failed! ".$smtp->message; # say hello again to get server features (including auth) $smtp->hello(); # now continue as before, with $smtp->auth()... - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| Laurent Riffard | Re: 2.6.25-rc2-mm1: WARNING at arch/x86/mm/ioremap.c:129 |
| Alan Cox | Re: x86: 4kstacks default |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 34/37] dccp: Auto-load (when supported) CCID plugins for negotiation |
| Maciej W. Rozycki | Re: [PATCH] PHYLIB: IRQ event workqueue handling fixes |
| John P Poet | Realtek 8111C transmit timed out |
git: | |
