Solved

ASP.NET on IIS server mail history

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

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

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

Suggested Solutions

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

930 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

12 Experts available now in Live!

Get 1:1 Help Now