bzr-email fails to send via a gmail tls smtp connection (needs ehlo cmd)

Bug #250514 reported by scottwilson
4
Affects Status Importance Assigned to Milestone
bzr email commit hook
Fix Released
Medium
Jelmer Vernooij

Bug Description

Without the attached patch, sending mail via gmail's smtp servers fails with the error:

bzr: ERROR: SMTP AUTH extension not supported by server.

Tags: ehlo gmail smtp tls

Related branches

Revision history for this message
scottwilson (scott-idealist) wrote :
Revision history for this message
John A Meinel (jameinel) wrote :

Actually, this was already fixed in bzrlib (in a more complete way)

email was meant to use the one provided by bzrlib if it was available, which is what the attached patch does

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 250514] Re: bzr-email fails to send via a gmail tls smtp connection (needs ehlo cmd)

Scott, could you try John's patch and let me know if it fixes things for
you.

Cheers,
Rob

Revision history for this message
John A Meinel (jameinel) wrote :

I'm guessing he'll find it fail. At least here I get:

  File "C:\Users\jameinel\dev\bzr\plugins\email\emailer.py", line 228, in _send_using_smtplib
    smtp.send_text_and_attachment_email(from_addr, to_addrs,
AttributeError: 'SMTPConnection' object has no attribute 'send_text_and_attachment_email'

It seems we have some api skew between what is available from bzrlib and what is available only in the email plugin.

Revision history for this message
scottwilson (scott-idealist) wrote : Re: [Bug 250514] Re: bzr-email fails to send via a gmail tls smtp connection (needs ehlo cmd)

Hi,

John's patch worked perfectly for me on bzr 1.5.

-scott

On Tue, Jul 22, 2008 at 12:48 AM, Robert Collins
<email address hidden> wrote:
> Scott, could you try John's patch and let me know if it fixes things for
> you.
>
> Cheers,
> Rob
>
> --
> bzr-email fails to send via a gmail tls smtp connection (needs ehlo cmd)
> https://bugs.launchpad.net/bugs/250514
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in A bzr commit hook that sends emails: New
>
> Bug description:
> Without the attached patch, sending mail via gmail's smtp servers fails with the error:
>
> bzr: ERROR: SMTP AUTH extension not supported by server.
>

Revision history for this message
scottwilson (scott-idealist) wrote :

John's patch also worked fine on bzr 1.6b3 ....

On Tue, Jul 22, 2008 at 12:48 AM, Robert Collins
<email address hidden> wrote:
> Scott, could you try John's patch and let me know if it fixes things for
> you.
>
> Cheers,
> Rob
>
> --
> bzr-email fails to send via a gmail tls smtp connection (needs ehlo cmd)
> https://bugs.launchpad.net/bugs/250514
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in A bzr commit hook that sends emails: New
>
> Bug description:
> Without the attached patch, sending mail via gmail's smtp servers fails with the error:
>
> bzr: ERROR: SMTP AUTH extension not supported by server.
>

Revision history for this message
scottwilson (scott-idealist) wrote :

Scratch that ... forgot to install after I patched.

It doesn't work with the same error John pointed out. Sorry for the confusion.

-scott

Revision history for this message
anatoly techtonik (techtonik) wrote :

I am able to send emails with smtp.gmail.com without any additional patches with version 1.6

Jelmer Vernooij (jelmer)
Changed in bzr-email:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-email:
status: In Progress → Fix Committed
Jelmer Vernooij (jelmer)
Changed in bzr-email:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.