C # Send Mail

xiaoxiao2021-03-06  39

// Todo: Send an email

Private void btn_send_click (Object Sender, System.Eventargs E)

{

msgto.from = "

Amthlon@tom.com ";

Msgto.BodyFormat = mailformat.text;

Msgto.Body = mailtxt;

Msgto.subject = Title;

Msgto.priority = mailpriority.normal;

Msgto.to = "

Amthlon@tom.com; amthlon@sohu.com ";

Msgto.fields.add ("

Http://schemas.microsoft.com/cdpo/configuration/smtpauthenticate "," 1 ");

Msgto.fields.add ("

http://schemas.microsoft.com/cdpo/configuration/sendusername "," amthlon ");

Msgto.fields.add ("

http://schemas.microsoft.com/cdo/configuration/sendpassword "," PWD ");

SMTPMAIL.SMTPSERVER = "smtp.tom.com";

SMTPMAIL.SEND (MSGTO);

}

转载请注明原文地址:https://www.9cbs.com/read-77625.html

New Post(0)