?
Solved

ASP.NET on IIS server mail history

Posted on 2006-10-20
7
Medium Priority
?
200 Views
Last Modified: 2010-04-20
Quick question!   I have a program that sends email to users on certain commands on my .NET application using the SmtpMail.Send(Mail) command in VB.NET on a web application.  I want to veiw the emails that have been sent in the past.  

Where can I find a Sent folder for the IIS server.  The email address that I am using is a comcast email address and email server.   I would just figure that the server would keep a copy of an email that it generated or sent but I could be wrong.

Thanks,

Dean
0
Comment
Question by:Lucree
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
7 Comments
 
LVL 58

Expert Comment

by:amit_g
ID: 17779112
No IIS doesn't keep the copy of sent email. There is no "Sent Items" in it. So you can't find out what had been sent by it.
0
 
LVL 18

Expert Comment

by:Sam Panwar
ID: 17793078
Hi,

You just see the logs of the mail which send through the IIS in IIS logs files and amit already update you that it is not possible.

If you want to a copy of the cdosys mails then you can just use a cc address in your code so one mail delivered to the that address like the following code :


-------------------------------------------------------------------------------------------
<%
Set cdoConfig = Server.CreateObject("CDO.Configuration")
cdoConfig.Fields.Item(sch & "sendusing") = 2
cdoConfig.Fields.Item(sch & "smtpserver") = "mail.yourdomain.com"
cdoConfig.fields.update
Set cdoMessage = Server.CreateObject("CDO.Message")
Set cdoMessage.Configuration = cdoConfig
cdoMessage.From = "test@yourdomain.com"
cdoMessage.To = "test@medomain.com"
--------------------------------------------------------------------------------------------------
cdoMessage.cc = "test@otherdomain.com"   // please use the email address on which one copy of that mail delivered.
------------------------------------------------------------------------------------------------------
cdoMessage.Subject = "enquiry form CDOSYS componets"
cdoMessage.HTMLBody = "your text"
cdoMessage.Send
Set cdoMessage = Nothing
Set cdoConfig = Nothing
response.redirect= "http://www.yourdomain.com"
%>
--------------------------------------------------------------------------------------------------------------

And you can easily back up of your that mails fromt that email address . This is the good way to back up of cdosys mails.
0
 

Author Comment

by:Lucree
ID: 17796027
I am looking for emails that have already been sent.  I have already started to copy myself on them.  But I need to find out what has already been sent and when it was sent.  I know you can look here "C:\inetpub\mailroot\Mailbox", but this is empty.  I am looking in the wrong place?

Thanks,

Dean
0
 
LVL 58

Accepted Solution

by:
amit_g earned 1000 total points
ID: 17798038
There is no copy of the email anywhere as IIS doesn't keep a copy.
0
 
LVL 18

Assisted Solution

by:Sam Panwar
Sam Panwar earned 1000 total points
ID: 17800910
Hi,

if you want to see the mail which is currently sending then you can see these mails in the C:\inetpub\mailroot\queue\

Mails which is not delivered in the
C:\inetpub\mailroot\drop\

Mails which is incomplite format so bad mail are in the

C:\inetpub\mailroot\bad mail
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question