Re: [racket-users] Want to send email with net/smtp. An error to fix.

2018-01-19 Thread Neil Van Dyke

James Platt wrote on 01/19/2018 12:27 PM:
in a properly configured (in my opinion) email client, a lot of HTML 
features will be disabled for security reasons, including such things 
as cookies, javascript and remote images... 


Agreed to all of that, and you also want to disable "non-remote" images, 
because exploits to the libraries that implement those are endless, and 
it's super-targetable remotely (you just type in the target's direct 
email address, or send to an unsanitized list they're on, from anywhere 
in the world, and chuckle to yourself). HTML and DOM processing 
implementations are not known to be as buggy as the 2D pixel map libraries.


(In the email client/MUA I've been wanting to write for years, and to 
which I alluded recently, when listing off some Racket project ideas... 
I'd actually also do an HTML-to-plain conversion from scratch, for 
security and other reasons.  A conversion is necessary because you can't 
just show the plain text of the MIME alternative content type, because 
it's often different/empty/missing, and the HTML represents the de facto 
canonical contents of the email.  In the meantime, Sylpheed and Claws 
have some security merits, but I'd try somewhat different approaches.)


--
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Want to send email with net/smtp. An error to fix.

2018-01-19 Thread James Platt
> 
> (And is the html thing really that big a deal?)
> 
> 
> It's likely that part of the reason they were caught in a spam trap was 
> because they were HTML and formatted with both very large font and half a 
> dozen different colors.  Also, as George points out, HTML formatting gets 
> fouled up far more easily than raw text.

Right.  The main point, for me, is the uncertainty that I'm seeing everything I 
should see.  in a properly configured (in my opinion) email client, a lot of 
HTML features will be disabled for security reasons, including such things as 
cookies, javascript and remote images...

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Want to send email with net/smtp. An error to fix.

2018-01-19 Thread David Storrs
On Fri, Jan 19, 2018 at 9:45 AM, Robby Findler 
wrote:

> On Fri, Jan 19, 2018 at 8:30 AM, David Storrs 
> wrote:
> > #2: Please stop spamming the list with slightly divergent items on a
> given
> > subject.  Keep it confined to one subject line so that Gmail and the
> Google
> > Group will thread the discussion properly.  That way everyone can benefit
> > from it in the future and it doesn't choke our inboxes as much.
>
> These messages were caught in a spam trap. I just approved all of them
> at once. This isn't the OP's fault.


My point wasn't that a lot of messages came in at once, it was that they
were all related to one topic (sending email from within Racket) but they
all had different subject lines.  Google Groups (where the list is
archived) threads conversations based on their subject line, as do Gmail,
Apple Mail, and probably most other mail clients.  Hitting 'Reply All' on
an earlier message (your own or someone else's) is less effort than
composing a fresh email, it will be less obtrusive in people's inboxes, and
(most importantly) the list archive will recognize that all the messages
are connected and thus it will be easier for future readers to follow the
conversation.

(And is the html thing really that big a deal?)
>
>
It's likely that part of the reason they were caught in a spam trap was
because they were HTML and formatted with both very large font and half a
dozen different colors.  Also, as George points out, HTML formatting gets
fouled up far more easily than raw text.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Want to send email with net/smtp. An error to fix.

2018-01-19 Thread 'John Clements' via Racket Users
I see a number of very minor issues in your code: 

1) It looks like you have wrapped the keyword arguments in square brackets. 
These aren’t necessary. They’re used in the documentation to indicate optional 
elements.

2) It’s worth noting that these arguments are optional, so you can leave out, 
e.g. #:port-no (since you have it set to the default), and the final 25.

3) You seem to be missing arguments to the optional #:tcp-connect and 
#:tls-encode arguments; these are used to provide alternate connection and 
encoding functions, if you like.

4) The server address shouldn’t have a login. Something like “server.de”.

5) the from and to addresses and authenticated user, on the flip side, 
shouldn’t have a host. Something like “sender” and (list “receiver”)

Putting these all together, I think you’re looking for something like this:

(smtp-send-message  "server.de"
"sender"
(list "receiver")
"NEW MESSAGE SMTP !"
"HI , THIS IS THE MESSAGE !"
#:auth-user  "sender" 
#:auth-passwd  "123456”)

… but it’s not entirely clear.

It looks like the first issue, with the brackets, is the one that was stopping 
you, by giving you an error message that blocked you.

John Clements




> On Jan 19, 2018, at 1:49 AM, MHE  wrote:
> 
> Hello Rackets,
> 
> 
> 
> (require net/smtp)
> 
> (smtp-send-message  "smtpATserver.de"
> "senderATmailadress.de"
> "receiverATmailadress.de"
> "NEW MESSAGE SMTP !"
> "HI , THIS IS THE MESSAGE !"
>   [#:port-no 25
>#:auth-user  "senderATmailadress.de"   
>   
>#:auth-passwd  "123456"
>   #:tcp-connect
>   #:tls-encode   
>   25])   
> 
> 
> Hi ,
> i want to run this code. This is the result :  Something i have made wrong ?
> After input of the right Data and mailadresses.
> 
> $ racket sendmail_1.rkt
> sendmail_1.rkt:11:35: #%datum: keyword used as an expression
>   in: #:port-no
>   context...:
>standard-module-name-resolver
> hans@mx1:~/Documents/Racket
> 
> May i ask a racket programmer for a working code example of   net/smtp  ???
> 
> 
> 
> WBR
> MHE
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> 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.
> For more options, visit https://groups.google.com/d/optout.



-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Want to send email with net/smtp. An error to fix.

2018-01-19 Thread Robby Findler
On Fri, Jan 19, 2018 at 8:30 AM, David Storrs  wrote:
> #2: Please stop spamming the list with slightly divergent items on a given
> subject.  Keep it confined to one subject line so that Gmail and the Google
> Group will thread the discussion properly.  That way everyone can benefit
> from it in the future and it doesn't choke our inboxes as much.

These messages were caught in a spam trap. I just approved all of them
at once. This isn't the OP's fault. (And is the html thing really that
big a deal?)

Robby

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Want to send email with net/smtp. An error to fix.

2018-01-19 Thread David Storrs
Hi MHE,

Quick requests:

#1:  Could you please not send HTML-formatted emails?  They're ugly and
distracting.  Keep it to plain text unless it's essential.

#2: Please stop spamming the list with slightly divergent items on a given
subject.  Keep it confined to one subject line so that Gmail and the Google
Group will thread the discussion properly.  That way everyone can benefit
from it in the future and it doesn't choke our inboxes as much.

Thanks!

Dave

On Fri, Jan 19, 2018 at 4:49 AM, MHE  wrote:

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *Hello Rackets,(require net/smtp)(smtp-send-message  "smtpATserver.de"
> "senderATmailadress.de"
> "receiverATmailadress.de"
>   "NEW MESSAGE SMTP !""HI , THIS IS THE
> MESSAGE !"  [#:port-no 25
>  #:auth-user  "senderATmailadress.de"
>  #:auth-passwd  "123456"
>   #:tcp-connect
>   #:tls-encode 25])
>   Hi ,i want to run this code. This is the result :  Something i
> have made wrong ?After input of the right Data and mailadresses.$ racket
> sendmail_1.rktsendmail_1.rkt:11:35: #%datum: keyword used as an expression
> in: #:port-no  context...:
>  standard-module-name-resolverhans@mx1:~/Documents/RacketMay i ask a racket
> programmer for a working code example of   net/smtp  ???WBRMHE*
>
>
>
>
>
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.