Re: [racket-users] Re: Examples of sending HTML email w/ Racket?

2021-07-31 Thread write2mark1
made some changes removed need for axio-env.rkt, but i am still unable
to send email
so here follows a #warning noob email question, assuming the smtp
server name password and settings are right is there any reason
http://pastie.org/p/0CduaNLM67JpE7nk9I6vDx/raw does not  work . Can
anyone point me to some working examples if possible?

 source of program
https://www.mail-archive.com/racket-users@googlegroups.com/msg43840.html


On Sat, Jul 31, 2021 at 9:41 AM mark M  wrote:
>
> (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 "
>> ;;   '("Barney Rubble ")
>> ;;   "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.

-- 
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/CAE5rLuLT%2BLmxHVjGJ83wA-FEDY_rKY_hc42Pv-CiJptgo6tJMA%40mail.gmail.com.


[racket-users] Re: Examples of sending HTML email w/ Racket?

2021-07-31 Thread mark M
(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 "
> ;;   '("Barney Rubble ")
> ;;   "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.


Re: [racket-users] Re: Re-entrant parameterize modification isolation when using shift/reset

2021-07-31 Thread Matthew Flatt
At Fri, 30 Jul 2021 12:56:37 -0700 (PDT), Greg Rosenblatt wrote:
> Is the `parameter * thread * parameterization -> box` part implemented as 
> something like a global weak-hash, or is it built directly into the stack 
> representation?

A parameter holds a key and a thread cell, where the thread cell is
used if the parameter hasn't been `parameterized`. The key is used to
look for a thread cell in a parameterization that's found as a
continuation marks. A thread cell is basically a mutable emphemeron
hash that maps threads to values, plus a default value to use if
there's no mapping for a thread.

So, you probably want something similar, except probably using the key
to look up a continuation mark instead of the parameterization
indirection, and then using "resume cells" instead of "thread cells".

-- 
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/20210731093608.bf%40sirmail.smtps.cs.utah.edu.


Re: [racket-users] Ubuntu PPA also updated to v8.2

2021-07-31 Thread Joseph Turco
No rush! Just thought I'd let people know. Thanks for your work.

Regards,

Joseph Turco

Jul 31, 2021 9:03:08 AM David Bremner :

> Joseph Turco  writes:
> 
>> So I tried installing racket 8.2 from the experimental repos
>> (downloaded it) and the dependencies (newer version of libc6) will
>> break some things. So install at your own risk. I'll stick with 7.2
>> for now.
> 
> Yes, I should have mentioned those packages only work with a debian
> testing/unstable install. I will make backports after the next debian
> stable release (hopefully in a few weeks).
> 
> d

-- 
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/109502c0-6432-4831-9d8e-dfaa4a0a604d%40gmail.com.


Re: [racket-users] Ubuntu PPA also updated to v8.2

2021-07-31 Thread David Bremner
Joseph Turco  writes:

> So I tried installing racket 8.2 from the experimental repos
> (downloaded it) and the dependencies (newer version of libc6) will
> break some things. So install at your own risk. I'll stick with 7.2
> for now.

Yes, I should have mentioned those packages only work with a debian
testing/unstable install. I will make backports after the next debian
stable release (hopefully in a few weeks).

d

-- 
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/87lf5m3aba.fsf%40tethera.net.