Howie,
I am not parsing the iMS control files. My application (a legacy,
non-relational database) needs to send emails. Its OS has no
capacity to do so easily (WinNT). So, since we are using iMS for our
e-commerce mail handling, we will use it to send these messages as
well. The application creates flatfiles which contain one of three
things: the email header, the email body (text), or the email body
(html). My CF page reads the directory containing these files, and
parses the email header text files. I refer to these email header
files as "control files", since they control the options for sending
the messages.
A feature that I would like to add is to have cfx_iMSMail perform any
mail merges instead of having the database do so. There are at least
three database programs which build the email files, with more to
come, so I want to make them as simple as possible. To do this, the
DB applications create an email header file such as the following:
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Your order has shipped
Type: HTML
Token_Name: Member Name
Token_Street: 1243 Main St
Token_CSZ: Tulsa, OK 74101
Token_Items: ABC XYZ ...
ParseTokens: True
Another DB application might create a header file as follows:
To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Welcome aboard!
Type: TEXT
Token_Salutation: Mr. Jones
Token_Freebie: toaster oven
ParseTokens: True
My CF app will read these files, parse and validate them, and then
send the email messages. The "Type" is used to determine which of
the email body files are needed. Type "MULTI" needs both text and
html email files; Type "HTML" needs only the email html file; Type
"TEXT" needs only the email text file. The problem I run into is
how to pass the tokens into the cfx tag, since each DB app uses
different fields. Since the database is non-SQL, I don't think
there is a way for me to use queries to feed cfx_iMSMail.
I hope this helps.
Steve
On Tue, 19 Mar 2002, Howie Hamlin wrote:
> So, you are parsing the control file for tokens? Could you briefly explain your
>application?
>
> Also, just FYI, the control files are in the standard INI format.
>
> Regards,
>
> Howie
This message is confidential, intended for the named recipient(s)
above and may contain information that is privileged, attorney work
product or exempt from disclosure under applicable law. If you have
received this message in error, or are not the named recipient(s),
please immediately notify the sender at (918) 877-3300 and delete
this e-mail message from your computer. Thank you.
--
Steven Adams, Senior Systems Analyst, MicahTek, Inc.
[EMAIL PROTECTED]
==^=======================================================
This list server is Powered by iMS
"The Swiss Army Knife of Mail Servers"
--------------------------------------
To leave this list please complete the form at
http://www.coolfusion.com/iMSSupport.cfm
Need an iMS Developer license? Sign up for a free license here:
http://www.coolfusion.com/iMSDevelopers.cfm
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [email protected]
==^=======================================================