{"id":2483,"date":"2022-08-30T15:25:14","date_gmt":"2022-08-30T15:25:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/17\/sending-email-in-dnn-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:25:14","modified_gmt":"2022-08-30T15:25:14","slug":"sending-email-in-dnn-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/sending-email-in-dnn-collection-of-common-programming-errors\/","title":{"rendered":"Sending Email in DNN-Collection of common programming errors"},"content":{"rendered":"<p>I&#8217;m trying to send an email in a DNN module I&#8217;m making. However, though it doesn&#8217;t crash the email isn&#8217;t being sent. I think it has to do with the From Email I&#8217;m attempting to use. I&#8217;m not 100% sure what email I should be using for the from which is the first parameter.<\/p>\n<pre><code>Protected Sub Submit_Click(sender As Object, e As EventArgs) Handles Submit.Click\n    DotNetNuke.Services.Mail.Mail.SendEmail(\"support@localhost\", \"myemail@site.com\", \"EmailTest\", \"Hello world!\")\nEnd Sub\n<\/code><\/pre>\n<ol>\n<li>\n<p>The More likely problem is you don&#8217;t have your SMTP settings properly configured. To configure your SMTP settings, Login as Host. Then, go to Host -&gt; Settings and fill out the fields under &#8220;SMTP Server Settings&#8221; and save them. There&#8217;s a test link there as well to verify they are working correctly.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-17 19:52:01. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I&#8217;m trying to send an email in a DNN module I&#8217;m making. However, though it doesn&#8217;t crash the email isn&#8217;t being sent. I think it has to do with the From Email I&#8217;m attempting to use. I&#8217;m not 100% sure what email I should be using for the from which is the first parameter. Protected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2483","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2483"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2483\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}