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

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

Re: Problem with TLS when sending emails


From: Robert Pluim
Subject: Re: Problem with TLS when sending emails
Date: Wed, 11 May 2022 15:44:00 +0200

>>>>> On Wed, 11 May 2022 15:28:18 +0200, Alessandro Bertulli 
>>>>> <alessandro.bertulli96@gmail.com> said:

    Alessandro> Hi all.
    Alessandro> I was trying to set up my Gmail configuration to send emails 
from
    Alessandro> Emacs. However, I encounter a problem with TLS.

    Alessandro> 1) I set up a file ~/.authinfo.gpg, where I put

    Alessandro> machine imap.gmail.com login alessandro.bertulli96@gmail.com 
password
    Alessandro> -pswd- port 993
    Alessandro> machine smtp.gmail.com login alessandro.bertulli96@gmail.com 
password
    Alessandro> -pswd- port 587

    Alessandro> Note that "-pswd-" is actually the 16 char long app password 
generated
    Alessandro> by Gmail, required to use external clients.

    Alessandro> 2) My init file contains

    Alessandro> (setq user-full-name "Alessandro Bertulli"
    Alessandro>       user-mail-address "alessandro.bertulli96@gmail.com")
    Alessandro> (setq smtpmail-smtp-server "smtp.gmail.com"
    Alessandro>       smtpmail-smtp-service 587
                                            ^^^

This is the 'submission' port, which listens on TCP only. You want
'smtps', which is 465, and supports TLS.

    Alessandro> What can it be? Is this the right way to send emails? Has any 
other had
    Alessandro> problems with Gmail?

I use 465 with gmail with no problems.

Robert
-- 



reply via email to

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