Solved

ASP.NET on IIS server mail history

Posted on 2006-10-20
7
184 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
  • 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 250 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 250 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Time Sheet Help 6 34
cloud web Service looking for a home... 3 95
Has my website been infiltrated? 21 58
DNS, website, godaddy 6 43
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now