Send email: Difference between revisions
Content added Content deleted
(Updated D entry) |
(→{{header|D}}: fix search and replace error) |
||
Line 259: | Line 259: | ||
import std.net.curl; |
import std.net.curl; |
||
auto s = SMTP("smtps:// |
auto s = SMTP("smtps://smtp.gmail.com"); |
||
s.setAuthentication("someuser@gmail.com", "somepassword"); |
s.setAuthentication("someuser@gmail.com", "somepassword"); |
||
s.mailTo = ["<friend@example.com>"]; |
s.mailTo = ["<friend@example.com>"]; |