Solved

ASP.NET on IIS server mail history

Posted on 2006-10-20
7
195 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 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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