[Openmcl-devel] Cl-smtp and gmail

Gary Palter palter at clozure.com
Sun Feb 23 17:15:59 PST 2020


Try adding :SSL T to you call to CL-SMTP:SEND-MAIL.

  - Gary
    Clozure Associates



> On Feb 23, 2020, at 7:53 PM, Mark Klein <m_klein at mit.edu> wrote:
> 
> 
> Hi,
> 
> I’d like to use cl-smtp to send emails using the gmail smtp server. This is my function:
> 
> (defun sm (&key from to (subject "") (message "") test)
>   (declare (ignore from test))
>   (cl-smtp:send-email "smtp.gmail.com <http://smtp.gmail.com/>" "kleinmark50 at gmail.com <mailto:kleinmark50 at gmail.com>" to subject message 
>                       :port 587 
>                       :html-message message
>                       :authentication `(:login "kleinmark50 at gmail.com <mailto:kleinmark50 at gmail.com>” ,*password*)))
> 
> This is the error message:
> 
> > Error: #<NO-SUPPORTED-AUTHENTICATION-METHOD SMTP authentication has been requested, but the SMTP server did not advertise any supported authentication scheme.  Features announced: "SIZE 35882577", "8BITMIME", "STARTTLS", "ENHANCEDSTATUSCODES", "PIPELINING", "CHUNKING", "SMTPUTF8">
> > While executing: CL-SMTP::SMTP-AUTHENTICATE, in process Listener(4).
> 
> Any suggestions how I can fix this? Is the port or authentication type incorrect? Does cl-smtp support the kind of authentication that gmail requires (cl-smtp works for other email servers)? Is there some other smtp client library I should use instead?
> 
> This probably not specifically a CCL-specific issue, sorry about that, but you guys have been super-helpful with my other questions so I hope you can weigh in.
> 
>     Thanks!
> 
> Mark
> 
> ----------------------
> Mark Klein, PhD
> Principal Research Scientist
> Massachusetts Institute of Technology
> http://cci.mit.edu/klein/ <http://cci.mit.edu/klein/>
> 
> 
> 
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> https://lists.clozure.com/mailman/listinfo/openmcl-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20200223/d9d0f55f/attachment.htm>


More information about the Openmcl-devel mailing list