Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: dieter Newsgroups: comp.lang.python Subject: Re: Setting Return-Path in email Date: Tue, 24 May 2016 09:23:27 +0200 Lines: 15 Message-ID: References: <69c455ff-0fbd-42a5-a3fb-4ad0b89ed48e@googlegroups.com> <87d1ob2a34.fsf@handshake.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.uni-berlin.de m7++BcsqnXzhaIX7v5vakgWU8FabCqfgj3gdB4WFQvNw== Cancel-Lock: sha1:KthI4t9r6zLbxEAiafrS3IdbO6E= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'paths': 0.05; 'overridden': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'received:t-ipconnect.de': 0.16; 'defined': 0.23; 'header': 0.24; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'specify': 0.27; 'code': 0.30; 'usually': 0.33; 'add': 0.34; 'path': 0.35; 'protocol': 0.35; 'level': 0.35; 'there': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'two': 0.37; 'received:org': 0.37; 'charset :us-ascii': 0.37; 'associated': 0.38; 'reports': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'your': 0.60; 'different': 0.63; '"from:"': 0.84; 'replies.': 0.84; 'subject:Setting': 0.96 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: p57b39b0b.dip0.t-ipconnect.de User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <87d1ob2a34.fsf@handshake.de> X-Mailman-Original-References: <69c455ff-0fbd-42a5-a3fb-4ad0b89ed48e@googlegroups.com> Xref: csiph.com comp.lang.python:109047 ragav s writes: > How can i add different Return-path and fromid in python.i have pasted the below code for preview Note that there are two different return paths associated with an email exchange: one on the protocol level (SMPT - RFC821); the other at the message level. The one on the protocol level is used for reports about delivery problems; the one at the message level is used for replies. You specify the protocol level return path as "from_addr" in your call to "smpt.sendmail". The message level return path is usually defined by the "from:" message header and can be overridden by the "reply-to" message header.