Send email: Difference between revisions

no edit summary
(→‎{{header|D}}: fix search and replace error)
No edit summary
Line 528:
fmt.Printf("Message sent.\n")
}</lang>
 
==Icon and {{header|Unicon}}==
 
A Unicon-specific solution is:
<lang unicon>procedure main(args)
mail := open("mailto:"||args[1], "m", "Subject : " || args [2],
"X−Note: automatically send by Unicon") |
stop("Cannot send mail to ",args[1])
every write(mail , !&input)
close (mail)
end</lang>
 
 
=={{header|Java}}==