Re: Using pythons smtp server

2013-12-14 Thread Irmen de Jong
On 14-12-2013 1:46, Dennis Lee Bieber wrote: > About then, I discovered the first two significant books on Python at > Computer Literacy, and that an Amiga binary was available (Python 1.4, I > think -- thanks, Irmin). You're welcome, but my name is spelled Irmen, with an 'e' ;-) Cheers Ir

Re: Using pythons smtp server

2013-12-13 Thread Grant Edwards
On 2013-12-13, Vincent Davis wrote: > Grant, Chris > Thanks !!! > I guess in the end this is a bad idea, (for my purposes) I should just use > my gmail account smtp server. If you're going to claim the mail is from @gmail.com, then yes you should definitly send it via Gm

Re: Using pythons smtp server

2013-12-13 Thread Chris Angelico
On Sat, Dec 14, 2013 at 5:27 AM, Vincent Davis wrote: > Grant, Chris > Thanks !!! > I guess in the end this is a bad idea, (for my purposes) I should just use > my gmail account smtp server. If you're sending from gmail, use whatever gmail specifies for sending. Otherwise your

Re: Using pythons smtp server

2013-12-13 Thread Vincent Davis
Grant, Chris Thanks !!! I guess in the end this is a bad idea, (for my purposes) I should just use my gmail account smtp server. Vincent Davis 720-301-3003 On Fri, Dec 13, 2013 at 11:15 AM, Chris Angelico wrote: > On Sat, Dec 14, 2013 at 4:13 AM, Vincent Davis > wrote: > > Let me

Re: Using pythons smtp server

