From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tim McNamara 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 13:12:20 -0600 Organization: ipHouse 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 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103656484 10963 80.91.229.6 (21 Dec 2004 19:14:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Dec 2004 19:14:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 21 20:14:34 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 1CgpSr-0007HO-00 for ; Tue, 21 Dec 2004 20:14:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CgpdM-0005CH-Ii for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Dec 2004 14:25:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wns13feed!worldnet.att.net!199.218.7.141!news.glorb.com!green.octanews.net!news-out.octanews.net!brown.iphouse.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) Cancel-Lock: sha1:/Ym6RArZ+mvDkT7ihy/CxuOIHIY= Original-Lines: 31 Original-NNTP-Posting-Date: 21 Dec 2004 13:12:21 CST Original-X-Complaints-To: abuse@iphouse.net Original-Xref: shelby.stanford.edu gnu.emacs.help:127451 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:22900 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22900 Duane Winner writes: > 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". > Any ideas? Try this in your .emacs or .gnus: (setq user-full-name "Duane Winner") (setq user-mail-address "duanewinner@att.net) Also, for authenticated SMTP, I use (obfuscated to protect the innocent): (add-to-list 'gnus-secondary-select-methods '(nnml "")) (eval-after-load "mail-source" '(add-to-list 'mail-sources '(pop :server "pop.myisp.com" :user "my-email@address" :password "mypassword"))) (require 'smtpmail) (setq send-mail-function 'smtpmail-send-it) (setq message-send-mail-function 'smtpmail-send-it) (setq smtpmail-smtp-server "smtp.myserver.com") (setq smtpmail-local-domain "myisp.tld") (setq smtpmail-queue-mail nil) (setq smtpmail-debug-info nil) (setq smtpmail-auth-credentials '(("smtp.myserver.com" 25 "myusername" "mypassword"))) Which seems to work just dandy.