Note that there are some explanatory texts on larger screens.

plurals
  1. POELMAH not sending email IIS 7.5
    primarykey
    data
    text
    <p>Tried every possible setting found on stackoverflow and the Internet but no luck. Wish the developer of ELMAH had insight to show messages from ELMAH itself. ELMAH xml logging works fine.</p> <p>Hope someone here will point out misconfiguration in web.config</p> <pre><code>&lt;configSections&gt; &lt;sectionGroup name="elmah"&gt; &lt;section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" /&gt; &lt;section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" /&gt; &lt;section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" /&gt; &lt;section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" /&gt; &lt;/sectionGroup&gt; &lt;/configSections&gt; &lt;modules runAllManagedModulesForAllRequests="true"&gt; &lt;remove name="ErrorLog" /&gt; &lt;remove name="ErrorMail" /&gt; &lt;add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" /&gt; &lt;add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" /&gt; &lt;/modules&gt; &lt;errorMail from="from email" to="to email" subject="elmah exception" smtpServer="smtp.gmail.com" port="587" userName="xxxx@gmail.com" password="gmailpassword" useSsl="true" async="true" &gt; &lt;/errorMail&gt; </code></pre> <p>Have tried user name without @gmail. Have tried locally installed server in errorMail settings but no help. The locally installed server works fine otherwise. </p> <p>Have also tried this:</p> <pre><code>&lt;system.net&gt; &lt;mailSettings&gt; &lt;smtp deliveryMethod="Network"&gt; &lt;network host="smtp.gmail.com" port="587" userName="xxxxxxxxxxx" password="xxxxx" /&gt; &lt;/smtp&gt; &lt;/mailSettings&gt; &lt;/system.net&gt; </code></pre> <p>used these settings for local smtp server:</p> <pre><code>&lt;errorMail from="from email" to="to email" subject="elmah exception" smtpServer="xxx IP address of smtpserver" port="25" userName="xxxxx" password="xxxx" async="true" &gt; &lt;/errorMail&gt; </code></pre> <p>All in all, I have tried all combinations, different settings, different SMTP servers.... no luck. Don't know if there is some message somewhere from ELMAH that I can see to know why ELMAH not connecting to STMP.</p> <p>As stated above, I went through every post on this site that talks about ELMAH email and followed the instructions... but still couldn't make it work.</p> <p>Also tried local smtp pickup directory</p> <pre><code>&lt;smtp deliveryMethod="specifiedPickupDirectory"&gt; &lt;specifiedPickupDirectory pickupDirectoryLocation="C:\inetpub\mailroot\Pickup" /&gt; &lt;/smtp&gt; </code></pre> <p>and monitored the directory. Saw no activity in the folder. </p> <p>Using ELMAH 1.2</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload