Updated Version of web2py and sending emails stopped working

119 views
Skip to first unread message

James O' Driscoll

unread,
Mar 31, 2018, 4:38:29 AM3/31/18
to web2py-users
All,

Would really like an some help on this.

I had to update web2py today for a client that has been using a version of web2py since early 2015.

The update was due to the recaptcha v1 expiration and move to recaptcha v2.

After the update I am unable to send emails from functions, which was working pre-update.

The only error I could find was when I was sending errors while running feom web2py.exe where the following was printed to console  "mail.send failure please connect() first".

Any help would be great.

Regards,
James


James O' Driscoll

unread,
Apr 4, 2018, 8:08:22 PM4/4/18
to web2py-users
Any insights?? Surely this is not preferable when people who have clients and have to update web2py get no support.

AlighaThor

unread,
Apr 4, 2018, 9:05:27 PM4/4/18
to web2py-users
Hi. Could you post the entire ticket?

Dave S

unread,
Apr 4, 2018, 9:10:28 PM4/4/18
to web2py-users


On Wednesday, April 4, 2018 at 5:08:22 PM UTC-7, James O' Driscoll wrote:
Any insights??  Surely this is not preferable when people who have clients and have to update web2py get no support.

I updated from 2.14.6 to 2.15.4 with no issues to mail.  Not a very big jump, perhaps, but it went okay.

Perhaps you can do a -M yourapp -S and try the commands by hand, and see if you get additional error messages.

Is this code in a controller or a module?  Is it run during a normal request, or from the scheduler?

/dps


Dave S

unread,
Apr 4, 2018, 9:13:06 PM4/4/18
to web2py-users

Also, are you connecting to a third-party mail service such as Google or SparkPost?

/dps
 

Dave S

unread,
Apr 4, 2018, 9:17:20 PM4/4/18
to web2py-users

[I don't; I have an AWS Linux machine with a local sendmail, which may color my answers]

And see Massimo's comments from last June:
<URL:https://groups.google.com/d/msg/web2py/9kQU1LVbHMI/kXwwX-aMCQAJ>

/dps
 

James O' Driscoll

unread,
Apr 4, 2018, 10:26:50 PM4/4/18
to web...@googlegroups.com
Using office365 as the service.

It was setup to use the scheduler but I placed it directly in the controller to see could I get it to work from there but did not work.

No errors are raised when running from controller via Apache.  Only error raised was running from local host “mail.send failure please run connect() first”.

Regards,
James

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/Qf_LhJAsT7c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Massimo Di Pierro

unread,
Apr 24, 2018, 5:36:33 PM4/24/18
to web2py-users
Notice that web2py in trunk supports sending emails from AWS+SNS

just do

mail.settings.server='aws'

the sender email must be authorized in the SNS config

James O' Driscoll

unread,
Apr 26, 2018, 10:10:13 PM4/26/18
to web...@googlegroups.com
I am not using AWS, just standard methods IMAP/SMTP.

--

Richard Vézina

unread,
Apr 27, 2018, 9:49:59 AM4/27/18
to web2py-users
Can you show us your code (omit your credential)... You mention you use Office 365, they might have made some change you may want to have a look in the account config if SMTP has change. Or you could also try ot use the SMTP of the FAI with a no-reply email...

Richard

To unsubscribe from this group and all its topics, send an email to web2py+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages