[racket] how to use ``smtp-send-message''?

From: Kejia柯嘉 (w.kejia at gmail.com)
Date: Wed May 8 20:39:03 EDT 2013

hello all,

i am trying to use ``smtp-send-message" to send emails via gmail. my
code is following:
``
#! /usr/local/bin/racket

#lang racket

(require net/head net/smtp)

(smtp-send-message
 "smtp.gmail.com"
 "w1 <theuser at gmail.com>"
 '("w2 <w2 at hotmail.com>")
 (standard-message-header
  "w1 <theuser at gmail.com>"
  '("w2 <w2 at hotmail.com>")
  '() ; CC
  '() ; BCC
  "Subject")
 '("Hello World!")
 #:port-no 587
 #:auth-user "theuser at gmail.com"
 #:auth-passwd "theauthpassword")
''
the code does not work. the similar config works for a python program.
anyone knows how to do this job with racket?

----------------------
daniel

☵☯☲


Posted on the users mailing list.