Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53559 > unrolled thread
| Started by | Ferrous Cranus <nikos@superhost.gr> |
|---|---|
| First post | 2013-09-03 10:48 +0300 |
| Last post | 2013-09-05 12:33 -0400 |
| Articles | 20 on this page of 45 — 13 participants |
Back to article view | Back to comp.lang.python
Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-03 10:48 +0300
Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-03 02:33 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-03 13:44 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-03 22:14 -0400
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-04 02:31 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 12:16 -0400
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 17:38 -0400
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 09:31 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Steven D'Aprano <steve@pearwood.info> - 2013-09-05 08:58 +0000
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 12:34 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 12:36 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Dave Angel <davea@davea.name> - 2013-09-05 10:33 +0000
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 13:48 +0300
Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 04:02 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 14:20 +0300
Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 05:18 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 15:36 +0300
Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 06:29 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 16:38 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 17:01 +0300
Re: Cannot form correctly the FORM part of the header when sending mail alex23 <wuwei23@gmail.com> - 2013-09-06 13:38 +1000
Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 08:00 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-05 18:59 +0300
Re: Cannot form correctly the FORM part of the header when sending mail feedthetroll@gmx.de - 2013-09-05 09:50 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-05 17:50 +0000
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-06 00:48 -0400
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-06 09:44 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-05 17:28 +0000
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-05 11:19 -0400
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-04 02:57 -0700
Re: Cannot form correctly the FORM part of the header when sending mail Dave Angel <davea@davea.name> - 2013-09-04 11:15 +0000
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-04 14:29 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Dave Angel <davea@davea.name> - 2013-09-04 12:21 +0000
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 12:22 -0400
Re: Cannot form correctly the FORM part of the header when sending mail Heiko Wundram <modelnine@modelnine.org> - 2013-09-04 14:18 +0200
Re: Cannot form correctly the FORM part of the header when sending mail Ferrous Cranus <nikos@superhost.gr> - 2013-09-04 17:29 +0300
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 13:33 -0400
Re: Cannot form correctly the FORM part of the header when sending mail Piet van Oostrum <piet@vanoostrum.org> - 2013-09-04 12:06 -0400
How to exit a cgi file after a download Ferrous Cranus <nikos@superhost.gr> - 2013-09-04 12:49 -0400
How to exit a cgi file after a download. inq1ltd <inq1ltd@inqvista.com> - 2013-09-04 14:44 -0400
Re: How to exit a cgi file after a download. Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-04 15:42 -0400
Re: How to exit a cgi file after a download. alex23 <wuwei23@gmail.com> - 2013-09-05 09:56 +1000
Re: How to exit a cgi file after a download random832@fastmail.us - 2013-09-04 16:23 -0400
Re: How to exit a cgi file after a download Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-09-04 13:51 -0700
Re: How to exit a cgi file after a download inq1ltd <inq1ltd@inqvista.com> - 2013-09-05 12:33 -0400
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
| From | alex23 <wuwei23@gmail.com> |
|---|---|
| Date | 2013-09-06 13:38 +1000 |
| Message-ID | <l0binu$g75$2@dont-email.me> |
| In reply to | #53711 |
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. > . . . message not sent. > Missing "nss-config-dir" variable. > . . . message not sent. > Missing "nss-config-dir" variable. > . . . message not sent. > > is what iam receivign as error output You haven't set the configuration value 'nss-config-dir'. You're welcome.
[toc] | [prev] | [next] | [standalone]
| From | feedthetroll@gmx.de |
|---|---|
| Date | 2013-09-05 08:00 -0700 |
| Message-ID | <948e61a7-5b72-4ab9-a234-ce304344165a@googlegroups.com> |
| In reply to | #53709 |
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:
>> To send mails you need a "smtp-server" (MTA - Mail Transfer Agent,
>> Message Transport Agent) like postfix, exim, sendmail, ...
>>
>> DoveCot is good for "reading" mail (="mailbox management", "pop3(s)",
>> "imap(s)"). You cannot send mails using DoveCot. (You can use a
>> WebMailService to access DoveCot for reading and a MTA for sending mails.)
>>
>> So you have to find out, which MTA you installed (you have root access,
>> don't you) and configure it.
>>
>> But this is (like so often) becoming extremely offtopic.
>
> i as root just inatslled
>
> sendmail and mailx. i have edited the ~/.mailrc to use:
>
> nikos@superhost.gr [~/www/cgi-bin]# cat ~/.mailrc
> account gmail {
> set smtp-use-starttls
> set smtp=smtp://smtp.gmail.com:587
> set smtp-auth=login
> set smtp-auth-user=may)gmail
> set smtp-auth-password=my_gmail_pass_not_stupid_enough_to_wite _it_again
> }
Don't use gmail. Gmail is the cause of your problem. As long as you use it (whatever way you use) the problem will persist. USE YOUR SENDMAIL.
> And now i'm trying to:
> cmd = "echo %s | mailx -A gmail -r %s -s %s %s" % (MESSAGE, FROM,
> SUBJECT, TO)
> p=subprocess.Popen( cmd, shell=True, stdout=subprocess.PIPE )
> output, errors = p.communicate()
> print( errors, output )
DONT INVOKE THIS VIA PYTHON. Use the shell. If it works there, you can try it with python.
> Any ideas please why this fails to work?
> while i remove the '-A gmail' string in the cmd line then i can send
> fast mail but only to mail containing the @superhost.gr trail.
> i need to be eble to send to external mails to.
THIS IS NOT A SENDMAIL LIST!
Solve your sendmail-problem and then, if it still does not work from python come back with a smart question.
FUP: comp.mail.sendmail
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos@superhost.gr> |
|---|---|
| Date | 2013-09-05 18:59 +0300 |
| Message-ID | <l0a9pe$sjh$2@dont-email.me> |
| In reply to | #53716 |
Στις 5/9/2013 6:00 μμ, ο/η feedthetroll@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 script.
>>> OK, I should have been more exact:
>>> To send mails you need a "smtp-server" (MTA - Mail Transfer Agent,
>>> Message Transport Agent) like postfix, exim, sendmail, ...
>>>
>>> DoveCot is good for "reading" mail (="mailbox management", "pop3(s)",
>>> "imap(s)"). You cannot send mails using DoveCot. (You can use a
>>> WebMailService to access DoveCot for reading and a MTA for sending mails.)
>>>
>>> So you have to find out, which MTA you installed (you have root access,
>>> don't you) and configure it.
>>>
>>> But this is (like so often) becoming extremely offtopic.
>>
>> i as root just inatslled
>>
>> sendmail and mailx. i have edited the ~/.mailrc to use:
>>
>> nikos@superhost.gr [~/www/cgi-bin]# cat ~/.mailrc
>> account gmail {
>> set smtp-use-starttls
>> set smtp=smtp://smtp.gmail.com:587
>> set smtp-auth=login
>> set smtp-auth-user=may)gmail
>> set smtp-auth-password=my_gmail_pass_not_stupid_enough_to_wite _it_again
>> }
> Don't use gmail. Gmail is the cause of your problem. As long as you use it (whatever way you use) the problem will persist. USE YOUR SENDMAIL.
>
>> And now i'm trying to:
>> cmd = "echo %s | mailx -A gmail -r %s -s %s %s" % (MESSAGE, FROM,
>> SUBJECT, TO)
>> p=subprocess.Popen( cmd, shell=True, stdout=subprocess.PIPE )
>> output, errors = p.communicate()
>> print( errors, output )
> DONT INVOKE THIS VIA PYTHON. Use the shell. If it works there, you can try it with python.
>
>> Any ideas please why this fails to work?
>> while i remove the '-A gmail' string in the cmd line then i can send
>> fast mail but only to mail containing the @superhost.gr trail.
>> i need to be eble to send to external mails to.
> THIS IS NOT A SENDMAIL LIST!
> Solve your sendmail-problem and then, if it still does not work from python come back with a smart question.
>
> FUP: comp.mail.sendmail
>
pok i will ask to sendmail list
but tell me please mailx and senmail are 2 differnt MTAs or mailx makes
use of sendmail MTA?
--
Webhost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | feedthetroll@gmx.de |
|---|---|
| Date | 2013-09-05 09:50 -0700 |
| Message-ID | <90899fa1-3680-41f3-9ed3-08fb752d3764@googlegroups.com> |
| In reply to | #53719 |
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 mails it uses the MTA.
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-09-05 17:50 +0000 |
| Message-ID | <5228c478$0$29988$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #53719 |
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
[toc] | [prev] | [next] | [standalone]
| From | Piet van Oostrum <piet@vanoostrum.org> |
|---|---|
| Date | 2013-09-06 00:48 -0400 |
| Message-ID | <m2eh92r1wf.fsf@cochabamba.vanoostrum.org> |
| In reply to | #53709 |
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 have the original
email address in the message: (1) so that you can see who sent the
message, (2) so that you can reply to the original sender.
Let's say that the from address was user@example.com
Problem 1 can be solved in two ways:
(a) Just put the email address in front of the subject line, like:
Subject: (From user@example.com) Original subject line
(b) This solution is a bit more tricky.
- Get a separate email address that you use for these messages, like
nikos@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. Make sure that Thunderbird DOES
NOT KNOW that this email address belongs to you (i.e. don't use this
email address for normal work). Gmail will send you a message to this
address to verify that it belongs to you so you must access it through
some other means, like a web interface.
- Now in the generated email you put the original sender in the comment
and your new email address as the real address like:
From: "user@example.com" <nikos@hotmail.com>
Because Thunderbird doesn't know nikos@hotmail.com it will display the
other one, user@example.com. Make sure that the email address doesn't
contain a quote character. Better still check that only legal characters
are used.
Problem 2 can easily be solved by adding a Reply-To header with the
original from address. Gmail will not change this.
So the code becomes something like:
MESSAGE = "From: \"{0}\" <nikos@hotmail.com>\r\n" "Reply-To: {0}\r\n" "To: {1}\r\n" "Subject: (From {0}) {2}\r\n\r\n{3}\r\n".format(FROM, TO, SUBJECT, MESSAGE)
In my opinion a better solution would be to filter your mesaage through
procmail or similar on your receiving computer. For example put the from
address in an X-From header and let the filter replace the From header
with the address from the X-From.
--
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos@superhost.gr> |
|---|---|
| Date | 2013-09-06 09:44 +0300 |
| Message-ID | <l0btkn$puc$1@dont-email.me> |
| In reply to | #53764 |
Στις 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.
Hello Piet,
I'am not sure what you mean by registering a mail address with GMail.
Do you mean to add more that one mail account addresses within my GMail
account?
If you mean that i must tell you that in the pop settinsg inside my
gmail.com account i use nikos@superhost.gr and nikos@ath.forthnet.gr as
other sending nad retrival mail accounts.
Is this what you mean?
> So the code becomes something like:
> MESSAGE = "From: \"{0}\" <nikos@hotmail.com>\r\n" "Reply-To: {0}\r\n" "To: {1}\r\n" "Subject: (From {0}) {2}\r\n\r\n{3}\r\n".format(FROM, TO, SUBJECT, MESSAGE)
If you mean the above then i just have tried, but still not mail gets send.
MESSAGE = "From: \"{0}\" <nikos@ath.forthnet.gr>\r\n" "Reply-To:
{0}\r\n" "To: {1}\r\n" "Subject: (From {0}) {2}\r\n\r\n{3}\r\n".format(
FROM, TO, SUBJECT, MESSAGE )
MESSAGE = MESSAGE.encode('utf-8')
# open Gmail's SMTP server
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
# next, log in to the server
server.login("my_personal@gmail.com", "my_password")
Please elaborate further, thank you.
--
Webhost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2013-09-05 17:28 +0000 |
| Message-ID | <5228bf44$0$29988$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #53686 |
On Thu, 05 Sep 2013 12:36:57 +0300, Ferrous Cranus wrote:
> nikos@superhost.gr [~]# cat /tmp/err.out sendmail => 13-09-05 12:20:53
> (<class 'TypeError'>, TypeError("sendmail() missing 2 required
> positional arguments: 'to_addrs' and 'msg'",), <traceback object at
> 0x7f3fb4f44488>) nikos@superhost.gr [~]#
>
> but all of the needed args are within MESSAGE. Cant it take it from
> there?
Obviously not. If it could, it would.
--
Steven
[toc] | [prev] | [next] | [standalone]
| From | Piet van Oostrum <piet@vanoostrum.org> |
|---|---|
| Date | 2013-09-05 11:19 -0400 |
| Message-ID | <m2r4d3qosw.fsf@cochabamba.vanoostrum.org> |
| In reply to | #53685 |
Ferrous Cranus <nikos@superhost.gr> 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.sendmail( MESSAGE ) > > both fail. The first thing you should do then is to look up the documentation of sendmail. http://docs.python.org/ has a good index where you can look for sendmail. -- Piet van Oostrum <piet@vanoostrum.org> WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4]
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos.gr33k@gmail.com> |
|---|---|
| Date | 2013-09-04 02:57 -0700 |
| Message-ID | <31119ff9-f3ff-4eba-99eb-5b0d85f94008@googlegroups.com> |
| In reply to | #53588 |
Τη Τετάρτη, 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 probably see that the proper From address is > there. i used retrieval of 'nikosatsuperhost.gr' within GMail's service. Same way of dispalyment there too. > The problem is that Gmail inserts a "Sender" header with your account > (email address) and certain Microsoft programs use that to display as > the From address instead of the real From address. I think it's logical to act that way. 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 poster posts in a html webform hwich can be totally fake, i.e. jackass@hahaha.com I believe any kind of mail client will be have this way. We need some way to dicth the Sender FROM string or alter it to the one uses in the webform.
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2013-09-04 11:15 +0000 |
| Message-ID | <mailman.37.1378293335.5461.python-list@python.org> |
| In reply to | #53613 |
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 development???? In any case, Thunderbird has te ability to display the actual message received. See menu: View->MessageSource > >> If yes, then it is the fault of that program. Read the mail in some >> other program and you will probably see that the proper From address is >> there. > > i used retrieval of 'nikosatsuperhost.gr' within GMail's service. > > Same way of dispalyment there too. > > >> The problem is that Gmail inserts a "Sender" header with your account >> (email address) and certain Microsoft programs use that to display as >> the From address instead of the real From address. > > I think it's logical to act that way. > > 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 poster posts in a html webform hwich can be totally fake, i.e. jackass@hahaha.com > > I believe any kind of mail client will be have this way. > We need some way to dicth the Sender FROM string or alter it to the one uses in the webform. -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos@superhost.gr> |
|---|---|
| Date | 2013-09-04 14:29 +0300 |
| Message-ID | <l075ib$se0$1@dont-email.me> |
| In reply to | #53615 |
Στις 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???? > > In any case, Thunderbird has te ability to display the actual message > received. See menu: > View->MessageSource > I meant i'm using ThunderBird and not Outlook Express. I doesn't matter what the mail headers say but the actual presentation of the email which state always that it was sent by my personal GMail address and not from the mail address that was posted int he webform -- Webhost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Dave Angel <davea@davea.name> |
|---|---|
| Date | 2013-09-04 12:21 +0000 |
| Message-ID | <mailman.40.1378297330.5461.python-list@python.org> |
| In reply to | #53617 |
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. >> When did Microsoft take over Thunderbird's development???? >> >> In any case, Thunderbird has te ability to display the actual message >> received. See menu: >> View->MessageSource >> > > I meant i'm using ThunderBird and not Outlook Express. > > I doesn't matter what the mail headers say but the actual presentation > of the email which state always that it was sent by my personal GMail > address and not from the mail address that was posted int he webform > One way to distinguish a bug in the python logic and in gmail, from a bug in the mail reader is to examine the message source. Others may be able to guess what it looks like, but I cannot. -- DaveA
[toc] | [prev] | [next] | [standalone]
| From | Piet van Oostrum <piet@vanoostrum.org> |
|---|---|
| Date | 2013-09-04 12:22 -0400 |
| Message-ID | <m2li3cv9oi.fsf@cochabamba.vanoostrum.org> |
| In reply to | #53613 |
Ferrous Cranus <nikos.gr33k@gmail.com> 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 poster posts in a html webform hwich can be > totally fake, i.e. jackass@hahaha.com No, it's not, as I explained. Gmail uses the From address that you specified, but added the Sender header with your Gmail account in it. Now your email agent usesdisplays the Sender address as the From, which is misleading. > I believe any kind of mail client will be have this way. No, my mail client doesn'tdo that. > We need some way to dicth the Sender FROM string or alter it to the > one uses in the webform. You cannot ditch the Send from the sent email, as this is something Gmail automatically provides. Maybe as some kind of spam detector, which is reasonable. Actually providing the Sender in situations like this is what the RFC requires, so Gmail is totally, completely correct in doing this. The problem is completely on the receiving side, but Dave has told you how to solve it. -- Piet van Oostrum <piet@vanoostrum.org> WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4]
[toc] | [prev] | [next] | [standalone]
| From | Heiko Wundram <modelnine@modelnine.org> |
|---|---|
| Date | 2013-09-04 14:18 +0200 |
| Message-ID | <mailman.41.1378297525.5461.python-list@python.org> |
| In reply to | #53559 |
-----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.
- --
- --- Heiko.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSJyUuAAoJEDMqpHf921/SksoIAJyFyYDN9zj/SypXERj+W1wK
fRuby0EyfWWMQayJ7SlbiSUzK3OF1ZVxO5s3WqGdXWI2WhXrrZbltuMyHedlBcqy
Dl9F1MtpItg01weICAYJCNcTNm649PCAuc47zbGahE7tDeJwU9xNlgEgXfnpx+eX
RvtyYAJlYnz5MTfftYZS9AxxEbaA+k5TNHcVE+5m3YX3Uno6rW+T19H4z4wC374K
MHxN4jS+z/qaZ+fDIkK6Uq8aRC5PA9pI37iTD5dJFikKugcp/9AqssnsEUkhMAGV
dcGPJnI1tiGrSLY6Q8q31DpkAlO79ETA4ag0yGvnjtmR/ZZjENlb2Ikls7JOA9Y=
=JDjl
-----END PGP SIGNATURE-----
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos@superhost.gr> |
|---|---|
| Date | 2013-09-04 17:29 +0300 |
| Message-ID | <l07g56$lcv$4@dont-email.me> |
| In reply to | #53623 |
Στις 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 Heiko,
You mean to ditch Google's SMTP server and use 'mail.superhost.gr' ?
Are you sure the same thing wont happen there too?
--
Webhost <http://superhost.gr>
[toc] | [prev] | [next] | [standalone]
| From | Piet van Oostrum <piet@vanoostrum.org> |
|---|---|
| Date | 2013-09-04 13:33 -0400 |
| Message-ID | <m2hae0v6do.fsf@cochabamba.vanoostrum.org> |
| In reply to | #53628 |
Ferrous Cranus <nikos@superhost.gr> 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 you've
>> authenticated as.
>
> Hello Heiko,
>
> You mean to ditch Google's SMTP server and use 'mail.superhost.gr' ?
>
> Are you sure the same thing wont happen there too?
>
Just try it. In your email program, let it show all headers. Or if you don't trust that, just let the mail be sent to me. I can see exactly how it is.
--
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
[toc] | [prev] | [next] | [standalone]
| From | Piet van Oostrum <piet@vanoostrum.org> |
|---|---|
| Date | 2013-09-04 12:06 -0400 |
| Message-ID | <m2wqmwvae8.fsf@cochabamba.vanoostrum.org> |
| In reply to | #53623 |
Heiko Wundram <modelnine@modelnine.org> 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 you. Only it adds the "Sender" header with your
email address.
The Sender field is to be used when the message is sent by another
person than the author of the message. For example when John@example.com
writes an email, but the actual sending of the email is done by his
secretary Charles@example.com, the following headers should be present.
From: John@example.com Sender: Charles@example.com
The mail agent should display John as the originator of the email, and
replies should go to him, unless the user chooses differently. However,
when there is an error in the transmission, error messages should go to
Charles.
At least that is what the RFC's say. And I think that is the logical way
to do it. Now some Microsoft mail programs will send replies to Charles,
which is incorrect.
--
Piet van Oostrum <piet@vanoostrum.org>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
[toc] | [prev] | [next] | [standalone]
| From | Ferrous Cranus <nikos@superhost.gr> |
|---|---|
| Date | 2013-09-04 12:49 -0400 |
| Subject | How to exit a cgi file after a download |
| Message-ID | <mailman.52.1378315671.5461.python-list@python.org> |
| In reply to | #53623 |
Python help.
I use the following code in a cgi file
to give the client a download link to
download a file.
---
print "%s" % ('<a href = "Setup.zip"> Down
Load </a>')
----
A click on "Down Load" opens a pop up browser
window which allows the user to choose where
to download the "Setup.zip" file, then after
the download, the pop up window closes.
My problem is that I want the cgi form, which
contains the link, to also close after the
download. The only way I can figure out to
close the cgi window is to give the user a
button to close it.
Without closing it, the client can download
again and forever if they choose to because
the cgi window is open and the link is still
active.
I am trying to find a way to close the cgi
file or call another file after the download
without adding a close button and asking the
client to close the window.
jd
[toc] | [prev] | [next] | [standalone]
| From | inq1ltd <inq1ltd@inqvista.com> |
|---|---|
| Date | 2013-09-04 14:44 -0400 |
| Subject | How to exit a cgi file after a download. |
| Message-ID | <mailman.55.1378322379.5461.python-list@python.org> |
| In reply to | #53623 |
Python help.
I use the following code in a cgi file
to give the client a download link to
download a file.
---
print "%s" % ('<a href = "Setup.zip"> Down
Load </a>')
----
A click on "Down Load" opens a pop up browser
window which allows the user to choose where
to download the "Setup.zip" file, then after
the download, the pop up window closes.
My problem is that I want the cgi form, which
contains the link, to also close after the
download. The only way I can figure out to
close the cgi window is to give the user a
button to close it.
Without closing it, the client can download
again and forever if they choose to because
the cgi window is open and the link is still
active.
I am trying to find a way to close the cgi
file or call another file after the download
without adding a close button and asking the
client to close the window.
jd
[toc] | [prev] | [next] | [standalone]
Page 2 of 3 — ← Prev page 1 [2] 3 Next page →
Back to top | Article view | comp.lang.python
csiph-web