[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

Save emails as file

We are writing a program to send out order confirmations when a person orders a product.

Every time a customer makes an order it sends an email to webOrders@blahblah.com. The Exchange server will automatically archive these emails to an EML file or save them to a text file or somthing. Our program will check every few minutes for new orders and email out confirmations.

The problem with this is that I don't know how to archive all emails sent to a specific mailbox.
Anyone know if there is a way that I can do this?
0
David11011
Asked:
David11011
  • 3
  • 2
1 Solution
 
AkhaterCommented:
there is no way to let exchange save emails to an eml or text file
0
 
David11011Author Commented:
Bah, there's always a way. I know that all the emails that are sent through the mail go through a virtual SMTP server and that server saves the emails in a .EML file for a brief moment in the queue folder before it  sends it out.

 I could create a new VSMTP server on a different IP that I could use to only send the emails to the webOrders@blahblah.com address so that it would place EML files in a different queue folder than the rest of our mail. The only problem I would have to tackle here is figuring out how to get the emails to sit in the que folder long enough be copied out to another location.

Any ideas?
0
 
AkhaterCommented:
it would be much neater to change your program to retrieve pop3 from the webOrders@blahblah.com mailbox
0
 
David11011Author Commented:
Holy Crap! that never even crossed my mind. I figured that pulling POP3 emails off of a mailserver would be hours of coding but I just at someone else's code and it look like I can do that fairly easily. I'll give it a try and post back. ty
0
 
David11011Author Commented:
I wrote program that pulls all the emails from the mailbox via POP3 and saves them into to text files. The only problem I'm having is deleting the emails off of the mail server. I will post for hep with that in the programming section.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now