Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Send-email/D/send-email.d
Normal file
10
Task/Send-email/D/send-email.d
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
void main() {
|
||||
import std.net.curl;
|
||||
|
||||
auto s = SMTP("smtps://smtp.gmail.com");
|
||||
s.setAuthentication("someuser@gmail.com", "somepassword");
|
||||
s.mailTo = ["<friend@example.com>"];
|
||||
s.mailFrom = "<someuser@gmail.com>";
|
||||
s.message = "Subject:test\n\nExample Message";
|
||||
s.perform;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue