(require "./axio-env.rkt") 

is this part of emailing program? as i am unable to install axio env 

raco pkg install g...@github.com:AxioFramework/axio.git
raco pkg install: invalid package source;
inferred package name includes disallowed characters
given: g...@github.com:AxioFramework/axio.git
mark@ll~ $ raco pkg install https://github.com:AxioFramework/axio.git
raco pkg install: invalid package source;
cannot parse URL
given: https://github.com:AxioFramework/axio.git
don't seem to work ; kindly help #noob




On Wednesday, April 8, 2020 at 9:54:48 AM UTC-7 br...@lojic.com wrote:

> I was able to write a simple wrapper around smtp-send-message and get it 
> working through SendGrid in a few minutes (see below), but I wasn't able to 
> find any examples of sending emails containing both a plain text version 
> and HTML version. Can anyone point me to some examples?
>
> Thanks,
> Brian Adkins
>
>
> #lang racket/base
>
> (require net/head
>          net/smtp
>          openssl
>          racket/contract)
> (require "./axio-env.rkt")
>
> ;; (module+ main
> ;;   (send-email "Fred Flintstone <fr...@example.com>"
> ;;               '("Barney Rubble <bar...@example.com>")
> ;;               "Test message subject"
> ;;               (list
> ;;                "Message line one"
> ;;                "line two"
> ;;                ""
> ;;                "line four")))
> (define/contract (send-email from to subject message-lines)
>   (-> string? (listof string?) string? (listof (or/c string? bytes?)) any)
>   (smtp-send-message smtp-server
>                      from
>                      to
>                      (standard-message-header from to '() '() subject)
>                      message-lines
>                      #:port-no     smtp-port
>                      #:auth-user   smtp-username
>                      #:auth-passwd smtp-password
>                      #:tls-encode  ports->ssl-ports))
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/221bf2b2-7ceb-4cba-b483-be2b71c35d0fn%40googlegroups.com.

Reply via email to