SMTP Mail
Vino.B via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 22 05:52:24 PDT 2017
Hi All,
Request your help on sending Mails, I am able to receive mails
with empty body the line "smtp.message ="Example Message" doesn't
seem to be working and also please let me know how do i send a
file as a attachment in a email.
import std.net.curl;
void main ()
{
auto smtp = SMTP("smtp://server.com");
smtp.mailTo = ["xxx at xxx.com"];
smtp.mailFrom = "xxx at xxx.com";
smtp.message = "Example Message";
smtp.perform();
}
From,
Vino.B
More information about the Digitalmars-d-learn
mailing list