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 = ["x...@xxx.com"];
smtp.mailFrom = "x...@xxx.com";
smtp.message = "Example Message";
smtp.perform();
}

From,
Vino.B
  • SMTP Mail Vino.B via Digitalmars-d-learn

Reply via email to