SmtpMail/MailMessage - Get entire Message

  • Thread starter Thread starter Raterus
  • Start date Start date
R

Raterus

I've created a program to centralize where our company sends out automated emails. I'd like to log the full contents of the email (headers/to/subject/body/attachments/etc.) to a text file. What I'm unsure of is how to get a text representation of the email message, exactly like it would be sent to the mailserver. Does anyone know how to get this, or if it is even possible?

Thanks for any help,
--Michael
 
Hi,
if your program use your Compny Mail Server. You can use logs of this mail
server.
Mail Server log contain communication between clients and other mail
servers. You can't
read attach or mail message in Mail Server Log file. If you want view
attachments and
client message, you must configure your mail server to make copy of mail
messages.
Mail Server logs contain only communication of SMTP commands level. If you
like to
see communication between mail servers and clients then logs is sufficient.

I've created a program to centralize where our company sends out automated
emails. I'd like to log the full contents of the email
(headers/to/subject/body/attachments/etc.) to a text file. What I'm unsure
of is how to get a text representation of the email message, exactly like it
would be sent to the mailserver. Does anyone know how to get this, or if it
is even possible?

Thanks for any help,
--Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top