Re: Tryign to send mail via a python script by using the local MTA

2013-09-22 Thread alex23
On 21/09/2013 11:29 PM, William Ray Wing wrote: Νίκος , You CLEARLY don't understand. Just a public service reminder that Nikos' behaviour is _consistently_ that of his prefered nom de plume: "Ferrous Cranus is utterly impervious to reason, persuasion and new ideas, and when engaged in b

Re: Tryign to send mail via a python script by using the local MTA

2013-09-21 Thread William Ray Wing
On Sep 21, 2013, at 5:21 AM, Νίκος wrote: > On 18/9/2013 2:29 πμ, Dennis Lee Bieber wrote: >> On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus >> declaimed the following: >> >>> So cant this be done in python or not? >>> or is a mtetr of configuring the MTA? conf file? >> >> You can't..

Re: Tryign to send mail via a python script by using the local MTA

2013-09-21 Thread Νίκος
On 18/9/2013 2:29 πμ, Dennis Lee Bieber wrote: On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus declaimed the following: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? You can't... Those headers get added by the ISP and any other host the ma

Re: Tryign to send mail via a python script by using the local MTA

2013-09-20 Thread feedthetroll
Hi Jake! Am Freitag, 20. September 2013 05:56:57 UTC+2 schrieb Jake Angulo: > ... > I was waiting for smtplib to be mentioned... finally!  Instead people simply > answer philosophically.  I dont want to judge whether OP is a troll or not - As you do not seem to know the histrory of this topic I wi

Re: Tryign to send mail via a python script by using the local MTA

2013-09-20 Thread Robert Kern
On 2013-09-20 04:56, Jake Angulo wrote: Up Robert Kern's reply! I was waiting for smtplib to be mentioned... finally! Instead people simply answer philosophically. I dont want to judge whether OP is a troll or not - but i found a lot of arrogant repli

Re: Tryign to send mail via a python script by using the local MTA

2013-09-19 Thread Antoon Pardon
Op 20-09-13 05:56, Jake Angulo schreef: > Up Robert Kern's reply! > > I was waiting for smtplib to > be mentioned... finally! Instead people simply answer philosophically. > I dont want to judge whether OP is a troll or not - but i found a lot > of arro

Re: Tryign to send mail via a python script by using the local MTA

2013-09-19 Thread Jake Angulo
Up Robert Kern's reply! I was waiting for smtplib to be mentioned... finally! Instead people simply answer philosophically. I dont want to judge whether OP is a troll or not - but i found a lot of arrogant replies here. I have also worked on an antispa

Re: Tryign to send mail via a python script by using the local MTA

