emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnus / message-send-mail-with-mailclient [patch]


From: Eli Zaretskii
Subject: Re: gnus / message-send-mail-with-mailclient [patch]
Date: Sat, 18 Mar 2006 12:36:27 +0200

> From: Reiner Steib <address@hidden>
> Cc: Eli Zaretskii <address@hidden>, address@hidden, address@hidden
> Date: Fri, 17 Mar 2006 18:10:44 +0100
> 
> How about the following?
> 
> --8<---------------cut here---------------start------------->8---
> (defun message-send-mail-function ()
>   "Return suitable value for the variable `message-send-mail-function'."
>   (cond ((and sendmail-program
>             (executable-find sendmail-program))
>        'message-send-mail-with-sendmail)
>       ((and (locate-library "smtpmail")
>             (require 'smtpmail)
>             smtpmail-default-smtp-server)
>        'message-smtpmail-send-it)
>       ((locate-library "mailclient")
>        'message-send-mail-with-mailclient)
>       (t
>        (lambda ()
>          (error "Don't know how to send mail.  Please customize 
> `message-send-mail-function'.")))))
> --8<---------------cut here---------------end--------------->8---

This is good, but I think using smtpmail by default is not the best
idea: it requires manual setup (at the very least, the SMTP server
address).  So I think mailclient should be used in preference to
smtpmail.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]