Send email: Difference between revisions

m
m (→‎{{header|Perl}}: future-proof for 5.36)
m (→‎{{header|Wren}}: Minor tidy)
Line 1,906:
{{libheader|WrenGo}}
An embedded application with a Go host so we can use their net/smtp module.
<syntaxhighlight lang="ecmascriptwren">/* send_emailSend_email.wren */
 
foreign class Authority {
Line 2,004:
<br>
We now embed this script in the following Go program and run it.
<syntaxhighlight lang="go">/* go run send_emailSend_email.go */
 
package main
Line 2,064:
func main() {
vm := wren.NewVM()
fileName := "send_emailSend_email.wren"
 
smtpMethodMap := wren.MethodMap { "static sendMail(_,_,_,_,_)": sendMail }
9,476

edits