2013-09-18 Thread Dave Angel
On 18/9/2013 18:31, Dennis Lee Bieber wrote: > On Tue, 17 Sep 2013 18:34:50 -0400, William Ray Wing > declaimed the following: > > >> >>I think you need to read up on some of the most basic fundamentals of tcp/ip >>networking, i.e., the basis of the global internet. EVERY network packet >>(and

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Denis McMahon
On Wed, 18 Sep 2013 00:42:22 +0300, Ferrous Cranus wrote: > So the foreign MTA tests for real time connectivity with the local MTA > and it tries to detect a working host and ip address. No. I strongly suggest that you stop trying to write software that transmits data across tcp/ip networks unt

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Piet van Oostrum
Ferrous Cranus writes: > So cant this be done in python or not? > or is a mtetr of configuring the MTA? conf file? You could write a python program that uses Gmail's web interface. But it is tricky, and if Gmail would change its inyterface you get stuck, and have to do it again, risking that t

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread William Ray Wing
On Sep 17, 2013, at 5:42 PM, Ferrous Cranus wrote: > On 17/9/2013 7:30 μμ, Denis McMahon wrote: >> On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: >> >>> So cant this be done in python or not? >>> or is a mtetr of configuring the MTA? conf file? >> >> Python can not control data that

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
On 17/9/2013 7:30 μμ, Denis McMahon wrote: On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: So cant this be done in python or not? or is a mtetr of configuring the MTA? conf file? Python can not control data that is added to the message after it has left the python program. If you wa

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Chris Angelico
On Wed, Sep 18, 2013 at 7:42 AM, Ferrous Cranus wrote: > So the foreign MTA tests for real time connectivity with the local MTA and > it tries to detect a working host and ip address. No, the local MTA connects to the foreign MTA. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Denis McMahon
On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus wrote: > So cant this be done in python or not? > or is a mtetr of configuring the MTA? conf file? Python can not control data that is added to the message after it has left the python program. If you want to retain maximum possible control of

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
On 17/9/2013 1:46 μμ, Heiko Wundram wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 01:41, schrieb Steven D'Aprano: I cannot fathom for the life of me a legitimate reason for your website to use a fake IP address and hostname when sending email. In addition to that: it's am

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Grant Edwards
On 2013-09-17, Heiko Wundram wrote: > > Am 17.09.2013 01:41, schrieb Steven D'Aprano: >> I cannot fathom for the life of me a legitimate reason for your >> website to use a fake IP address and hostname when sending email. > > In addition to that: it's amazing that Nikos thinks TCP will still > wor

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Antoon Pardon
Op 17-09-13 14:11, Ferrous Cranus schreef: > Yes you are doing it. > I'm not trolling but trying to solve a specific question and i have > provided code i wrote to do that and explained the reason of why i want > it to work like this. No you haven't. You have given no explanation at all for why y

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Robert Kern
On 2013-09-17 13:11, Ferrous Cranus wrote: There are members here like Tim Chase who said that they find it interesting to be able to do what i proposed. No, he didn't. He was using sarcasm in a vain attempt to inspire you to search the Python documentation where you could easily find the sta

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 13:55, schrieb Joel Goldstick: > At least if you want to add to this nonsense, read each of the > (several?) dozen entries. Actually, I have read each of the troll cycles (just as I read much of clp, although I haven't participated much

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Ferrous Cranus
Στις 17/9/2013 2:55 μμ, ο/η Joel Goldstick έγραψε: In honour of the value of mailing lists in general lets stop this thread since once again the troll pattern repeats ad infinitum. At least if you want to add to this nonsense, read each of the (several?) dozen entries. 1. a seemingly earnest qu

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Joel Goldstick
In honour of the value of mailing lists in general lets stop this thread since once again the troll pattern repeats ad infinitum. At least if you want to add to this nonsense, read each of the (several?) dozen entries. 1. a seemingly earnest question is asked with something to do with python. The

Re: Tryign to send mail via a python script by using the local MTA

2013-09-17 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 17.09.2013 01:41, schrieb Steven D'Aprano: > I cannot fathom for the life of me a legitimate reason for your > website to use a fake IP address and hostname when sending email. In addition to that: it's amazing that Nikos thinks TCP will still work

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread feedthetroll
Am Dienstag, 17. September 2013 03:40:06 UTC+2 schrieb Tim Chase: > On 2013-09-17 00:15, Ferrous Cranus wrote: >... >> But i wish to try it, is there a way to try to remove them? > > You could manage your own SMTP connection. If only Python had some > built in library that handled SMTP, that woul

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Tim Chase
On 2013-09-17 00:15, Ferrous Cranus wrote: >>> X-AntiAbuse: This header was added to track abuse, please include >>> it with any abuse report X-AntiAbuse: Primary Hostname - >>> my.superhost.gr >>> X-AntiAbuse: Original Domain - superhost.gr >>> X-AntiAbuse: Originator/Caller UID/GID - [500 501] /

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Steven D'Aprano
On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: > We need to try it to see if it will work, or perhaps we can alter both > the hostname and ip address variables on the server to some other values > so that google will use them too. > > It will not detect the real hostname or the real ip

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 10:09 μμ, ο/η Denis McMahon έγραψε: On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: We need to try it to see if it will work, or perhaps we can alter both the hostname and ip address variables on the server to some other values so that google will use them too. It will

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 8:53 μμ, ο/η William Ray Wing έγραψε: On Sep 16, 2013, at 12:15 PM, Ferrous Cranus wrote: Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SH

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Joel Goldstick
On Mon, Sep 16, 2013 at 3:09 PM, Denis McMahon wrote: > On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: > > > We need to try it to see if it will work, or perhaps we can alter both > > the hostname and ip address variables on the server to some other values > > so that google will use th

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
On Mon, 16 Sep 2013 18:02:20 +0300, Ferrous Cranus wrote: > We need to try it to see if it will work, or perhaps we can alter both > the hostname and ip address variables on the server to some other values > so that google will use them too. > > It will not detect the real hostname or the real ip

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
On Mon, 16 Sep 2013 19:23:15 +0300, Ferrous Cranus wrote: >> Τhis si the headers i would like to delete because i dont want them to >> be used when sending mail: >> X-AntiAbuse: ... > and this too: > Received: .. This is probably your mta, not python, see your mta config. OFF TOPIC IN

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread William Ray Wing
On Sep 16, 2013, at 12:15 PM, Ferrous Cranus wrote: > Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: >> Op 16-09-13 14:11, Ferrous Cranus schreef: >>> Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schri

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 7:15 μμ, ο/η Ferrous Cranus έγραψε: Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my s

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 3:56 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 14:11, Ferrous Cranus schreef: Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my s

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 14:11, Ferrous Cranus schreef: > Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> Am 16.09.2013 13:37, schrieb Ferrous Cranus: >>> What i want now is to be able to alter the hostname of my server so >>> the mails wont indicate t

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 14:11, schrieb Ferrous Cranus: > But even so, if we alter for example the hostname of our server to > a different name then wouldn't Google use that to identify the > server thus protecting the real identity(hostname that is) of the > ser

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 2:44 μμ, ο/η Heiko Wundram έγραψε: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: What i want now is to be able to alter the hostname of my server so the mails wont indicate that they derive from superhost.gr as they aare now sen in the

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:37, schrieb Ferrous Cranus: > What i want now is to be able to alter the hostname of my server so > the mails wont indicate that they derive from superhost.gr as they > aare now sen in the mail headers. There is no way to do that, as

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 16.09.2013 13:21, schrieb Denis McMahon: > If he's trying to prove communication works, he might be better off > using a message subject of "test" and a message body of "this is a > test message". Generally, he might be best off if he didn't use os

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 2:21 μμ, ο/η Denis McMahon έγραψε: On Mon, 16 Sep 2013 12:06:06 +0200, Joost Molenaar wrote: It's most likely an issue in your local SMTP server's configuration. I'm not convinced about that. All the evidence is that OPs local mta delivers the message to google. I think the iss

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Denis McMahon
On Mon, 16 Sep 2013 12:06:06 +0200, Joost Molenaar wrote: > It's most likely an issue in your local SMTP server's configuration. I'm not convinced about that. All the evidence is that OPs local mta delivers the message to google. I think the issue is that google are deciding the message is junk

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Joost Molenaar
> Look, > > i want this to stop. > Open your own thread and discuss this if you like. > This is a thread i opened for a specific question and all i see its > irrelevant answers. Hi Ferrous, The problem is not in your Python code. You can debug it from the command line by typing the 'echo ... | ma

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 12:40 μμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 10:48, Chris Angelico schreef: On Mon, Sep 16, 2013 at 6:43 PM, Antoon Pardon wrote: Op 16-09-13 10:19, Chris Angelico schreef: It's a contribution that SAYS that it looks carelessly written. I think most people here are intellige

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 10:48, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 6:43 PM, Antoon Pardon > wrote: >> Op 16-09-13 10:19, Chris Angelico schreef: >>> It's a contribution that SAYS that it looks carelessly written. I >>> think most people here are intelligent enough to know that that's >>> differe

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 6:43 PM, Antoon Pardon wrote: > Op 16-09-13 10:19, Chris Angelico schreef: >> It's a contribution that SAYS that it looks carelessly written. I >> think most people here are intelligent enough to know that that's >> different from actual carelessness. > > The question is, s

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 10:19, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 6:12 PM, Antoon Pardon > wrote: >> Op 16-09-13 09:46, Chris Angelico schreef: >>> On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon >>> wrote: instead of showing us all that you too can contribute in a careless manner? >>

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 6:12 PM, Antoon Pardon wrote: > Op 16-09-13 09:46, Chris Angelico schreef: >> On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon >> wrote: >>> instead of showing us all that you >>> too can contribute in a careless manner? >> >> Also: It takes effort to contribute usefully in

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 09:46, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon > wrote: >> instead of showing us all that you >> too can contribute in a careless manner? > > Also: It takes effort to contribute usefully in a way that looks > careless :) It's not saving effort, it's ma

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 6:07 PM, Antoon Pardon wrote: >> Also, how will other people learn that they should put some effort >> into their questions? If people are only ever corrected privately, >> nobody will learn from anyone else. Orders of magnitude more people >> will read this than just the O

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 09:44, Chris Angelico schreef: > On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon > wrote: >> Op 16-09-13 03:52, Steven D'Aprano schreef: >>> Hi Nikos, >>> >>> I'm now going to put as much care and attention into my answer as you put >>> into your question. >>> >>> Have uy tryed imprting

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Ferrous Cranus
Στις 16/9/2013 10:29 πμ, ο/η Antoon Pardon έγραψε: Op 16-09-13 03:52, Steven D'Aprano schreef: Hi Nikos, I'm now going to put as much care and attention into my answer as you put into your question. Have uy tryed imprting os first? u nmeed to do improt os first or it wont work., When you g

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon wrote: > instead of showing us all that you > too can contribute in a careless manner? Also: It takes effort to contribute usefully in a way that looks careless :) It's not saving effort, it's making a point. ChrisA -- https://mail.python.org/mailm

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Chris Angelico
On Mon, Sep 16, 2013 at 5:29 PM, Antoon Pardon wrote: > Op 16-09-13 03:52, Steven D'Aprano schreef: >> Hi Nikos, >> >> I'm now going to put as much care and attention into my answer as you put >> into your question. >> >> Have uy tryed imprting os first? u nmeed to do >> >> improt os >> >> first o

