help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to send a mail using smtp? - solved! (but need help with "Mail F


From: Tim McNamara
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
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin)

Duane Winner <duanewinner@att.net> 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.


reply via email to

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