[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Automatically selecting an SMTP server.
From: |
Oliver Jennrich |
Subject: |
Re: Automatically selecting an SMTP server. |
Date: |
Tue, 29 Jun 2004 17:39:22 -0000 |
User-agent: |
Gnus/5.1001 (Gnus v5.10.1) XEmacs/21.4 (Portable Code, cygwin32) |
* Jesper Harder writes:
> Oliver Jennrich <oliver.jennrich@gmx.net> writes:
>> I was thinking along the lines of abusing message-send-hook, but I
>> have no idea how to find the current IP-number in lisp.
> I think there is a way in the development version of Emacs now. That
> doesn't help you since you'r using XEmacs.
> But if Lisp doesn't provide it, then you need to figure out some
> external command to run.
Indeed. This is not much of a problem...
> I use the following to get the current IP of my box:
> (defun smtpmail-fqdn ()
> (let ((str (shell-command-to-string "/sbin/ifconfig ppp0")))
and that helps a lot!
Thanks
--
Space - the final frontier