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 <werb...@hans-schueren.de> 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.