Support Thread

E-mail does not work properly?

📅 👤 ASP Playground
E-mail does not work properly? — APG vNext Guide

E-mail does not work properly?


View related threads: (in this forum | in all forums)

E-mail does not work properly?

Logged in as: Guest
Users viewing this topic: none
Users viewing this topic: none Printable Version All Forums >> [Announcements] >> ASPPlayground Knowledge Base >> E-mail does not work properly? Page: [1]
Login
Message << Older Topic Newer Topic >>
Login
Message << Older Topic Newer Topic >>
Message << Older Topic Newer Topic >>
E-mail does not work properly? - 2003-01-16 21:22:39
Samuel


Posts: 8049
Joined: 2001-05-23
From: Vancouver, Canada
Status: offline
Q1: Everything is working except e-mail. I select [an e-mail component] in the admin panel, but I still cannot get any mail from my forum.

A1: 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:
  1. If you select CDONTS in the admin panel, make sure you have the SMTP service running.
  2. If you are using CDONTS, make sure the pickup directory has the correct permission set for "guest" (you need write access at least). Otherwise you will see this error message: Permission denied . The following message is quoted from:

    quote:

    Getting a Permission Denied Error?
    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 Modify permissions on the mail root Pickup directories (usually C:\InetPub\mailroot\Pickup). (For example, if your Web server' s name is Bob, ensure that IUSR_Bob has these permissions.)


    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:

    quote:

    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.

  3. Exchange Server 2000 sp3 w/ CDONTS or CDOSYS problem:



    Use Workaround 2 in the document.
  4. Mail relay rejected when you use CDOSYS:
    SMTP Mail Relay May Stop Working When Using IIS/MCIS SMTP Service and Non-RFC EHLO/HELO Command Format

  5. If you select other components from the list, make sure you install them properly. Otherwise you will see this error: Server.CreateObject Failed .
  6. 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.
  7. 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 C:\Inetpub\mailroot\Pickup . You will also have to make sure that the Internet Guest account (IUSR_MachineName) has modify rights to the pickup directory. That means the IUSR account must be able to write files to and delete files from the pickup directory.
  8. 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?
  9. 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.
In addition, make sure you know the components we support in our ASP versions, and they are:
  • ASPMail
  • ASPQMail (message queuing)
  • JMail (version 3 & 4)
  • ASPEMail
  • CDOSYS (both pickup directory & external SMTP)
  • CDONTS
  • SoftArtisans SMTPMail
Please note that by default, the forum subscription e-mail is sent via BCC, 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.

Here is a list of e-mail related FAQs . Most of the time the problem is with your mail server configuration.

** .NET version debugger
We put together a error logging feature in the tutorial forum (must be a license holder to access the message). Use the error logger to show what's wrong with your email setting.




Q2: Why does my CDONTS / CDOSYS mail hang out in the queue or pickup folders?

A2: Here are some suggestions for resolving this issue:
  1. if your mail is not leaving the queue folder, check out
  2. 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
  3. make sure SMTP Virtual Server is running in Internet Services Manager
  4. check the event log for SMTP Service events
  5. turn on logging for your SMTP server, to see if the mail is even being attempted to be sent to the server
  6. make sure your smarthost and FQDN are configured correctly
  7. make sure your smarthost allows you to relay unconditionally (some require authentication)
  8. 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
  9. restart the SMTP Service (or IIS altogether), and if that fails reboot the server, to see if this clears up the backlog
  10. make sure you are sending from / to a valid address / domain
  11. check any .rtr files in the queue folder - these can be caused by various mistakes in code or config
  12. check the server itself by setting up outlook express on the machine, using the same settings, and attempting to send mail
  13. if the machine is behind a firewall/router, make sure it has access to port 53





Q3: Why do CDONTS messages end up in the badmail folder?

A3: 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:

quote:

Unable to deliver this message because the following error was encountered:
This message is a delivery status notification that cannot be delivered.
Specific error code was 0xC00402C7
  • 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 #- fixed in Windows 2000 Service Pack 2)
  • Or, you've reinstalled the IIS SMTP service (see KB #), or your SMTP service isn't properly configured (see KB#)
  • Or, you are using Smart Host and a DNS server that does not support TCP queries (see KB #)
  • Or, you are attempting to run Microsoft Commercial Internet System on Windows 2000 (see KB #)



Q4: Emails go out without any problem to the majority of users, but AOL users can't get any email from the server?

A4: If the email problem only happens to users from a very limited number of domains, this indicates two things:
  1. The forum software works
  2. The DNS server responsible for managing Reverse DNS record for your machine is not configured properly
This problem usually happens to dedicated / colo server users. You need to make sure that the mail server machine IP has a PTR record on your own DNS server OR your network provider's DNS server.



Q5: A small portion of my members can't get subscription notifications, while others can.
A5: It comes down to one of the following reasons:
  1. Their SPAM filters on their email servers are actively blocking mails from you
  2. Their SPAM filters on their email clients are actively blocking mails from you
  3. Their mail servers check for SPF record / reverse DNS entry (e.g. AOL users) which your mail server doesn't have (See Q4 above)
  4. Your mail server blocks emails sent to certain domain
  5. You are sending out subscription notification via BCC, not TO -> the setting is in the Basic Configuration section in the admin control panel. Change the setting to "TO" may solve the problem.


< Message edited by Samuel -- 2006-02-13 14:54:08 >


_____________________________

Samuel Chou
Forum Administrator
ASPPlayground.NET's Developer
E-mail does not work properly? - 2003-01-16 21:22:39
E-mail does not work properly? - 2003-01-16 21:22:39 Samuel


Posts: 8049
Joined: 2001-05-23
From: Vancouver, Canada
Status: offline
Q1: Everything is working except e-mail. I select [an e-mail component] in the admin panel, but I still cannot get any mail from my forum.

A1: 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:
  1. If you select CDONTS in the admin panel, make sure you have the SMTP service running.
  2. If you are using CDONTS, make sure the pickup directory has the correct permission set for "guest" (you need write access at least). Otherwise you will see this error message: Permission denied . The following message is quoted from:

    quote:

    Getting a Permission Denied Error?
    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 Modify permissions on the mail root Pickup directories (usually C:\InetPub\mailroot\Pickup). (For example, if your Web server' s name is Bob, ensure that IUSR_Bob has these permissions.)


    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:

    quote:

    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.

  3. Exchange Server 2000 sp3 w/ CDONTS or CDOSYS problem:



    Use Workaround 2 in the document.
  4. Mail relay rejected when you use CDOSYS:
    SMTP Mail Relay May Stop Working When Using IIS/MCIS SMTP Service and Non-RFC EHLO/HELO Command Format

  5. If you select other components from the list, make sure you install them properly. Otherwise you will see this error: Server.CreateObject Failed .
  6. 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.
  7. 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 C:\Inetpub\mailroot\Pickup . You will also have to make sure that the Internet Guest account (IUSR_MachineName) has modify rights to the pickup directory. That means the IUSR account must be able to write files to and delete files from the pickup directory.
  8. 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?
  9. 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.
In addition, make sure you know the components we support in our ASP versions, and they are:
  • ASPMail
  • ASPQMail (message queuing)
  • JMail (version 3 & 4)
  • ASPEMail
  • CDOSYS (both pickup directory & external SMTP)
  • CDONTS
  • SoftArtisans SMTPMail
Please note that by default, the forum subscription e-mail is sent via BCC, 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.

Here is a list of e-mail related FAQs . Most of the time the problem is with your mail server configuration.

** .NET version debugger
We put together a error logging feature in the tutorial forum (must be a license holder to access the message). Use the error logger to show what's wrong with your email setting.




Q2: Why does my CDONTS / CDOSYS mail hang out in the queue or pickup folders?

A2: Here are some suggestions for resolving this issue:
  1. if your mail is not leaving the queue folder, check out
  2. 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
  3. make sure SMTP Virtual Server is running in Internet Services Manager
  4. check the event log for SMTP Service events
  5. turn on logging for your SMTP server, to see if the mail is even being attempted to be sent to the server
  6. make sure your smarthost and FQDN are configured correctly
  7. make sure your smarthost allows you to relay unconditionally (some require authentication)
  8. 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
  9. restart the SMTP Service (or IIS altogether), and if that fails reboot the server, to see if this clears up the backlog
  10. make sure you are sending from / to a valid address / domain
  11. check any .rtr files in the queue folder - these can be caused by various mistakes in code or config
  12. check the server itself by setting up outlook express on the machine, using the same settings, and attempting to send mail
  13. if the machine is behind a firewall/router, make sure it has access to port 53





Q3: Why do CDONTS messages end up in the badmail folder?

A3: 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:

quote:

Unable to deliver this message because the following error was encountered:
This message is a delivery status notification that cannot be delivered.
Specific error code was 0xC00402C7
  • 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 #- fixed in Windows 2000 Service Pack 2)
  • Or, you've reinstalled the IIS SMTP service (see KB #), or your SMTP service isn't properly configured (see KB#)
  • Or, you are using Smart Host and a DNS server that does not support TCP queries (see KB #)
  • Or, you are attempting to run Microsoft Commercial Internet System on Windows 2000 (see KB #)



Q4: Emails go out without any problem to the majority of users, but AOL users can't get any email from the server?

A4: If the email problem only happens to users from a very limited number of domains, this indicates two things:
  1. The forum software works
  2. The DNS server responsible for managing Reverse DNS record for your machine is not configured properly
This problem usually happens to dedicated / colo server users. You need to make sure that the mail server machine IP has a PTR record on your own DNS server OR your network provider's DNS server.



Q5: A small portion of my members can't get subscription notifications, while others can.
A5: It comes down to one of the following reasons:
  1. Their SPAM filters on their email servers are actively blocking mails from you
  2. Their SPAM filters on their email clients are actively blocking mails from you
  3. Their mail servers check for SPF record / reverse DNS entry (e.g. AOL users) which your mail server doesn't have (See Q4 above)
  4. Your mail server blocks emails sent to certain domain
  5. You are sending out subscription notification via BCC, not TO -> the setting is in the Basic Configuration section in the admin control panel. Change the setting to "TO" may solve the problem.


< Message edited by Samuel -- 2006-02-13 14:54:08 >


_____________________________

Samuel Chou
Forum Administrator
ASPPlayground.NET's Developer
  • If you select CDONTS in the admin panel, make sure you have the SMTP service running.
  • If you are using CDONTS, make sure the pickup directory has the correct permission set for "guest" (you need write access at least). Otherwise you will see this error message: Permission denied . The following message is quoted from:

    quote:

    Getting a Permission Denied Error?
    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 Modify permissions on the mail root Pickup directories (usually C:\InetPub\mailroot\Pickup). (For example, if your Web server' s name is Bob, ensure that IUSR_Bob has these permissions.)


    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:

    quote:

    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.

  • quote:

    Getting a Permission Denied Error?
    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 Modify permissions on the mail root Pickup directories (usually C:\InetPub\mailroot\Pickup). (For example, if your Web server' s name is Bob, ensure that IUSR_Bob has these permissions.)
    quote:

    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.
  • Exchange Server 2000 sp3 w/ CDONTS or CDOSYS problem:



    Use Workaround 2 in the document.
  • Mail relay rejected when you use CDOSYS:
    SMTP Mail Relay May Stop Working When Using IIS/MCIS SMTP Service and Non-RFC EHLO/HELO Command Format

  • If you select other components from the list, make sure you install them properly. Otherwise you will see this error: Server.CreateObject Failed .
  • 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.
  • 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 C:\Inetpub\mailroot\Pickup . You will also have to make sure that the Internet Guest account (IUSR_MachineName) has modify rights to the pickup directory. That means the IUSR account must be able to write files to and delete files from the pickup directory.
  • 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?
  • 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.
  • ASPMail
  • ASPQMail (message queuing)
  • JMail (version 3 & 4)
  • ASPEMail
  • CDOSYS (both pickup directory & external SMTP)
  • CDONTS
  • SoftArtisans SMTPMail
  • if your mail is not leaving the queue folder, check out
  • 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
  • make sure SMTP Virtual Server is running in Internet Services Manager
  • check the event log for SMTP Service events
  • turn on logging for your SMTP server, to see if the mail is even being attempted to be sent to the server
  • make sure your smarthost and FQDN are configured correctly
  • make sure your smarthost allows you to relay unconditionally (some require authentication)
  • 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
  • restart the SMTP Service (or IIS altogether), and if that fails reboot the server, to see if this clears up the backlog
  • make sure you are sending from / to a valid address / domain
  • check any .rtr files in the queue folder - these can be caused by various mistakes in code or config
  • check the server itself by setting up outlook express on the machine, using the same settings, and attempting to send mail
  • if the machine is behind a firewall/router, make sure it has access to port 53
  • quote:

    Unable to deliver this message because the following error was encountered:
    This message is a delivery status notification that cannot be delivered.
    Specific error code was 0xC00402C7
  • 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 #- fixed in Windows 2000 Service Pack 2)
  • Or, you've reinstalled the IIS SMTP service (see KB #), or your SMTP service isn't properly configured (see KB#)
  • Or, you are using Smart Host and a DNS server that does not support TCP queries (see KB #)
  • Or, you are attempting to run Microsoft Commercial Internet System on Windows 2000 (see KB #)
  • The forum software works
  • The DNS server responsible for managing Reverse DNS record for your machine is not configured properly
  • Their SPAM filters on their email servers are actively blocking mails from you
  • Their SPAM filters on their email clients are actively blocking mails from you
  • Their mail servers check for SPF record / reverse DNS entry (e.g. AOL users) which your mail server doesn't have (See Q4 above)
  • Your mail server blocks emails sent to certain domain
  • You are sending out subscription notification via BCC, not TO -> the setting is in the Basic Configuration section in the admin control panel. Change the setting to "TO" may solve the problem.
  • Post #: 1
    Page: [1]
    Page: [1] All Forums >> [Announcements] >> ASPPlayground Knowledge Base >> E-mail does not work properly? Page: [1] Jump to:
    New Messages No New Messages
    Hot Topic w/ New Messages Hot Topic w/o New Messages
    Locked w/ New Messages Locked w/o New Messages
    New Messages No New Messages Hot Topic w/ New Messages Hot Topic w/o New Messages Locked w/ New Messages Locked w/o New Messages Post New Thread
    Reply to Message
    Post New Poll
    Submit Vote
    Delete My Own Post
    Delete My Own Thread
    Rate Posts Forum Software © ASPPlayground.NET Advanced Edition

    Looking for more help? Browse the support forum or check the Knowledge Base.