{"id":320,"date":"2007-10-02T13:02:14","date_gmt":"2007-10-02T12:02:14","guid":{"rendered":"http:\/\/www.galhano.com\/blog\/?p=320"},"modified":"2008-02-07T18:38:36","modified_gmt":"2008-02-07T17:38:36","slug":"systemnetmail","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=320","title":{"rendered":"System.Net.Mail"},"content":{"rendered":"<p>\u00c2 Complete FAQ for the System.Net.Mail namespace found in .NET 2.0<\/p>\n<blockquote><p>\n\u00c2 &#8216;create the mail message<br \/>\nDim mail As New MailMessage()<\/p>\n<p>&#8216;set the addresses<br \/>\nmail.From = New MailAddress(&#8220;me@mycompany.com&#8221;)<br \/>\nmail.To.Add(&#8220;you@yourcompany.com&#8221;)<\/p>\n<p>&#8216;set the content<br \/>\nmail.Subject = &#8220;This is an email&#8221;<br \/>\nmail.Body = &#8220;this is a sample body with html in it. <b>This is bold<\/b> <font color=#336699>This is blue<\/font>&#8221;<br \/>\nmail.IsBodyHtml = True<\/p>\n<p>&#8216;send the message<br \/>\nDim smtp As New SmtpClient(&#8220;127.0.0.1&#8221;)<br \/>\nsmtp.Send(mail)<\/p>\n<\/blockquote>\n<p>\u00c2 <em>Fonte: <\/em><a href=\"http:\/\/www.systemnetmail.com\/faq\/3.1.2.aspx\"><em>http:\/\/www.systemnetmail.com\/faq\/3.1.2.aspx<\/em><\/a><!--2f2e4c2355f04292abbf142457c52ef0--><!--a7066e89109a252238d75e841ecfbda7--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00c2 Complete FAQ for the System.Net.Mail namespace found in .NET 2.0 \u00c2 &#8216;create the mail message Dim mail As New MailMessage() &#8216;set the addresses mail.From = New MailAddress(&#8220;me@mycompany.com&#8221;) mail.To.Add(&#8220;you@yourcompany.com&#8221;) &#8216;set the content mail.Subject = &#8220;This is an email&#8221; mail.Body = &#8220;this is a sample body with html in it. This is bold This is blue&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-aspnet-20","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":0,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}