﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>E-mail does not work properly?</title><link>http://www.aspplayground.net/forum/</link><description /><copyright>(c) ASP Playground Support Forum</copyright><ttl>30</ttl><item><title>E-mail does not work properly? (Samuel)</title><description>  &lt;font size="4"&gt;&lt;font color="#ff0000"&gt;&lt;font color="#000000"&gt;&lt;font size="2"&gt;&lt;font size="4"&gt;This article has 7 parts:&lt;/font&gt; &lt;a name="qtop"&gt;&lt;/a&gt; &lt;/font&gt;             &lt;br&gt; &lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="#q1"&gt;I enabled email in the admin control panel, but I still don't get any mail from my forum.&lt;/a&gt;&lt;li&gt;&lt;a href="#q1_5"&gt;&lt;b&gt;Digest&lt;/b&gt; subscription failed to send out. Everything else works.&lt;/a&gt;&lt;li&gt;&lt;a href="#q1_6"&gt;&lt;b&gt;PM&lt;/b&gt; subscription failed to send out. Everything else works.&lt;/a&gt;&lt;li&gt;&lt;a href="#q2"&gt;Why does my mail hang out in the queue or pickup folders&lt;/a&gt;&lt;li&gt;&lt;a href="#q3"&gt;Why do messages end up in the badmail folder?      &lt;/a&gt;&lt;li&gt;&lt;a href="#q4"&gt;Emails go out without any problem to the majority of users, but AOL users can't get any email from the server?&lt;/a&gt;      &lt;li&gt;&lt;a href="#q5"&gt;A small portion of my members can't get subscription notifications, while others can.      &lt;/a&gt;&lt;/ol&gt; &lt;br&gt; &lt;font size="4"&gt;&lt;font color="#ff0000"&gt; &lt;hr&gt; &lt;br&gt; &lt;/font&gt;&lt;/font&gt;&lt;a name="q1"&gt;&lt;/a&gt;   &lt;font size="4"&gt;&lt;font color="#ff0000"&gt;Q:&lt;/font&gt;&lt;/font&gt; I enabled email in the admin control panel, but I still don't get any mail from my forum.                 &lt;br&gt;  &lt;br&gt; &lt;font size="4"&gt;&lt;font color="#006600"&gt;A:&lt;/font&gt;&lt;/font&gt; &lt;font color="#000000"&gt;&lt;font size="2"&gt;&lt;font face="verdana"&gt;The first thing to do is enable email logging in &lt;b&gt;web.config&lt;/b&gt; if you haven't done so (see the readme file that comes with the software for more info)&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;. Once it is enabled, email activities are logged in                &lt;br&gt;  &lt;br&gt; &lt;i&gt;~/upfiles/logs/&lt;b&gt;MailLog.maillog&lt;/b&gt;&lt;/i&gt;                &lt;br&gt;  &lt;br&gt; It is just a text file, with the following info (one email activity per line):                &lt;br&gt;  &lt;br&gt; &lt;pre&gt;&lt;i&gt;Date In Universal Format&lt;/i&gt;|&lt;i&gt;Mail Activity Name &lt;/i&gt;&lt;b&gt;Sent To:&lt;/b&gt;&lt;i&gt; recipient email address&lt;/i&gt;|&lt;b&gt;subject:&lt;/b&gt;&lt;i&gt;The subject of the mail&lt;/i&gt;|&lt;b&gt;mailCC:&lt;/b&gt;&lt;i&gt;if applicable&lt;/i&gt;|&lt;b&gt;mailBCC:&lt;/b&gt;&lt;i&gt;if &lt;/i&gt;&lt;i&gt;applicable&lt;/i&gt;|&lt;b&gt;SenderE:&lt;/b&gt;&lt;i&gt;sender's email&lt;/i&gt;|&lt;b&gt;isAsync:&lt;/b&gt;&lt;i&gt;True/False&lt;/i&gt;|&lt;b&gt;Success:&lt;/b&gt;&lt;i&gt;True/False&lt;/i&gt;|&lt;b&gt;Simulated:&lt;/b&gt;&lt;i&gt;True/False&lt;/i&gt;&lt;/pre&gt; &lt;br&gt; The format is pretty self-explanatory. The things you want to look for are:               &lt;br&gt; &lt;ol&gt;&lt;li&gt;&lt;font color="#ff0000"&gt;!!!&lt;/font&gt; Whether you see the email activities you are looking for (having trouble with) logged. Look at the &lt;i&gt;Mail Activity Name&lt;/i&gt; section to find it.    &lt;ol&gt;&lt;li&gt;&lt;font color="#ff0000"&gt;If &lt;b&gt;not&lt;/b&gt;, see if there is anything in the admin CP's &lt;b&gt;Error Log&lt;/b&gt; section. &lt;/font&gt;&lt;font color="#ff0000"&gt;&lt;font size="4"&gt;&lt;i&gt;&lt;b&gt;Make sure you import any un-imported errors first.&lt;/b&gt;&lt;/i&gt;&lt;/font&gt;&lt;/font&gt;        &lt;ol&gt;&lt;li&gt;&lt;font size="4"&gt;&lt;font color="#ff0000"&gt;&lt;font size="2"&gt;If there are just too many errors in the log, first delete all logs, and then try the task that generates the mail again. Immediately after this, check the error log.&lt;/font&gt;&lt;/font&gt; &lt;br&gt;             &lt;/font&gt;        &lt;/ol&gt;            &lt;/ol&gt;    &lt;li&gt;What value the &lt;b&gt;Simulated &lt;/b&gt;section records; This section    exists because in our software we can simulate mail activity (if    selected in the admin control panel under &lt;b&gt;Side Wide Option&lt;/b&gt; - the &lt;b&gt;Email &lt;/b&gt;drop down list)    &lt;ol&gt;&lt;li&gt;if &lt;b&gt;true&lt;/b&gt;, it means the software did not encounter error prior to the actual &lt;b&gt;send&lt;/b&gt; command (no error while preparing the email). The software &lt;b&gt;did not&lt;/b&gt; send the mail however. So if this section records &lt;b&gt;true&lt;/b&gt;, the &lt;b&gt;Success &lt;/b&gt;section should record &lt;b&gt;false&lt;/b&gt; (see below).&lt;li&gt;if &lt;b&gt;false&lt;/b&gt;, the software actually sent the mail. See below for further info.                                                                &lt;/ol&gt;    &lt;li&gt;What value the &lt;b&gt;Success &lt;/b&gt;section records    &lt;ol&gt;&lt;li&gt;if &lt;b&gt;true&lt;/b&gt;, it means the mail was sent successfully. This indicates problems beyond our software (your mail server could be accepting but not relaying emails; recipients blocking your email, etc.)&lt;li&gt;if &lt;b&gt;false&lt;/b&gt;, it means the mail was not sent. Look for related error in the admin CP's &lt;b&gt;Error Log&lt;/b&gt; section                                                                &lt;/ol&gt;    &lt;/ol&gt;&lt;b&gt;       &lt;br&gt; Tip:&lt;/b&gt; when you look for an email issue in the log, use your notepad to open the log and search for this phrase:       &lt;br&gt;  &lt;br&gt; &lt;i&gt;Success:False|Simulated:False&lt;/i&gt;       &lt;br&gt;  &lt;br&gt; Whenever you see this, it means the software did try to send an email but failed. Scroll to the left to see what the email activity is.        &lt;br&gt;  &lt;br&gt; The hidden content below are some email related info we have for the previous version. Take a look if you wish.                &lt;br&gt;  &lt;br&gt; &lt;div style="border: 1px black dashed; padding:5px; margin:5px; background-color: #FAFAFA"&gt;
&lt;a href="#" onclick="this.style.display='none'; $get('someUniqueID').style.display=''; return false;"&gt;Click here to reveal the hidden content&lt;/a&gt;
&lt;div id="someUniqueID" style="display:none;"&gt;
                &lt;br&gt; This is rarely a problem if your forum is on a shared host. If you are hosting the forum at home or on your private network, please check the following and make sure everything is ready:&lt;ol&gt;&lt;li&gt; If you select CDONTS in the admin panel, make sure you have the SMTP service running. &lt;li&gt; If you are using CDONTS, make sure the pickup directory has the correct permission set for "guest" (you need write access at least). &lt;b&gt;Otherwise you will see this error message: Permission denied &lt;/b&gt; . The following message is quoted from: &lt;a href="http://www.4guysfromrolla.com/webtech/112298-1.shtml" target="_blank" rel="nofollow"&gt;http://www.4guysfromrolla.com/webtech/112298-1.shtml&lt;/a&gt;                   &lt;br&gt;      &lt;br&gt;     &lt;blockquote class="quote"&gt;&lt;div style="width:50%;font-weight:bold; padding-bottom:4px;"&gt;&lt;/div&gt;&lt;b&gt;Getting a Permission Denied Error?&lt;/b&gt;                   &lt;br&gt;     Depending on the security settings on the Web server you may receive a permission denied error when executing the Send method. If this is the case check to make sure that the IUSR_MachineName has Full Control &lt;b&gt;Modify&lt;/b&gt; permissions on the mail root &lt;b&gt;Pickup&lt;/b&gt; directories (usually C:\InetPub\mailroot\Pickup). (For example, if your Web server' s name is Bob, ensure that IUSR_Bob has these permissions.) &lt;/blockquote&gt;                    &lt;br&gt;      &lt;br&gt;     Make sure the internet guest account that you grant permission to is the internet guest account of your local machine, not the one from your active directory. Brian encountered the problem and figured it out:                   &lt;br&gt;      &lt;br&gt;     &lt;blockquote class="quote"&gt;&lt;div style="width:50%;font-weight:bold; padding-bottom:4px;"&gt;&lt;/div&gt;Just figured out the problem here. The issue was that I was putting in the IUSR and IWAM accounts for the Active Directory domain rather than for the local machine. My local machine is a member server of the domain. &lt;/blockquote&gt; &lt;li&gt; Exchange Server 2000 sp3 w/ CDONTS or CDOSYS problem:                    &lt;br&gt;      &lt;br&gt;     &lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;Q324037" target="_blank" rel="nofollow"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;Q324037&lt;/a&gt;                   &lt;br&gt;      &lt;br&gt;     Use Workaround 2 in the document. &lt;li&gt; Mail relay rejected when you use CDOSYS:                   &lt;br&gt;     &lt;b&gt;SMTP Mail Relay May Stop Working When Using IIS/MCIS SMTP Service and Non-RFC EHLO/HELO Command Format&lt;/b&gt;                   &lt;br&gt;     &lt;a href="http://www.kbalertz.com/kb_240832.aspx" target="_blank" rel="nofollow"&gt;http://www.kbalertz.com/kb_240832.aspx&lt;/a&gt;   &lt;li&gt; If you select other components from the list, make sure you install them properly. &lt;b&gt;Otherwise you will see this error: Server.CreateObject Failed &lt;/b&gt;. &lt;li&gt; &lt;b&gt;&lt;font color="#990000"&gt;If you are using IIS 6 (Windows 2003), CDONTS is not available to you, and you will get the Server.CreateObject Failed error. Use CDOSYS instead.&lt;/font&gt;&lt;/b&gt; &lt;li&gt; If you select CDOSYS using pickup directory, make sure you enter your pickup directory in the "mail server IP or pickup directory" textbox. It is located under the mail component selection. By default, pickup directory is &lt;b&gt;C:\Inetpub\mailroot\Pickup&lt;/b&gt; . You will also have to make sure that the &lt;i&gt;Internet Guest account&lt;/i&gt; (IUSR_MachineName) has &lt;b&gt;modify &lt;/b&gt;rights to the pickup directory. That means the IUSR account must be able to &lt;i&gt;write files to&lt;/i&gt; and &lt;i&gt;delete files from&lt;/i&gt; the pickup directory. &lt;li&gt; Does your e-mail server support SMTP relay? Is the connection between your www server and e-mail server blocked by firewall? Are you sure your mail server setting allows ASP program to send SMTP request? &lt;li&gt; If you are using a shared host, go to the host's FAQ section and see what the requirements are for sending e-mail with ASP / ASP.NET. See what components they support as well as note down their SMTP server address. &lt;/ol&gt;In addition, make sure you know the components we support in our ASP versions, and they are:&lt;ul&gt;&lt;li&gt; ASPMail &lt;li&gt; ASPQMail (message queuing) &lt;li&gt; JMail (version 3 &amp;amp; 4) &lt;li&gt; ASPEMail &lt;li&gt; CDOSYS (both pickup directory &amp;amp; external SMTP) &lt;li&gt; CDONTS &lt;li&gt; SoftArtisans SMTPMail&lt;/ul&gt;Please note that by default, the forum subscription e-mail is sent via &lt;b&gt;BCC&lt;/b&gt;, not TO. If your users cannot get subscription messages, make sure you check your e-mail server's BCC setting, or you can change the preference in the admin control panel to use "TO" to send mail instead.                   &lt;br&gt;  &lt;br&gt; Here is a list of e-mail related FAQs &lt;a href="http://www.4guysfromrolla.com/webtech/LearnMore/Email.asp" target="_blank" rel="nofollow"&gt;http://www.4guysfromrolla.com/webtech/LearnMore/Email.asp&lt;/a&gt; . Most of the time the problem is with your mail server configuration.                   &lt;br&gt;  &lt;br&gt; &lt;font size="3"&gt;** .NET version (2.x) debugger                   &lt;br&gt; We put together a error logging feature in the &lt;a href="http://www.aspplayground.net/forum/m_391024/tm.htm" target="_blank" rel="nofollow"&gt;tutorial forum&lt;/a&gt; (must be a license holder to access the message). Use the error logger to show what's wrong with your email setting.                   &lt;br&gt; &lt;/font&gt;   