Re: Tryign to send mail via a python script by using the local MTA

2013-09-16 Thread Antoon Pardon
Op 16-09-13 03:52, Steven D'Aprano schreef: > Hi Nikos, > > I'm now going to put as much care and attention into my answer as you put > into your question. > > Have uy tryed imprting os first? u nmeed to do > > improt os > > first or it wont work., > > > When you give evidence of caring abo

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Ferrous Cranus
Στις 16/9/2013 4:52 πμ, ο/η Steven D'Aprano έγραψε: Hi Nikos, I'm now going to put as much care and attention into my answer as you put into your question. Have uy tryed imprting os first? u nmeed to do improt os first or it wont work., When you give evidence of caring about the questions y

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Steven D'Aprano
Hi Nikos, I'm now going to put as much care and attention into my answer as you put into your question. Have uy tryed imprting os first? u nmeed to do improt os first or it wont work., When you give evidence of caring about the questions you ask, I'll start caring about the answers I give

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Joel Goldstick
On Sun, Sep 15, 2013 at 5:31 PM, Chris Angelico wrote: > On Mon, Sep 16, 2013 at 1:54 AM, Ferrous Cranus > wrote: > > Since all looks okey why the mail never gets delivered? > > This is not a Python question. If it were, I would be asking how > you're getting _anywhere_ with that code, which app

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Chris Angelico
On Mon, Sep 16, 2013 at 1:54 AM, Ferrous Cranus wrote: > Since all looks okey why the mail never gets delivered? This is not a Python question. If it were, I would be asking how you're getting _anywhere_ with that code, which appears to have IndentationErrors in it. You're also using os.system()

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread SuperHost - Nikos
Στις 15/9/2013 9:59 μμ, ο/η Joost Molenaar έγραψε: Also, the reverse DNS for 84.200.17.58 does not resolve to secure.superhost.gr, which could also be reason to reject the message. How can i fix this please? -- https://mail.python.org/mailman/listinfo/python-list

Re: Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Joost Molenaar
Since the From address is random, it most likely doesn't exist, which could be reason for Google's smtp server to reject the message or to deliver it to spam. Also, the reverse DNS for 84.200.17.58 does not resolve to secure.superhost.gr, which could also be reason to reject the message. On Sun,

Tryign to send mail via a python script by using the local MTA

2013-09-15 Thread Ferrous Cranus
try: # prepare mail data FROM = random_char(10) + '@' + random_char(10) + '.com' TO = "nikos.gr...@gmail.com" SUBJECT = random_char( 50 ) MESSAGE = random_char( 500 ) os.system( "echo %s | mailx -v -r %s -s %s %s" %