The axio-env.rkt file is part of the ToDo app I created for RacketCon. You 
can see the entire ToDo app here:

https://github.com/lojic/RacketCon2020/tree/master/TodoApp

In particular, axio-env.rkt is meant to live outside of source control 
because it has secrets. An example file, that would need to be renamed to 
axio-env.rkt is here:

https://github.com/lojic/RacketCon2020/blob/master/TodoApp/axio/example-axio-env.rkt

An example of sending an email can be found in the comment controller here:

https://github.com/lojic/RacketCon2020/blob/master/TodoApp/controllers/comment.rkt

Hope this helps a little.

Brian

On Saturday, July 31, 2021 at 12:41:33 PM UTC-4 [email protected] wrote:

> (require "./axio-env.rkt") 
>
> is this part of emailing program? as i am unable to install axio env 
>
> raco pkg install [email protected]:AxioFramework/axio.git
> raco pkg install: invalid package source;
> inferred package name includes disallowed characters
> given: [email protected]: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 [email protected] 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 <[email protected]>"
>> ;;               '("Barney Rubble <[email protected]>")
>> ;;               "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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/78b59360-6204-484e-8912-4a21b031fb26n%40googlegroups.com.

Reply via email to