{"id":45,"date":"2020-08-18T12:15:48","date_gmt":"2020-08-18T12:15:48","guid":{"rendered":"http:\/\/hede.org\/?page_id=45"},"modified":"2021-06-17T14:47:00","modified_gmt":"2021-06-17T14:47:00","slug":"how-to-send-an-email-via-default-email-client-using-c-2","status":"publish","type":"page","link":"http:\/\/hede.org\/?page_id=45","title":{"rendered":"how to send an Email via Default Email Client Using C#"},"content":{"rendered":"\n<p class=\"has-very-light-gray-background-color has-background wp-block-paragraph\"><strong>private void button2_Click(object sender, EventArgs e)<br>{<br>mailadr = textBox3.Text;<br>String MM;<br>MM = &#8220;Mailto:&#8221; + mailadr + &#8220;?subject= headlinetext&amp; body=bodytext&#8221;;<br>System.Diagnostics.Process proc = new System.Diagnostics.Process();<br>proc.StartInfo.FileName = MM;<br>proc.Start();<br>}<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>VBA &#8211; Excel How to Delete spaces <\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes you need to delete spaces in more than you care to do manually. The first choice is&nbsp; the function &#8220;Trim&#8221;, however it has its limitations by only removing leading and following spaces. This function removes all spaces &#8211; up to 3 spaces. You are welcome to add more by changing the code. (No rights &#8211; and no warrenty)<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"has-text-align-left has-background wp-block-paragraph\" style=\"background-color:#e9ebec\"><strong>Function Removespaces(fullString As String) As String<br>Dim RS As String<br>RS = Trim(fullString)<br>RS = Replace(RS, &#8221; &#8220;, &#8220;&#8221;)<br>RS = Replace(RS, &#8221; &#8220;, &#8221; &#8220;)<br>RS = Replace(RS, &#8221; &#8220;, &#8221;  &#8220;)<br>Removespaces = RS<br>End Function<\/strong><\/p>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>private void button2_Click(object sender, EventArgs e){mailadr = textBox3.Text;String MM;MM = &#8220;Mailto:&#8221; + mailadr + &#8220;?subject= headlinetext&amp; body=bodytext&#8221;;System.Diagnostics.Process proc = new System.Diagnostics.Process();proc.StartInfo.FileName = MM;proc.Start();} VBA &#8211; Excel How to Delete spaces Sometimes you need to delete spaces in more than you care to do manually. The first choice is&nbsp; the function &#8220;Trim&#8221;, however it has its &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/hede.org\/?page_id=45\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;how to send an Email via Default Email Client Using C#&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-45","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/hede.org\/index.php?rest_route=\/wp\/v2\/pages\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/hede.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/hede.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/hede.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/hede.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":7,"href":"http:\/\/hede.org\/index.php?rest_route=\/wp\/v2\/pages\/45\/revisions"}],"predecessor-version":[{"id":78,"href":"http:\/\/hede.org\/index.php?rest_route=\/wp\/v2\/pages\/45\/revisions\/78"}],"wp:attachment":[{"href":"http:\/\/hede.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}