[Tutor] How to send email from a gmail a/c using smtp when port 587(smtp) is blocked
ashish makani
ashish.makani at gmail.com
Wed Sep 12 00:27:04 CEST 2012
Walter, Marc,
Thanks for your helpful suggestions & super quick replies.
As a noobie, i often run into brick walls, thinking something(problem i am
stuck at) is not possible to do in python.
I love struggling against that problem & figuring a way out.
I have posted to the tutor mailing list in the past & the community here
has always been amazingly welcoming & super helpful, so as a n00b, i was
just a little taken aback &surprised at Emil's not particularly helpful ,
yet completely accurate response :)
Marc,
your 3rd point,
> you could establish a VPN tunnel to some server outside of the
> university's network and send from port 587 on THAT machine. Complicated,
> weird, and not horribly secure. But doable.
Could you point me to a good link/resource on how to do this ?
Walter,
you suggested writing a web service running somewhere else (e.g. Google
Apps, AWS, etc) which i could request from my python code, which in turn
would do the emailing.
Can you point me to any good links/example code which might explain writing
a simple SOAP/ReST web service using port80(http) or preferably,
443(https).
I know nothing about web services, but could this web service essentially
be the python email code, i mentioned in my original post, if i run it on
Google App Engine ?
Thanks a ton,
Best,
ashish
On Wed, Sep 12, 2012 at 3:29 AM, Walter Prins <wprins at gmail.com> wrote:
> Hi Ashish,
>
> On 11 September 2012 22:44, ashish makani <ashish.makani at gmail.com> wrote:
> > These emails are automated diagnostic emails sent to a group of a few
> > admins, so we get notified when a python heartbeat script, detects a
> failure
> > in things like n/w connectivity, router status, etc.
> > We dont use university email, we use gmail.
> >
> > Emile,
> > Please don't presume people's intentions (that we are sending spam) &
> judge
> > people without knowing anything about them.
> > We are a tiny startup trying to connect rural communities using voice &
> ivr
> > systems - http://gramvaani.org/
>
> OK, well I'm sure you can see how an apparent newbie asking to get out
> of a university network without any explanation can be seem um,
> suspect, so I think Emile's response was reasonable. I must further
> note that I can't actually see how/where your request actually fits
> under the projects listed by that site. So, colour me still a bit
> sceptical, but I'll give you the benefit of the doubt.
>
> So then, given that you can only get out on port 80, your only real
> option the way I see it is to write a small web service, maybe a SOAP
> or preferably ReST service, to run on e.g. Google APP engine that will
> do the emailing for you. Of course, you'll have to consider whether
> to implement some security yourself if you use port 80 as the data
> going over the wire will be sent unencrypted. It may not be a problem
> but then again it may. Note, alternatively you can perhaps also use
> https (port 443), if that's also open as that will give you end-to-end
> encryption for free. (But I have no idea and suspect that this may
> also introduce a boatload of other complications...)
>
> Walter
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120912/825f0faf/attachment-0001.html>
More information about the Tutor
mailing list