Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 6/9/2013 7:48 πμ, ο/η Piet van Oostrum έγραψε: hotmail.com. Register this as one of your email addresses in gmail. For this it must be a real email address that belongs to you, not a fake address. When it is registered with gmail, gmail will not change it if found in a From header.

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Piet van Oostrum
Nikos, if you can't use the smtp server at mail.superhost.gr, or if that has the same restrictions I may have a solution for you. This is a bit off-topic on the Python list/group, s I will throw in a line of Python code to make it on-topic :) I suppose you have the following reasons to want to hav

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread alex23
On 6/09/2013 12:01 AM, Ferrous Cranus wrote: Any ideas please why this fails to work? Missing "nss-config-dir" variable. . . . message not sent. Missing "nss-config-dir" variable. . . . message not sent. Missing "nss-config-dir" variable. . . . message not sent. Missing "nss-config-dir" variable

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 18:59:42 +0300, Ferrous Cranus wrote: > but tell me please mailx and senmail are 2 differnt MTAs or mailx makes > use of sendmail MTA? Nikos, I know you can write English better than that. Are you deliberately trying to look less intelligent? -- Steven -- https://mail.pyt

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 12:36:57 +0300, Ferrous Cranus wrote: > ni...@superhost.gr [~]# cat /tmp/err.out sendmail => 13-09-05 12:20:53 > (, TypeError("sendmail() missing 2 required > positional arguments: 'to_addrs' and 'msg'",), 0x7f3fb4f44488>) ni...@superhost.gr [~]# > > but all of the needed ar

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 17:59:42 UTC+2 schrieb Ferrous Cranus: > ok i will ask to sendmail list Take a look at: > but tell me please mailx and senmail are 2 differnt MTAs or mailx makes > use of sendmail MTA? mailx is a MUA (Mail User Agent) used to read and write mails. For sending mai

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Piet van Oostrum
Ferrous Cranus writes: > it just need the whole concatenation thing in parenthesis so to be > executed first but now: > > > # send the mail > server.sendmail( [ MESSAGE ] ) > > or > > # send the mail > server.

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 6:00 μμ, ο/η feedthetr...@gmx.de έγραψε: Am Donnerstag, 5. September 2013 15:38:25 UTC+2 schrieb Ferrous Cranus: Στις 5/9/2013 4:29 μμ, ο/η feedthetroll έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python scri

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 15:38:25 UTC+2 schrieb Ferrous Cranus: > Στις 5/9/2013 4:29 μμ, ο/η feedthetroll έγραψε: >>> uses DoveCot as enaled mail server but i have no idea how to >>> setip up to work. >>> i cannot connect to it via my python script. >> OK, I should have been more exact: >>

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 4:38 μμ, ο/η Ferrous Cranus έγραψε: Στις 5/9/2013 4:29 μμ, ο/η feedthetr...@gmx.de έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python script. OK, I should have been more exact: To send mails you need a "smtp-

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 4:29 μμ, ο/η feedthetr...@gmx.de έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python script. OK, I should have been more exact: To send mails you need a "smtp-server" (MTA - Mail Transfer Agent, Message Transp

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 14:36:19 UTC+2 schrieb Ferrous Cranus: > Στις 5/9/2013 3:18 μμ, ο/η feedthetroll έγραψε: >> Beeing serious: >> Which mailserver did you install? postfix, exim, sendmail, ...? >> Check that and read its dokumentation how to configure authentication. >> Then you can u

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 3:18 μμ, ο/η feedthetr...@gmx.de έγραψε: Beeing serious: Which mailserver did you install? postfix, exim, sendmail, ...? Check that and read its dokumentation how to configure authentication. Then you can use it. And if you get stuck: A python list is NOT THE RIGHT PLACE to ask ques

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 13:20:23 UTC+2 schrieb Ferrous Cranus: > Στις 5/9/2013 2:02 μμ, ο/η feedthetroll έγραψε: >>> Am 03.09.2013 09:48, schrieb Ferrous Cranus: Is there a workaround for that please? >>> Yes, use/setup your own mailserver. Google will not allow you to send >>> as ("i

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 2:02 μμ, ο/η feedthetr...@gmx.de έγραψε: Am 03.09.2013 09:48, schrieb Ferrous Cranus: Is there a workaround for that please? Yes, use/setup your own mailserver. Google will not allow you to send as ("i.e., From:") an arbitrary address besides the one you've authenticated as. And

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 12:48:54 UTC+2 schrieb Ferrous Cranus: > is there way to alter tha FROM field to the one used in the webform by > the visitor? Yes it ist. You did it in your code. But gmail alters it AFTER you. So again, you did not care to read / understand the answers you got.

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 1:33 μμ, ο/η Dave Angel έγραψε: On 5/9/2013 05:36, Ferrous Cranus wrote: ni...@superhost.gr [~]# cat /tmp/err.out sendmail => 13-09-05 12:20:53 (, TypeError("sendmail() missing 2 required positional arguments: 'to_addrs' and 'msg'",), ) ni...@superhost.gr [~]# but all of the n

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Dave Angel
On 5/9/2013 05:36, Ferrous Cranus wrote: > > > ni...@superhost.gr [~]# cat /tmp/err.out > sendmail => 13-09-05 12:20:53 (, > TypeError("sendmail() missing 2 required positional arguments: > 'to_addrs' and 'msg'",), ) > ni...@superhost.gr [~]# > > but all of the needed args are within MESSAGE. >

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 12:34 μμ, ο/η Ferrous Cranus έγραψε: Even though these examples are with ints, not strings, the precedence is the same. Go back to your code. Read your code. Does it look closer to this: 8 + 2 % 5 or this? (8 + 2) % 5 Can you solve this problem now? Yes Steven, according to

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Even though these examples are with ints, not strings, the precedence is the same. Go back to your code. Read your code. Does it look closer to this: 8 + 2 % 5 or this? (8 + 2) % 5 Can you solve this problem now? Yes Steven, according to your precedence example now i can: MESSAGE = ( "Fro

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 09:31:41 +0300, Ferrous Cranus wrote: [...] > UBJECT = u"SuperHost Guest Mail από τον [ %s ]" % FROM > > MESSAGE = "From: %s\n" + "To: %s\n" + "Subject: %s\n\n%s\n" % (FROM, TO, > SUBJECT, MESSAGE) > MESSAGE = MESSAGE.encode('utf-8') > > > but i still g

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Ferrous Cranus
Στις 4/9/2013 7:16 μμ, ο/η Piet van Oostrum έγραψε: Ferrous Cranus writes: I this hoq you mean? [...] SUBJECT = u"Mail από τον επισκέπτη: ( %s )" % FROM MESSAGE = "\nFrom: %s\r\n" + "To: %s\r\n"

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Piet van Oostrum
Piet van Oostrum writes: > Ferrous Cranus writes: > >> I this hoq you mean? > [...] >> >> SUBJECT = u"Mail από τον επισκέπτη: ( %s )" % FROM >> >> MESSAGE = "\nFrom: %s\r\n" + "To: %s\r\n" + "Subject: >> %s\r\

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Piet van Oostrum
Ferrous Cranus writes: > Στις 4/9/2013 3:18 μμ, ο/η Heiko Wundram έγραψε: >> Am 03.09.2013 09:48, schrieb Ferrous Cranus: >>> Si there a workaround for that please? >> Yes, use/setup your own mailserver. Google will not allow you to send >> as ("i.e., From:") an arbitrary address besides the one

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Piet van Oostrum
Ferrous Cranus writes: > I think it's logical to act that way. I think it is not, see my other post on this subject. > The real 'FROM' address that GMail uses to send mail from my 'mail.py' > to some recipient is my real GMail's account address, and not the FROM > address that any arbitrary po

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Piet van Oostrum
Ferrous Cranus writes: > I this hoq you mean? [...] > > SUBJECT = u"Mail από τον επισκέπτη: ( %s )" % FROM > > MESSAGE = "\nFrom: %s\r\n" + "To: %s\r\n" + "Subject: > %s\r\n\r\n" % ( FROM, [TO], SUBJECT ) +

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Piet van Oostrum
Heiko Wundram writes: > Am 03.09.2013 09:48, schrieb Ferrous Cranus: >> Si there a workaround for that please? > > Yes, use/setup your own mailserver. Google will not allow you to send > as ("i.e., From:") an arbitrary address besides the one you've > authenticated as. Actually, it does allow yo

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Ferrous Cranus
Στις 4/9/2013 3:18 μμ, ο/η Heiko Wundram έγραψε: Am 03.09.2013 09:48, schrieb Ferrous Cranus: Si there a workaround for that please? Yes, use/setup your own mailserver. Google will not allow you to send as ("i.e., From:") an arbitrary address besides the one you've authenticated as. Hello Hei

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Heiko Wundram
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 03.09.2013 09:48, schrieb Ferrous Cranus: > Si there a workaround for that please? Yes, use/setup your own mailserver. Google will not allow you to send as ("i.e., From:") an arbitrary address besides the one you've authenticated as. - -- - --- H

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Dave Angel
On 4/9/2013 07:29, Ferrous Cranus wrote: > Στις 4/9/2013 2:15 μμ, ο/η Dave Angel έγραψε: >>> Τη Τετάρτη, 4 Σεπτεμβρίου 2013 5:14:31 π.μ. UTC+3, ο χρήστης Piet van >>> Oostrum έγραψε: Where does it display that? Do you happen to read that mail in a Microsoft program? >>> yes. Thunderbird

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Ferrous Cranus
Στις 4/9/2013 2:15 μμ, ο/η Dave Angel έγραψε: Τη Τετάρτη, 4 Σεπτεμβρίου 2013 5:14:31 π.μ. UTC+3, ο χρήστης Piet van Oostrum έγραψε: Where does it display that? Do you happen to read that mail in a Microsoft program? yes. Thunderbird. When did Microsoft take over Thunderbird's development

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Dave Angel
On 4/9/2013 05:57, Ferrous Cranus wrote: > Τη Τετάρτη, 4 Σεπτεμβρίου 2013 5:14:31 π.μ. UTC+3, ο χρήστης Piet van Oostrum > έγραψε: > >> Where does it display that? >> Do you happen to read that mail in a Microsoft program? > > yes. Thunderbird. When did Microsoft take over Thunderbird's developm

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-04 Thread Ferrous Cranus
Τη Τετάρτη, 4 Σεπτεμβρίου 2013 5:14:31 π.μ. UTC+3, ο χρήστης Piet van Oostrum έγραψε: > Where does it display that? > Do you happen to read that mail in a Microsoft program? yes. Thunderbird. > If yes, then it is the fault of that program. Read the mail in some > other program and you will pro

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Piet van Oostrum
Ferrous Cranus writes: > Hello, > i have written the following snipper of code to help me send mail: > [snip] > # prepare mail data > TO = "ni...@superhost.gr" > > SUBJECT = u"Mail από τον επισκέπτη: ( %s )" % FROM > > MESSAGE = "From: %s\r\n" + "

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Ferrous Cranus
Στις 3/9/2013 12:33 μμ, ο/η feedthetr...@gmx.de έγραψε: Am Dienstag, 3. September 2013 09:48:13 UTC+2 schrieb Ferrous Cranus: Hello, i have written the following snipper of code to help me send mail: ... server.login("nikos.gr...@gmail.com", "..") HE DID IT AGAIN! The login wo

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread feedthetroll
Am Dienstag, 3. September 2013 09:48:13 UTC+2 schrieb Ferrous Cranus: > Hello, > i have written the following snipper of code to help me send mail: > ... > server.login("nikos.gr...@gmail.com", "..") HE DID IT AGAIN! The login works with the posted password! Nikos, you should chang

Cannot form correctly the FORM part of the header when sending mail

2013-09-03 Thread Ferrous Cranus
Hello, i have written the following snipper of code to help me send mail: = # if html form is submitted then send user mail #===