From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bob Babcock Newsgroups: gmane.emacs.help Subject: Re: How to send a mail using smtp? - solved! (but need help with "Mail From:") Date: Tue, 21 Dec 2004 19:28:16 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: References: <32lcr2F2g1p01U1@individual.net> <32lid1F3nq6ivU1@individual.net> <41C74C31.8040305@att.net> <0hXxd.16785$uM5.7110@bgtnsc05-news.ops.worldnet.att.net> <2h_xd.17273$uM5.13591@bgtnsc05-news.ops.worldnet.att.net> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1103657378 13514 80.91.229.6 (21 Dec 2004 19:29:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2004 19:29:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 20:29:25 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CgphF-00005m-00 for ; Tue, 21 Dec 2004 20:29:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cgprl-0007Rq-79 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2004 14:40:17 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!0053d051!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Xnews/06.07.17 Original-Lines: 29 Original-NNTP-Posting-Host: 66.167.185.10 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread2.news.atl.earthlink.net 1103657296 66.167.185.10 (Tue, 21 Dec 2004 11:28:16 PST) Original-NNTP-Posting-Date: Tue, 21 Dec 2004 11:28:16 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:127453 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22902 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22902 Duane Winner wrote in news:2h_xd.17273$uM5.13591@bgtnsc05-news.ops.worldnet.att.net: > 6. So now my only problem is controlling the "MAIL FROM:" and "From:" > fields so that they return "myispaccountname@myisp.domain.net" instead > of "mylocalaccountname@mylocalhost". There's probably a better way, but for a long time I have been using the following hook to insert the From: and Reply-to: lines. (Note that I'm doing this in emacs 20.7. My ISP isn't yet _requiring_ authenticated smtp, so while I've gotten it to work in 21.3, I haven't moved everything else to that version yet.) (add-hook 'mail-setup-hook (function (lambda () (setq fill-column 77) (turn-on-auto-fill) (save-excursion (progn (goto-char (point-min)) (forward-line 1) (insert "From: My Name \n"))) (save-excursion (progn (goto-char (point-max)) (forward-line -1) (insert "Reply-to: username@domain.net\n"))) (setq tab-width 8))))