unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: numbchild@gmail.com
Cc: emacs-help <help-gnu-emacs@gnu.org>
Subject: Re: How to set proxy for smtpmail.el ?
Date: Mon, 20 Jul 2020 10:57:59 +0200	[thread overview]
Message-ID: <m2lfjepnqg.fsf@gmail.com> (raw)
In-Reply-To: <CAL1eYuLe-uzF=+b++42wj+PKmkZ=KaZd0MoQ3akGKnTUHFFKqg@mail.gmail.com> (numbchild@gmail.com's message of "Mon, 20 Jul 2020 10:50:39 +0800")

>>>>> On Mon, 20 Jul 2020 10:50:39 +0800, "numbchild@gmail.com" <numbchild@gmail.com> said:

    stardiviner> I'm unable to send email with smtpmail.el
    stardiviner> I think it might be because of the internet censorship firewall in China.
    stardiviner> So I decided to use a proxy for smtpmail. I have not found the smtpmail
    stardiviner> options for setting proxy. Then I dive into `smtpmail-send-it` function
    stardiviner> source code. Found it uses `open-network-stream` to send email. Then the
    stardiviner> question is then how to set a proxy for `open-network-stream`? I checked
    stardiviner> this function's arguments. No result.

SMTP via a proxy sounds like a bad idea: you give the proxy access to
all your email. Having said that, thereʼs a socks.el which contains
'socks-open-network-stream' that might work for you. Iʼve not tried it
myself.

Robert



  reply	other threads:[~2020-07-20  8:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-20  2:50 How to set proxy for smtpmail.el ? numbchild
2020-07-20  8:57 ` Robert Pluim [this message]
2020-07-20 18:23   ` Dmitry Alexandrov
2020-07-20 18:26 ` Dmitry Alexandrov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2lfjepnqg.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=numbchild@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).