Ewon TechForum
Providing technical solutions to technical requests


Email Attachments With Date In Filename
Quinn Mallory Offline
Junior Member
#1
Hello,  I have an email item setup in the Planner that is successfully sending me data each day.  I want to add the current date to the file name, but cannot figure out how to get it to work.

Here is the working text file attachment

[$dtHT$ftT$st_s86400$et_s0$fnDaily_Historical_Log_GroupC.txt$flC]

Here is the closest I can figure should add in the Date, but it just cuts off after the "C_"

[$dtHT$ftT$st_s86400$et_s0$fn"Daily_Historical_Log_GroupC_" + Date$ + ".txt"$flC]



I have a Rule setup in Outlook that pushes these files to a shared drive, and have a spreadsheet setup with a graph and we can choose available files. But right now every file received has the same name, so they just overwrite each other.
Reply

simon Offline
eWON Support
#2
Hi,

To do that you have to use the BASIC script instead of the Task planner.

Ex (in init section):

ONDATE 1, "0 0 * * *", "GOTO SENDDAILYMAIL"
END
SENDDAILYMAIL:
A$ = TIME$ REM 19/12/2014 10:03:01
A$ = A$(1 To 2) + A$(4 To 5) + A$(7 To 10) + "_" + A$(12 To 13) + A$(15 To 16)+ A$(18 To 19)
SENDMAIL "recipient@mail.com", "ccrecipient@mail.com", "MySubject", "[$dtHT$ftT$st_s86400$et_s0$fnDaily_Historical_Log_GroupC_" + A$ + ".txt$flC]"
Reply



Possibly Related Threads…
07-11-2019, 04:13 PM
Last Post: simon
  Send Report via Email Started by mtappa
1 Replies - 1.606 Views
13-12-2018, 04:45 PM
Last Post: ziozetti
02-10-2018, 12:14 AM
Last Post: kharlytoz
  SMS and email sent bit Started by vn2054
4 Replies - 6.389 Views
24-09-2018, 02:25 PM
Last Post: simon
  Date and Time Update Started by pkalika
13 Replies - 5.911 Views
23-01-2018, 11:22 AM
Last Post: simon
  Can i use Unix date format? Started by timon
4 Replies - 2.033 Views
14-11-2017, 02:06 AM
Last Post: timon
27-10-2017, 09:12 AM
Last Post: jiayuan0727



Users browsing this thread:
1 Guest(s)



Theme © Ewon 2019 - Forum software by © MyBB - Cookie policy