Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Send eml files via email
Topic Summary: Is it possible.
Created On: 05/28/2015 04:54 PM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by PhillipWilkie, on Thursday, June 4, 2015 5:18 PM

Answer:

Leonard,

Thanks for the response.  I have decided to write the attachments out seperatly as well as the EML.  Then I can use the SendMail function to send an email that looks like the EML and archive the source incase it needs to be resent.  

I cannot attach the EML files as some clients parse the attachments.

Thanks

Phillip.

 05/28/2015 04:54 PM
User is offline View Users Profile Print this message

Author Icon
PhillipWilkie
Apprentice (20-49)

Posts: 29
Joined: 10/09/2014

I have a legacy system that creates all emails to EML files.  These may have attachments.

Can I pick these files up and send them as is?

 

CHeers

Phillip



 Category Survey
AutoMate 7 version: 7.1.2
Windows version: Windows 2003
 05/29/2015 09:50 AM
User is offline View Users Profile Print this message

Author Icon
Valentineo McGowan
HelpSystems

Posts: 766
Joined: 09/03/2013

Hello Phillip,

Are you attempting to use the 'Get E-mail' action to retrieve existing mail from your server?
OR
Are you attempting to use the 'Send E-mail' action to send 'new' emails that contain the external *.EML file as an attachment?

 Category Survey
AutoMate 7 version:
Windows version:


-------------------------

Valentineo McGowan | Technical Consultant
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1 213.738.6966 | F: +1.213.738.7665
 05/31/2015 12:53 PM
User is offline View Users Profile Print this message

Author Icon
PhillipWilkie
Apprentice (20-49)

Posts: 29
Joined: 10/09/2014

Valentineo,

Neither. Our legacy system writes the emails as flat files with an eml extention, which outlook recognises as an email. (I have included a sample of the VB6 code)

It then picks them up and, using VB6 sends them using ASPEMAILLib.dll,  a thirsd party email library.

I am trying to move the creation and sending across to Automate.  

I have got the writing completed, which includes 2 embedded attachments, so when you double click the email they open in outlook and you can view the attachments.

Now I need automate to pick up these, essentially saved, emails from the file system and send them using the embedded details.  

It needs to be done in this way as the users of the VB6 application can view the contents of the emails and resend them if necessary.

I have attached a sample of the eml file, of a dummy client,  so you can view the content.  I have to change the extention to .txt as the forum will not allow .eml

 

Cheers

Phillip



 Category Survey
AutoMate 7 version: 7.1.2
Windows version: Windows 2003



Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)



 06/01/2015 12:20 PM
User is offline View Users Profile Print this message

Author Icon
Valentineo McGowan
HelpSystems

Posts: 766
Joined: 09/03/2013

Hello Phillip,

When you say these *.EML files are to be picked up from the file system do you mean from somewhere within your network, as in a shared drive?
Once the files are created do you need to simply copy/move them to another location within your network OR are they being transferred outside to a vendor?

You may use the Copy/Move File action(s) if internal.

 Category Survey
AutoMate 7 version:
Windows version:


-------------------------

Valentineo McGowan | Technical Consultant
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1 213.738.6966 | F: +1.213.738.7665
 06/01/2015 04:39 PM
User is offline View Users Profile Print this message

Author Icon
PhillipWilkie
Apprentice (20-49)

Posts: 29
Joined: 10/09/2014

Valentino,

The files are written to a local folder.

The legacy process picks up the file and passes it to the SMTP server.  Since the file has all of the messaging header the SMTP server sends it as it would any other composed email.  

The email is then archived on a network fileshare so it can be viewed by system users later.

I have created an autoamte job that creates the file, now I need to pass the file to the SMTP server.

I was wonding if the Send Email function and pick up a saved email and resend it as that is essentially what we are doing, or if I have to write a script that picks up the files and sends them to the SMTP server.



 Category Survey
AutoMate 7 version: 7.1.2
Windows version: Windows 2003
 06/02/2015 01:22 PM
User is offline View Users Profile Print this message

Author Icon
Leonard Amabile
HelpSystems

Posts: 5454
Joined: 05/15/2007

Phillip,

AutoMate does not process .eml files in the way that you are looking for but there are other scenarios:

1. AutoMate can send the .eml as an attachment using the Send Email action. You can parse the message header to determine the destination. The recipient can then open the .eml attachment which will contain the information and attachments.
2. AutoMate can execute the VB script as you currently do manually to process the .eml files as you intended.
3. AutoMate can open the .eml file in Outlook and then you can use the interactivity actions to then forward or reply to the opened email.




 Category Survey
AutoMate 7 version:
Windows version:


-------------------------

Leonard Amabile | Director, Cross Platform Support
AutoMate | InterMapper | Skybot | Divisions of HelpSystems
T: +1.213.738.1700 | F: +1.213.738.7665
 06/04/2015 05:18 PM
User is offline View Users Profile Print this message

Author Icon
PhillipWilkie
Apprentice (20-49)

Posts: 29
Joined: 10/09/2014

Answer Answer

Leonard,

Thanks for the response.  I have decided to write the attachments out seperatly as well as the EML.  Then I can use the SendMail function to send an email that looks like the EML and archive the source incase it needs to be resent.  

I cannot attach the EML files as some clients parse the attachments.

Thanks

Phillip.



 Category Survey
AutoMate 7 version: 7.1.2
Windows version: Windows 2003
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1440 guests browsing this forum, which makes a total of 1440 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog