From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: D P Schreber Newsgroups: gmane.emacs.help Subject: Re: How to send a mail using smtp? Date: 19 Dec 2004 13:08:50 GMT Message-ID: <32lcr2F2g1p01U1@individual.net> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1103461864 23592 80.91.229.6 (19 Dec 2004 13:11:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 19 Dec 2004 13:11:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 19 14:10:31 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 1Cg0pE-0005up-00 for ; Sun, 19 Dec 2004 14:10:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cg0zS-0006qc-U9 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Dec 2004 08:20:50 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-X-Trace: individual.net IT4ebhMLaqbzgl8/wUbPswkdMthC4Cbl92J9QUWLvBvgUA9/cX User-Agent: slrn/0.9.8.1 (Darwin) Original-Xref: shelby.stanford.edu gnu.emacs.help:127413 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:22860 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22860 On 2004-12-19, Jack@mail.org wrote: > Can you tell me how to config my emacs to send mail by using smtp? You mean by using a remote smtp server? The following works for me: (setq send-mail-function 'smtpmail-send-it message-send-mail-function 'smtpmail-send-it smtpmail-default-smtp-server "your.smtp.server.here" smtpmail-smtp-service "smtp" sendmail-program "MAIL_NOT_SENT" smtpmail-debug-info nil) (load-library "smtpmail") where you would of course replace "your.smtp.server.here" with the name of your actual smtp server.