-----BEGIN PGP SIGNED MESSAGE-----

Hello TBTech,

        For all interested, I have come up with some
instructions for creating HTML messages with TB.  Please toss it
around to see what mistakes there are or if I neglected to
account for any unforeseen possibilities...

Composing solid multipart HTML messages:

Purpose:

        To create an HTML message that can be read by both HTML
        and Text-Only e-mail clients without the side effects of
        simply using an attachment.

        First, this method, while solid, is a bit too involved
        to create one HTML message. It's application is better
        suited to mailing a newletter on a mass scale or the
        like. As such, that's how I will approach the details.
        However, it still can be used for single messages, of
        course. Simply adjust the message creation portions of
        this text to suit your needs.

Step One.

        Create two HTML files in your favorite editor. The first
        one should be the one you actually want to send,
        formatted to your liking. The second should be extremely
        small (to save time) and named something like
        'dummy.html' without the quotes.

        The 'dummy.html' file could be something like the
        following:
- --
<html>
<head><title>Dummy File</title>
</head>
<body>Dummy</body>
</html>
- --

        The reason for the dummy file is for something constant
        to search on. The code TB converts it too will be easily
        searched and replaced with the true file you want. It's
        small size is important since the exported and
        re-imported files will later be deleted anyway. Why take
        up useless space more than once? Small size also speeds
        the search process.

(Note: The dummy file's creation is completely unnecessary when
only concerned with creating one single e-mail as a result)

Step Two:

        Create the real HTML file...the one you want to send.
        I'll do something simple again just to save space here
        and keep it easy on the eyes:

- --
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>My Tres Cool Message :)</title>
<body><h3 align="center">My <b>Utterly</b> <i>Cool</i> Message
to You:</h3>

<p>Finding a break in work tonight, I knew not what to do with
myself. It was not sufficient to simply waste my own time. So, I
am out to waste yours as well. Not that you don't waste my time.
What, with all those corny forwarded jokes and "forward this to
100 people in the next 15 seconds or you'll develop a rash"
crap!<br> In fact, why am I writing you at all?</p>

<p>You have the nerve to try to make me feel guilty for not
responding to any of your <i>messages</i> for a measly 42
months! All you send me is the same old tired, forwarded crap
that takes not an ounce of energy, let alone thought, to spew
forth. From now on, you'll be hearing from me daily as I have
configured my far superior mail client (The Bat!) to redirect
all my spam to you courtesy of yours truly.</p>

<div style="background-color:#ffcc00; text-align:right;
color:#ff0000;">
Sincerely yours,
<a href="[EMAIL PROTECTED]">Anonymous</a></div>
</body>
</html>
- --

Step Three:

(NOTE: This step is unecessary for creating simgle messages;
instead, create a message and attach your desired HTML file and
follow up with Step 4)

        Choose your address book / group to whom you wish to
        send messages and create a mass mailing template for
        them. The template should include a %ATTACHFILE= macro
        that includes your dummy.html file and the text portion
        of your HTML message minus all tags, of course. Make
        sure that the "Action" portion of the Mass Mailing
        dialogue is set to "Put in Outbox".

Step Four:

        After TB creates all the messages with you attached
        dummy.html file, export them as .MSG files to a
        temporary folder you can access quickly.

Step Five:

        Delete the generated messages from the Outbox and open
        one of the exported .MSG messages in a text editor.

Step Six:

(NOTE: Depending on the number of messages you're dealing with,
it may help substantially to use a find / replace tool such as
'Adanced Find and Replace' or any tool that can perform multiple
replace actions in one sweep across an entire folder's contents.
If you are only creating one message, editing by hand will do
just fine.)

        Perform the following search and replace actions between
        the *** lines:

***************

        Look For:

Content-Type: multipart/mixed;

        Replace with:

Content-Type: multipart/alternative;

        Look For: (note that the file name and code portions
        will differ depending on the dummy file you create)

Content-Type: text/html; name="dummy.html"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="dummy.html"

PGh0bWw+DQo8aGVhZD48dGl0bGU+RHVtbXkgRmlsZTwvdGl0bGU+DQo8L2hlYWQ+DQo8Ym9keT5E
(*whole bunch of code dependant on your attached Dummy file*)
dW1teTwvYm9keT4NCjwvaHRtbD4=

        Replace with:

Content-Type: text/html
Content-Transfer-Encoding: 8bit

(Insert your real HTML source code here)

***************

That's It for the find and replace. Be sure not to delete or
replace the boundary markers like '------------12A4D95AB37924--'
though!

Step Seven:

        Make sure you have deleted the messages you previously
        exported from your Outbox. Then Import the newly
        aletered .MSG messages into the Outbox. They / It should
        be ready to go. Be sure to clean all those .MSG files
        out of the temporary folder if you use this method
        often.

- --
Best regards,
James
[EMAIL PROTECTED]
http://www.stamp-co.com

   Bad spellers of the world UNTIE!

The Bat! v.1.54 Beta/43
Windows 2000 build 2195 Service Pack 2
AMD Athlon 1Ghz 512 MB RAM

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQCVAwUBPHm1lbUD0qHLxr2DAQFbEwQAuN01Q2vUpbRy8FBUzejQvVLzTiSGNifV
4wMZ8RYDeenQ3zv2PJ1m8ENav33siYWhbrucNkTGrtFw79dET7gA6KmsFGYi3feu
Kbr9arWJcQRkzeBAndZXKOoApARAxioGr8dhSvG89wnCA/R7AzRSpyU1ZmKVVwT0
sqNshYpK9W4=
=/Gp0
-----END PGP SIGNATURE-----


-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to