try
{
mailmessage omail = new mailmessage();
console.writeline("mail created");
omail.to = "yateent@hotmail.com";
omail.cc = "yateen_thakkar@syntelinc.com";
omail.from = "yateent@hotmail.com";
omail.subject = "hi yateen";
omail.bodyformat = mailformat.html;
string strbody = "<b>hello <i>yateen</i></b>" +
" this is from <font color=red>.net</font>";
omail.body = strbody;
omail.attachments.add(new mailattachment("c:\\aishwarya1.jpg"));
smtpmail.send(omail);
console.writeline("mail sent");
}
catch(exception ex)
{
console.writeline("error : " + ex.message);
}
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 »
相关推荐
- 暂无文章