&lt;/div&gt;
&lt;/div&gt;                &lt;br&gt;  &lt;br&gt; &lt;a href="#qtop"&gt;Back to top&lt;/a&gt;             &lt;br&gt; &lt;hr&gt; &lt;br&gt;  &lt;br&gt; &lt;a name="q1_5"&gt;&lt;/a&gt; &lt;font color="#ff0000"&gt;&lt;font size="4"&gt;Q:&lt;/font&gt;&lt;/font&gt; &lt;b&gt;Digest &lt;/b&gt;subscription failed to send out. Everything else works.         &lt;br&gt;  &lt;br&gt; &lt;font color="#008000"&gt;&lt;font size="4"&gt;A:&lt;/font&gt;&lt;/font&gt; Make sure you set the permission for the ~/upfiles folder correctly. See &lt;a href="http://www.aspplayground.net/forum/Upload-feature-is-not-working-m376095.aspx" target="_blank" rel="nofollow"&gt;here&lt;/a&gt; for help.         &lt;br&gt; Also, make sure you have forum subscription enabled for that forum. The setting is inside the forum management interface for each individual forum.    &lt;br&gt;  &lt;br&gt; &lt;a href="#qtop"&gt;Back to top&lt;/a&gt;             &lt;br&gt; &lt;hr&gt; &lt;br&gt;  &lt;br&gt; &lt;a name="q1_6"&gt;&lt;/a&gt; &lt;font color="#ff0000"&gt;&lt;font size="4"&gt;Q:&lt;/font&gt;&lt;/font&gt; &lt;b&gt;PM&lt;/b&gt; subscription failed to send out. Everything else works.         &lt;br&gt;  &lt;br&gt; &lt;font color="#008000"&gt;&lt;font size="4"&gt;A:&lt;/font&gt;&lt;/font&gt; PM notification will not send if you are the sender of the PM. It will only send if someone else sends you a PM. &lt;br&gt;  &lt;br&gt; &lt;a href="#qtop"&gt;Back to top&lt;/a&gt;             &lt;br&gt; &lt;hr&gt; &lt;br&gt;  &lt;br&gt; &lt;a name="q2"&gt;&lt;/a&gt;   &lt;font size="4"&gt;&lt;font color="#ff0000"&gt;Q:&lt;/font&gt;&lt;/font&gt; Why does my mail hang out in the queue or pickup folders?            &lt;br&gt;  &lt;br&gt; &lt;font size="4"&gt;&lt;font color="#006600"&gt;A:&lt;/font&gt;&lt;/font&gt; Here are some suggestions for resolving this issue:&lt;ol&gt;&lt;li&gt; if your mail is not leaving the queue folder, check out &lt;a href="http://support.microsoft.com/?kbid=273644" target="_blank" rel="nofollow"&gt;Q273644&lt;/a&gt; &lt;li&gt; if your mail is not leaving the pickup folder, and you are getting smtpsvc Event ID: 535 ("Virtual Server :The drop directory , for * could not be created.") in your event log, see &lt;a href="http://support.microsoft.com/?kbid=288538" target="_blank" rel="nofollow"&gt;Q288538&lt;/a&gt; &lt;li&gt;  make sure SMTP Virtual Server is running in Internet Services Manager &lt;li&gt;  check the event log for SMTP Service events &lt;li&gt;  turn on logging for your SMTP server, to see if the mail is even being attempted to be sent to the server &lt;li&gt;  make sure your smarthost and FQDN are configured correctly &lt;li&gt;  make sure your smarthost allows you to relay unconditionally (some require authentication) &lt;li&gt; make sure your server can resolve the ip of your smarthost name - try using the IP of your smarthost to see if this is the issue &lt;li&gt;  restart the SMTP Service (or IIS altogether), and if that fails reboot the server, to see if this clears up the backlog &lt;li&gt;  make sure you are sending from / to a valid address / domain &lt;li&gt;  check any .rtr files in the queue folder - these can be caused by various mistakes in code or config &lt;li&gt;  check the server itself by setting up outlook express on the machine, using the same settings, and attempting to send mail &lt;li&gt;  if the machine is behind a firewall/router, make sure it has access to port 53&lt;/ol&gt; &lt;br&gt; &lt;a href="#qtop"&gt;Back to top&lt;/a&gt;             &lt;br&gt; &lt;hr&gt; &lt;br&gt;  &lt;br&gt; &lt;a name="q3"&gt;&lt;/a&gt;   &lt;font size="4"&gt;&lt;font color="#ff0000"&gt;Q:&lt;/font&gt;&lt;/font&gt; Why do messages end up in the badmail folder?                      &lt;br&gt;  &lt;br&gt; &lt;font size="4"&gt;&lt;font color="#006600"&gt;A:&lt;/font&gt;&lt;/font&gt; If you are getting .bdr files in the badmail folder, this means the mail could not be sent for some reason. You might see an error like this, if you open up one of the .bdr files:                   &lt;br&gt;  &lt;br&gt; &lt;blockquote class="quote"&gt;&lt;div style="width:50%;font-weight:bold; padding-bottom:4px;"&gt;&lt;/div&gt;Unable to deliver this message because the following error was encountered:                   &lt;br&gt; This message is a delivery status notification that cannot be delivered.                   &lt;br&gt; Specific error code was 0xC00402C7                   &lt;br&gt; &lt;/blockquote&gt;&lt;ul&gt;&lt;li&gt;The most common cause is that you've either omitted the address in the From or To properties, or included an invalid e-mail address (see KB #&lt;a href="http://support.microsoft.com/?kbid=267859" target="_blank" rel="nofollow"&gt;267859 &lt;/a&gt;- fixed in Windows 2000 Service Pack 2) &lt;li&gt;Or, you've reinstalled the IIS SMTP service (see KB #&lt;a href="http://support.microsoft.com/?kbid=290290" target="_blank" rel="nofollow"&gt;290290&lt;/a&gt;), or your SMTP service isn't properly configured (see KB#&lt;a href="http://support.microsoft.com/?kbid=265621" target="_blank" rel="nofollow"&gt;265621&lt;/a&gt;) &lt;li&gt;Or, you are using Smart Host and a DNS server that does not support TCP queries (see KB #&lt;a href="http://support.microsoft.com/?kbid=276347" target="_blank" rel="nofollow"&gt;276347&lt;/a&gt;) &lt;li&gt;Or, you are attempting to run Microsoft Commercial Internet System on Windows 2000 (see KB #&lt;a href="http://support.microsoft.com/?kbid=258918" target="_blank" rel="nofollow"&gt;258918&lt;/a&gt;) &lt;/ul&gt; &lt;br&gt; &lt;a href="#qtop"&gt;Back to top&lt;/a&gt; &lt;hr&gt; &lt;br&gt; &lt;a name="q4"&gt;&lt;/a&gt;   &lt;font color="#ff0000"&gt;&lt;font size="4"&gt;Q:&lt;/font&gt;&lt;/font&gt; Emails go out without any problem to the majority of users, but AOL users can't get any email from the server?                      &lt;br&gt;  &lt;br&gt; &lt;font color="#009900"&gt;&lt;font size="4"&gt;A:&lt;/font&gt;&lt;/font&gt; If the email problem only happens to users from a very limited number of domains, this indicates two things:&lt;ol&gt;&lt;li&gt;The forum software works &lt;li&gt;The &lt;b&gt;DNS server&lt;/b&gt; responsible for managing &lt;i&gt;&lt;b&gt;Reverse DNS record&lt;/b&gt;&lt;/i&gt; for your machine is not configured properly &lt;/ol&gt;This problem usually happens to dedicated / colo server users. You need to make sure that the mail server machine IP has a &lt;i&gt;&lt;b&gt;PTR record&lt;/b&gt;&lt;/i&gt; on your own DNS server OR your network provider's DNS server.                   &lt;br&gt;  &lt;br&gt;  &lt;br&gt; &lt;a href="#qtop"&gt;Back to top&lt;/a&gt;             &lt;br&gt; &lt;hr&gt; &lt;br&gt; &lt;a name="q5"&gt;&lt;/a&gt;&lt;font color="#ff0000"&gt;&lt;font size="4"&gt;Q:&lt;/font&gt;&lt;/font&gt; A small portion of my members can't get subscription notifications, while others can.&amp;nbsp;              &lt;br&gt; &lt;font color="#339900"&gt;&lt;font size="4"&gt;A:&lt;/font&gt;&lt;/font&gt; It comes down to one of the following reasons:&lt;ol&gt;&lt;li&gt;Their SPAM filters on their email servers are actively blocking mails from you&lt;li&gt;Their SPAM filters on their email clients are actively blocking mails from you&lt;li&gt;Their mail servers check for SPF record / reverse DNS entry (e.g. AOL users) which your mail server doesn't have (See this &lt;a href="#q4"&gt;&lt;font color="#ff0000"&gt;&lt;font size="4"&gt;Q&lt;/font&gt;&lt;/font&gt;&lt;/a&gt; above) &lt;li&gt;Your mail server blocks emails sent to certain domain&lt;/ol&gt; &lt;br&gt; &lt;a href="#qtop"&gt;Back to top&lt;/a&gt;         &lt;br&gt;  &lt;br&gt;  </description><link>http://www.aspplayground.net/forum/fb.ashx?m=375481</link><pubDate>Thu, 16 Jan 2003 21:22:39 GMT</pubDate></item></channel></rss>