2013-12-13 Thread Chris Angelico
ice? Any SMTP server you install has to do one of three things with the mail you give it: 1) Accept it locally. Presumably the wrong thing to do here. 2) Deliver it to the authoritative SMTP server for the domain. 3) Deliver it to an intermediate server. (Edit: Your next mail shows that you unders

Re: Using pythons smtp server

2013-12-13 Thread Grant Edwards
On 2013-12-13, Vincent Davis wrote: > Obviously I don't really know how this works. I have used python to > send email using "my" smtp server (whatever that may be gmail, > postfix..) But I don't want to do that. After a little more research > I think what I nee

Re: Using pythons smtp server

2013-12-13 Thread Vincent Davis
Obviously I don't really know how this works. I have used python to send email using "my" smtp server (whatever that may be gmail, postfix..) But I don't want to do that. After a little more research I think what I need to do is lookup the MX address of the address I want t

Re: Using pythons smtp server

2013-12-13 Thread Vincent Davis
> > "You don't send mail using an SMTP server. You receive mail using an > SMTP server. > ​"​ > Um maybe, I guess it is a matter of perspective. Let me rephrase my question. ​​I want to send an email using python but do not want to use an external service. Does p

Re: Using pythons smtp server

2013-12-13 Thread Grant Edwards
On 2013-12-13, Vincent Davis wrote: > I have an app that generates a file one a day and would like to email it > using pythons SMTP server. You don't send mail using an SMTP server. You receive mail using an SMTP server. > http://docs.python.org/2/library/smtpd.html#smtpd.SM

Using pythons smtp server

2013-12-12 Thread Vincent Davis
I have an app that generates a file one a day and would like to email it using pythons SMTP server. http://docs.python.org/2/library/smtpd.html#smtpd.SMTPServer The documentation is kinda sparse and I cant seem to find any good examples. Basically what I want to do; when my app runs it would

Re: using smtp in python

2013-10-22 Thread Chris Angelico
On Wed, Oct 23, 2013 at 9:02 AM, xDog Walker wrote: > On Tuesday 2013 October 22 11:44, Dan Stromberg wrote: >> Some SMTP servers require a password and some do not > > POP3 before SMTP ? Or just IP-based restrictions (computers on 192.168.0.0/24 may relay mail, all others may o

Re: using smtp in python

2013-10-22 Thread xDog Walker
On Tuesday 2013 October 22 11:44, Dan Stromberg wrote: > Some SMTP servers require a password and some do not POP3 before SMTP ? -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers. -- https://mail.python.org/mailman/listinfo/python-list

Re: using smtp in python

2013-10-22 Thread Dan Stromberg
and the mail id to send the email ? (would > i require the password) > -- > https://mail.python.org/mailman/listinfo/python-list > Some SMTP servers require a password and some do not. I'm guessing more and more do, as spammers attack. Here's a module that shows how to do it w

using smtp in python

2013-10-22 Thread ashikbekal
I'm trying to send an email using python. The mail content is taken from file and subject of the mail is name of the file. The program is invoked as ./mailclient.py -f -d -i -s . How to i use server ip address and the mail id to send the email ? (would i require the password) -- https:

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-06 Thread Gilles
On Sat, 03 Aug 2013 21:41:16 -0400, Kevin Walzer wrote: >For what it's worth, that hasn't been my experience. Thanks for the feedback. I'll experiment and see how it goes. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-06 Thread Gilles
On Sat, 3 Aug 2013 06:47:07 -0500 (CDT), Wayne Werner wrote: >Have you checked Kenneth Rietz's inbox.py[1]? It's fairly simple to >use/extend and might fit your modest needs. > > >-W > >[1]:https://crate.io/packages/inbox/ Thanks. I'll check it out. -- http://mail.python.org/mailman/listinfo/py

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-05 Thread Sanjay Arora
On Tue, Jul 23, 2013 at 2:49 PM, Chris Angelico wrote: > Ah, there's a solution to this one. You simply use your own > envelope-from address; SPF shouldn't be being checked for the From: > header. Forwarding and using the original sender's address in the SMTP > &#x

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-03 Thread Kevin Walzer
On 8/1/13 10:15 AM, Gilles wrote: I already have a static IP, so the issue is more that remote MTAs might not accept connections from MTAs running on users' PC instead of ISP's. For what it's worth, that hasn't been my experience. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.c

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-03 Thread Wayne Werner
On Thu, 1 Aug 2013, Gilles wrote: On Wed, 24 Jul 2013 10:38:52 -0400, Kevin Walzer wrote: Thanks. hMailServer was one of the apps I checked, and I was just making sure there weren't something simpler, considering my needs, ideally something like Mongoose MTA. Have you checked Kenneth Rietz's

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-01 Thread Gilles
On Wed, 24 Jul 2013 10:38:52 -0400, Kevin Walzer wrote: >> Thanks. hMailServer was one of the apps I checked, and I was just >> making sure there weren't something simpler, considering my needs, >> ideally something like Mongoose MTA. >> >> Regardless, because of the SPAM anti-measures mentioned a

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-24 Thread Kevin Walzer
On 7/23/13 5:53 PM, Gilles wrote: On Mon, 22 Jul 2013 10:14:15 -0400, Kevin Walzer wrote: http://www.hmailserver.com Thanks. hMailServer was one of the apps I checked, and I was just making sure there weren't something simpler, considering my needs, ideally something like Mongoose MTA. Regar

Re: non sequitur: [OT] SPF - was Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Steven D'Aprano
On Tue, 23 Jul 2013 19:59:01 -0400, Dennis Lee Bieber wrote: > {Liaden culture seems heavy on personal honor, and comments tend (to me) > be worded to avoid any chance of being interpreted as disparaging of the > person with whom one is speaking... Hmmm, pity such modes can't be > enforced on the

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Gilles
On Mon, 22 Jul 2013 10:14:15 -0400, Kevin Walzer wrote: >http://www.hmailserver.com Thanks. hMailServer was one of the apps I checked, and I was just making sure there weren't something simpler, considering my needs, ideally something like Mongoose MTA. Regardless, because of the SPAM anti-measu

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Gilles
anks, but I need an MTA, not just a command-line app, so I can send e-mails from my e-mail client and just change the SMTP line in the configuration. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Gilles
On Mon, 22 Jul 2013 08:54:11 -0400, "Eric S. Johansson" wrote: >try http://emailrelay.sourceforge.net/ Thanks. I did find it, but it says it's not a full MTA: "E-MailRelay is not a routing MTA. It forwards e-mail to a pre-configured SMTP server, regardless of any me

Re: [OT] SPF - was Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Chris Angelico
On Wed, Jul 24, 2013 at 1:12 AM, Michael Torrie wrote: > On 07/23/2013 03:30 AM, Chris Angelico wrote: >> On Tue, Jul 23, 2013 at 7:19 PM, Chris Angelico wrote: >>> Ah, there's a solution to this one. You simply use your own >>> envelope-from address; SPF shouldn't be being checked for the From:

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Chris Angelico
On Tue, Jul 23, 2013 at 8:06 PM, Duncan Booth wrote: > Excellent idea, I'll tell the email forwarding service to rewrite their > system immediately. Yes. If they are using your domain in the MAIL FROM command and not using your mail servers, then yes, you should tell them, and use a different ser

[OT] SPF - was Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Michael Torrie
On 07/23/2013 03:30 AM, Chris Angelico wrote: > On Tue, Jul 23, 2013 at 7:19 PM, Chris Angelico wrote: >> Ah, there's a solution to this one. You simply use your own >> envelope-from address; SPF shouldn't be being checked for the From: >> header. > > There's an example, by the way, of this exact

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Duncan Booth
sender that claims to have a complete list of originating >> servers will therefore fail validation. > > Ah, there's a solution to this one. You simply use your own > envelope-from address; SPF shouldn't be being checked for the From: > header. Forwarding and using the original s

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Chris Angelico
On Tue, Jul 23, 2013 at 7:19 PM, Chris Angelico wrote: > Ah, there's a solution to this one. You simply use your own > envelope-from address; SPF shouldn't be being checked for the From: > header. There's an example, by the way, of this exact technique right here - python-list@python.org sends ma

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Chris Angelico
give out to businesses bounces the > email unchanged to the gmail inbox that I use. That means all emails I > receive through that email address appear to Google to have originated from > the forwarding servers. An SPF record from the original sender that claims > to have a complete list of

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-23 Thread Duncan Booth
Chris Angelico wrote: > On Tue, Jul 23, 2013 at 12:08 AM, Michael Torrie > wrote: >> On 07/22/2013 06:51 AM, Chris Angelico wrote: Thanks for the tip. I didn't know about SPF http://en.wikipedia.org/wiki/Sender_Policy_Framework >>> >>> It's a great way of detecting legit vs forged mai

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Nobody
On Mon, 22 Jul 2013 14:19:57 +0200, Gilles wrote: > Incidently, how do ISP MTAs find whether the remote MTA is legit or > running on some regular user's computer? Look up the IP address in a database. If they don't have a database, perform a reverse DNS lookup and reject anything which looks like

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
just one more of the many things that are contributing overall to absolutely breaking and demise of SMTP. I'm afraid when it does finally cease to work, it's going to be replaced with less open, centrally-controlled messaging systems like facebook. Which is unfortunate. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:11 AM, Gilles wrote: > On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie > wrote: >> The Sendmail MTA has been ported to many platforms including windows. >> But... > > Thanks for the tip. Since I couldn't find a good, basic, native > Windows app, I was indeed about to look at e

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Kevin Walzer
On 7/21/13 10:42 AM, Gilles wrote: Hello Every once in a while, my ISP's SMTP server refuses to send perfectly legit e-mails because it considers them as SPAM. So I'd like to install a dead-simple SMTP server on my XP computer just to act as SMTP backup server. All I&#x

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
eed *my* problem and my job was on the line. BOFH > attitudes simply aren't going to change that reality. Is your job on the line if the sender of that email got the recipient's address right? Is your job on the line if the sender mucked up his SMTP settings and the message didn't ev

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 12:21 AM, Michael Torrie wrote: > My mail server did a number of things: > 1. ensure IP address of sending server has a reverse name (domain didn't > particularly matter) > 2. ensure the HELO address in SMTP matches IP address of sending server > 3. che

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
ely that you're going to have much luck running an SMTP >> server. Most other SMTP servers are probably going to ignore or >> reject your attempts to transfer mail from your own SMTP server. > > Incidently, how do ISP MTAs find whether the remote MTA is legit or > runnin

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Grant Edwards
#x27;re going to have much luck running an SMTP >>server. Most other SMTP servers are probably going to ignore or >>reject your attempts to transfer mail from your own SMTP server. > > Incidently, how do ISP MTAs find whether the remote MTA is legit or > running on some regula

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Tue, Jul 23, 2013 at 12:08 AM, Michael Torrie wrote: > On 07/22/2013 06:51 AM, Chris Angelico wrote: >>> Thanks for the tip. I didn't know about SPF >>> http://en.wikipedia.org/wiki/Sender_Policy_Framework >> >> It's a great way of detecting legit vs forged mail. If anyone tries to >> send mail

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Michael Torrie
On 07/22/2013 06:51 AM, Chris Angelico wrote: >> Thanks for the tip. I didn't know about SPF >> http://en.wikipedia.org/wiki/Sender_Policy_Framework > > It's a great way of detecting legit vs forged mail. If anyone tries to > send mail purporting to be from anyth...@kepl.com.au and the receiving >

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Eric S. Johansson
On Mon, 22 Jul 2013 08:11:25 -0400, Gilles wrote: On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie wrote: The Sendmail MTA has been ported to many platforms including windows. But... Thanks for the tip. Since I couldn't find a good, basic, native Windows app, I was indeed about to look at

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Mon, Jul 22, 2013 at 10:38 PM, Gilles wrote: > On Mon, 22 Jul 2013 22:29:42 +1000, Chris Angelico > wrote: >>One thing to check when you change how you send mail is your SPF >>record. I run the mail server for kepl.com.au and have set its SPF to: >> >>"v=spf1 ip4:122.107.147.136 ip4:203.214.67

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Mon, 22 Jul 2013 22:29:42 +1000, Chris Angelico wrote: >One thing to check when you change how you send mail is your SPF >record. I run the mail server for kepl.com.au and have set its SPF to: > >"v=spf1 ip4:122.107.147.136 ip4:203.214.67.43 ip4:192.168.0.0/16 -all" > >If your SPF is as strict

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Chris Angelico
On Mon, Jul 22, 2013 at 10:11 PM, Gilles wrote: > On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie > wrote: >>Having spent a long time managing e-mail servers, everything Ivan said >>in his reply is true as well. I had forgotten a lot of that since I >>haven't been running my own mail server (

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards wrote: >Unless you've got a static IP address, a domain name, and a valid MX >record that will match up when they do a reverse DNS lookup, it's >pretty unlikely that you're going to have much luck running an SMTP &

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 21:01:09 + (UTC), Grant Edwards wrote: >Unless you've got a static IP address, a domain name, and a valid MX >record that will match up when they do a reverse DNS lookup, it's >pretty unlikely that you're going to have much luck running an SMTP &

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-22 Thread Gilles
On Sun, 21 Jul 2013 18:28:27 -0600, Michael Torrie wrote: >The Sendmail MTA has been ported to many platforms including windows. >But... Thanks for the tip. Since I couldn't find a good, basic, native Windows app, I was indeed about to look at eg. Exim + Cygwin, and resort to a Linux appliance if

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Michael Torrie
On 07/21/2013 02:34 PM, Gilles wrote: > Thanks for the infos. Ideally, I was looking for a simple Windows app > as MTA, but a Python script is OK. The Sendmail MTA has been ported to many platforms including windows. But... > I'm not sure my ISP blocks outbound port 25 connections. I'll > experim

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Grant Edwards
On 2013-07-21, Gilles wrote: > Every once in a while, my ISP's SMTP server refuses to send > perfectly legit e-mails because it considers them as SPAM. > > So I'd like to install a dead-simple SMTP server on my XP computer > just to act as SMTP backup server. All I

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Ivan Shmakov
>>>>> Gilles writes: >>>>> On Sun, 21 Jul 2013 11:46:52 -0600, Michael Torrie wrote: [Cross-posting to news:comp.mail.misc.] >> What you're looking for is not an SMTP server but a Mail Transfer >> Agent, called an MTA. [...] >&g

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Gilles
On Sun, 21 Jul 2013 11:46:52 -0600, Michael Torrie wrote: >What you're looking for is not an SMTP server but a Mail Transfer Agent, >called an MTA. > >Pretty much all distros ship with an MTA by default, even if the SMTP >server part of it isn't installed or running.

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Michael Torrie
On 07/21/2013 10:19 AM, Gilles wrote: > So, does someone know of a good, SMTP server just to send e-mails? What you're looking for is not an SMTP server but a Mail Transfer Agent, called an MTA. Pretty much all distros ship with an MTA by default, even if the SMTP server part of

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Gilles
her send via your ISP or send directly to the >receiving MTA, without much extra effort. Thank you but precisely, I was looking for a "ready-to-use solution in Python" so that I wouldn't have to write it myself. Also, I don't need a full-fledged SMTP server, just a tiny scrip

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Chris Angelico
On Mon, Jul 22, 2013 at 12:42 AM, Gilles wrote: > Hello > > Every once in a while, my ISP's SMTP server refuses to send > perfectly legit e-mails because it considers them as SPAM. > > So I'd like to install a dead-simple SMTP server on my XP computer > ju

Simple Python script as SMTP server for outgoing e-mails?

2013-07-21 Thread Gilles
Hello Every once in a while, my ISP's SMTP server refuses to send perfectly legit e-mails because it considers them as SPAM. So I'd like to install a dead-simple SMTP server on my XP computer just to act as SMTP backup server. All I'd need is to change the SMTP addre

Re: SMTP-Email Help

2013-04-29 Thread Steven D'Aprano
On Sun, 28 Apr 2013 23:39:53 -0700, root.phidgets wrote: > Hi Guys. I need some help with the coding for my program. > > This coding is suppose to sort text file according to the latest date > and send the latest file. Attach it to my email and sent to another > email account. But somehow the pro

SMTP-Email Help

2013-04-28 Thread root . phidgets
Hi Guys. I need some help with the coding for my program. This coding is suppose to sort text file according to the latest date and send the latest file. Attach it to my email and sent to another email account. But somehow the program is unable to send email. [CODE]#!/usr/bin/python import os,

Re: using smtp sent large file upto 60MB

2012-12-10 Thread moonhkt
On 12月5日, 下午11時01分, Michael Torrie wrote: > On 12/04/2012 05:54 PM, moonhkt wrote: > > > Our SMTP can send file more than 60MB. But our notes server can > > configured 100MB,30MB or 10MB. My notes Mail box can receive 100MB. > > > In UNIX, by below command send  smtp m

Re: using smtp sent large file upto 60MB

2012-12-05 Thread Michael Torrie
On 12/04/2012 05:54 PM, moonhkt wrote: > Our SMTP can send file more than 60MB. But our notes server can > configured 100MB,30MB or 10MB. My notes Mail box can receive 100MB. > > In UNIX, by below command send smtp mail. > uuencode $xfn $xfn | mail -s "$SUBJECT" $NAME

Re: using smtp sent large file upto 60MB

2012-12-04 Thread moonhkt
On 12月5日, 下午1時34分, Chris Angelico wrote: > On Wed, Dec 5, 2012 at 11:54 AM, moonhkt wrote: > > I am prepare change UNIX script to Python. smtp and ftp are my first > > tasks. > > > But, when using standard unix command mail and uuencode without this > > issue. >

Re: using smtp sent large file upto 60MB

2012-12-04 Thread Chris Angelico
On Wed, Dec 5, 2012 at 11:54 AM, moonhkt wrote: > I am prepare change UNIX script to Python. smtp and ftp are my first > tasks. > > But, when using standard unix command mail and uuencode without this > issue. > > Our SMTP can send file more than 60MB. But our notes server c

Re: using smtp sent large file upto 60MB

2012-12-04 Thread moonhkt
like movie editing, where it's common to work with files > larger than your RAM.) > > ChrisA Thank for your suggestion. Machine : AIX Python version : 2.6.2 I am prepare change UNIX script to Python. smtp and ftp are my first tasks. But, when using standard unix command mail and uue

Re: using smtp sent large file upto 60MB

2012-12-04 Thread Chris Angelico
On Wed, Dec 5, 2012 at 2:41 AM, Laszlo Nagy wrote: > If you still don't want to accept this suggestion, then go ahead! Write a > program, send out 100MB emails, and you will see for yourself that it just > doesn't work. But be aware of a few things. 1) Converting 1MB of binary data into a MIME-p

Re: using smtp sent large file upto 60MB

2012-12-04 Thread Laszlo Nagy
Thank for suggestion. The next task will be ftp to user folder. But first tasks is how to using python send huge files. Most SMTP servers are configured not to accept attachments bigger than 10 or 15MB. In general, you should never send emails with >5MB attachments. Not because it is

Re: using smtp sent large file upto 60MB

2012-12-04 Thread moonhkt
On Dec 4, 6:07 pm, Chris Angelico wrote: > On Tue, Dec 4, 2012 at 7:15 PM, moonhkt wrote: > > How to using python send file uptp 60MB ? > > Step one: Don't. SMTP is almost never the best choice for sending huge > files around. > > There are plenty of other ways to sh

Re: using smtp sent large file upto 60MB

2012-12-04 Thread Chris Angelico
On Tue, Dec 4, 2012 at 7:15 PM, moonhkt wrote: > How to using python send file uptp 60MB ? Step one: Don't. SMTP is almost never the best choice for sending huge files around. There are plenty of other ways to share files; send an email with instructions on how to access the file, rat

using smtp sent large file upto 60MB

2012-12-04 Thread moonhkt
Hi All How to using python send file uptp 60MB ? s = smtplib.SMTP("localhost") #~~ s.set_debuglevel(1) s.sendmail(from_addr, to_addr,m.as_string()) s.quit For 13MB file have below error s.sendmail(from_addr, to_addr,m.as_string()) File "/opt/freeware/lib/python2.6/email/message.py", line

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-20 Thread Mark Lawrence
On 19/09/2012 20:12, ashish wrote: Folks, I asked the same query on the python tutor mailing list. The responses i received are here : http://thread.gmane.org/gmane.comp.python.tutor/77601 Mark, There is nothing wrong in asking a query on multiple forums. Poeple on the tutor list, may not be

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-19 Thread ashish
Folks, I asked the same query on the python tutor mailing list. The responses i received are here : http://thread.gmane.org/gmane.comp.python.tutor/77601 Mark, There is nothing wrong in asking a query on multiple forums. Poeple on the tutor list, may not be part of comp.lang.python & subscribe

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-11 Thread Mark Lawrence
On 11/09/2012 22:51, ashish makani wrote: Hi c.l.p peeps I am stuck with an issue, so am coming to the Pythonista deltaforce who rescue me everytime :) [big snip] I say old chap, it's simply not cricket to ask a question like this some 32 minutes after asking the same question on the tutor

How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-11 Thread ashish makani
lib.py", line 295, in connect self.sock = self._get_socket(host, port, self.timeout) File "/usr/lib/python2.6/smtplib.py", line 273, in _get_socket return socket.create_connection((port, host), timeout) File "/usr/lib/python2.6/socket.py", line 514, in create_connecti

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Dan Stromberg
Maybe it's a matter of two different protocols, one requiring a VPN, one not. You could perhaps try a sniffer to check that out. Where to place the sniffer could be complicated though. On Fri, Mar 30, 2012 at 10:39 PM, Julien wrote: > Hi, > > I'm able to connect to an Excha

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Dan Stromberg
; Hi, > > I'm able to connect to an Exchange server via SMTP and IMAP from my > iPhone using SSL and without using a VPN. So I would expect to be able > to do the same from my computer using Python. > > However, the following hangs and times out on my computer when I'm n

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-12 Thread Christian Heimes
Am 12.04.2012 08:56, schrieb Julien Phalip: > Hi Michael, > > Thanks again for your reply. I've tried using SMTP with TLS. And again > it works with the VPN turned on but it still won't work with the VPN > turned off. For some reason I don't understand, it simpl

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-11 Thread Julien Phalip
Hi Michael, Thanks again for your reply. I've tried using SMTP with TLS. And again it works with the VPN turned on but it still won't work with the VPN turned off. For some reason I don't understand, it simply won't instantiate the SMTP/SMTP_SSL/IMAP4/IMAP4_SSL objects

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Michael Hrivnak
me, as I can access the Gmail IMAP/SMTP server using SSL. It > also works for that other Exchange server but only when the VPN is > turned on. > > Somehow my iPhone works fine without a VPN, as long as it uses SSL. So > I'm really unsure why I can't achieve the same thing fro

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Julien
Hi Michael, Thanks for your reply. I did try port 993. I know that port generally works for me, as I can access the Gmail IMAP/SMTP server using SSL. It also works for that other Exchange server but only when the VPN is turned on. Somehow my iPhone works fine without a VPN, as long as it uses

Re: Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Michael Hrivnak
That method uses the default port 993. Can you connect to that port at all from your computer? For example, try using a telnet client. Michael On Sat, Mar 31, 2012 at 1:39 AM, Julien wrote: > Hi, > > I'm able to connect to an Exchange server via SMTP and IMAP from my > iPh

Problem connecting to SMTP/IMAP server using SSL

2012-04-02 Thread Julien
Hi, I'm able to connect to an Exchange server via SMTP and IMAP from my iPhone using SSL and without using a VPN. So I would expect to be able to do the same from my computer using Python. However, the following hangs and times out on my computer when I'm not connected to the VPN:

Re: smtp

2011-08-08 Thread Terry Reedy
On 8/8/2011 12:45 PM, Verde Denim wrote: I'm running 2.6.5 on a debian base... It didn't seem to matter what is input - I tried using a single recipient as well as multiples (separated by comma). Output appears as - # python send_my_msg.py From: m...@me.com To: y...@you.com

Re: smtp

2011-08-08 Thread Terry Reedy
On 8/8/2011 12:08 PM, Verde Denim wrote: I'm working on learning various aspects of Py coding, and happened to review the smtplib docs this morning. I entered the sample code from http://www.python.org/doc//current/library/smtplib.html When posting about error messages, please specify Python ve

Re: smtp

2011-08-08 Thread Terry Reedy
On 8/8/2011 12:26 PM, Chris Angelico wrote: As a side point: Does anyone else feel that it's potentially confusing to have a function whose parameter has the same name as the function itself? This is straight from the example. Yes. I might change it someday when I can. -- Terry Jan Reedy --

Re: smtp

2011-08-08 Thread Hegedüs , Ervin
hello, > > import smtplib > def prompt(prompt): > return raw_input(prompt).strip() > fromaddr = prompt("From: ")toaddrs = prompt("To: ").split()print > "Enter message, end with ^D (Unix) or ^Z (Windows):" > # Add the From: and To: headers at the start!msg = ("From: %s\r\nTo: > %s\r\n\r\n" >

Re: smtp

2011-08-08 Thread Chris Angelico
t return socket.create_connection((port, host), timeout) File "C:\Python26\lib\socket.py", line 514, in create_connection raise error, msg socket.error: [Errno 10061] No connection could be made because the target machi ne actively refused it C:\> I don't have an SMTP

Re: smtp

2011-08-08 Thread Verde Denim
On Mon, Aug 8, 2011 at 12:26 PM, Chris Angelico wrote: > On Mon, Aug 8, 2011 at 5:08 PM, Verde Denim wrote: > > and it returns - > > "TypeError" with no other information... > > It appears to be generated from the line > > > > msg = ("From: %s\r\nTo: %s\r\n\r\n" > >% (fromaddr, ", ".join

Re: smtp

2011-08-08 Thread Chris Angelico
On Mon, Aug 8, 2011 at 5:08 PM, Verde Denim wrote: > and it returns - > "TypeError" with no other information... > It appears to be generated from the line > > msg = ("From: %s\r\nTo: %s\r\n\r\n" >% (fromaddr, ", ".join(toaddrs))) > > But I'm not sure why... > I transcribed pieces manuall

smtp

2011-08-08 Thread Verde Denim
I'm working on learning various aspects of Py coding, and happened to review the smtplib docs this morning. I entered the sample code from http://www.python.org/doc//current/library/smtplib.html import smtplib def prompt(prompt): return raw_input(prompt).strip() fromaddr = prompt("From: ")toad

Re: Inconsistent SMTP/Gmail connection drop

2011-08-05 Thread Dan Stromberg
Well, a sniffer is one of many, and one worth mentioning. Though I'd recommend wireshark over tcpdump, pretty much any day. http://stromberg.dnsalias.org/~dstromberg/Problem-solving-on-unix-linux-systems.html On Fri, Aug 5, 2011 at 6:29 PM, BJ Swope wrote: > The best tool to debug this is tcpd

Re: Inconsistent SMTP/Gmail connection drop

2011-08-05 Thread BJ Swope
The best tool to debug this is tcpdump. Running a packet capture whilst sending the mail will most likely shed the most light on the subject. -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Inconsistent SMTP/Gmail connection drop

2011-08-04 Thread Astley Le Jasper
Just to add a little bit to the mix, I have started having these problems since I rebuilt my machine (Xubuntu 11) and I changed the disc formats to ext4 without even thinking about it ... I was wondering if maybe that had something to do with it? -- http://mail.python.org/mailman/listinfo/python-l

Re: Inconsistent SMTP/Gmail connection drop

2011-08-04 Thread Astley Le Jasper
Thanks for those suggestions. I tried something last night before I got your ideas. 1. I added a line to send a copy of the report just to me, 2 lines before the line where it emails the report to all the recipients. 2. I also added a timer.sleep(5) pause just before the line that emails the repo

Re: Inconsistent SMTP/Gmail connection drop

2011-08-03 Thread Dan Stromberg
e a copy of the log file > straight after, and that works. > - The same code has been working for years, it just that I have > recently rebuilt the machine so now it is using Python 2.7. I have > also change the references to use absolute file references, rather > than relative. I al

Re: Inconsistent SMTP/Gmail connection drop

2011-08-03 Thread Astley Le Jasper
Not sure how I'd test or determine that. I've set smtp debug to true and the output looks all good. I suppose I could try sending an email before the report is sent, as well as the email that is sent after it. On Thu, Aug 4, 2011 at 12:17 AM, David Stanek wrote: > On Wed, Aug 3, 20

Re: Inconsistent SMTP/Gmail connection drop

2011-08-03 Thread David Stanek
On Wed, Aug 3, 2011 at 5:46 PM, Astley Le Jasper wrote: > > Any ideas? > Is it possible that the first email is sent before the network connection has been properly established? -- David blog: http://www.traceback.org twitter: http://twitter.com/dstanek www: http://dstanek.com -- http://mail.

Inconsistent SMTP/Gmail connection drop

2011-08-03 Thread Astley Le Jasper
ces, rather than relative. I also have changed the code to run as root. - I've checked the smtp debug report and everything seems ok. I just never get the confirmation code (250) to say that it's completed. - Even stranger ... it ran ok once. But I didn't change a thing and the next

Re: smtp - python

2011-06-09 Thread Josias L . Gonçalves
Thank you. The question is that. Get the messages that was sended and save in maildir format. One more question... testing here, has the smtpd.pureproxy support stream username and password for smtp authentication ?. I read some doc and don't find anything about. -- http://mail.python.org/ma

Re: smtp - python

2011-06-09 Thread Adam Tauno Williams
On Wed, 2011-06-08 at 17:18 -0300, Josias L.G wrote: > Hi for all, > I'm very newbie in python and is very good language. > I'm trying to adopt a example: > import smtpd > import asyncore > server = smtpd.PureProxy(('127.0.0.1', 1025), ('mail', 25)) > asyncore.loop() > I'm trying to copy the email

smtp - python

2011-06-08 Thread Josias L.G
Hi for all, I'm very newbie in python and is very good language. I'm trying to adopt a example: import smtpd import asyncore server = smtpd.PureProxy(('127.0.0.1', 1025), ('mail', 25)) asyncore.loop() I'm trying to copy the email that is send to another email in maildir format. Here, i'm read

  1   2   3   >