Richard, I don't have an abstracted bit of code available, however, it is quite easy to do. Simply build an email, complete header, body, mime boundaries etc. If you need to know what that should look like, take a look at the raw source code of an email generated by outlook. You will need to understand what you are looking at somewhat, but it's not too difficult.
Once you have the full email completely built as a text block, import it into an email variable with the @EMAIL tag. Here's some code to give you a hint (the X-Tronics-To header is a custom header element I added to show how that can be done): <@EMAIL import name=request$myemail MESSAGE='Content-Type: multipart/alternative; boundary="<@MIMEBOUNDARY>" MIME-Version: 1.0 Message-Id: <<@RANDOM low=10000 high=99999>.<@TSTOSECS <@CURRENTTIMESTAMP>>@<@VAR request$server_name>> Date: <@CURRENTTIMESTAMP format="datetime:%a, %d %b %Y %H:%M:%S -0500"> To: <<@VAR request$sending_email_address>> From: "<@VAR request$from_text>" <<@VAR request$from_account>@<@VAR request$server_name>> Reply-To: <<@VAR request$reply_to>@<@VAR request$reply_server>> X-Tronics-To: [<@VAR request$sending_email_x>] Subject: <@VAR request$email_subject> --<@MIMEBOUNDARY> Content-type: text/plain Content-Disposition: inline <@VAR request$email_text_body> --<@MIMEBOUNDARY> Content-type: text/html Content-Disposition: inline <@VAR request$email_html_body encoding=meta> --<@MIMEBOUNDARY>-- '> Then use @EMAILSESSION to pass the email to the SMTP server, something like: <@EMAILSESSION command=open sessionid=<@USERREFERENCE> protocol=smtp server=<@VAR request$server_ip> port=25> <@EMAILSESSION command=send sessionid=<@USERREFERENCE> name=request$myemail> <@EMAILSESSION command=close sessionid=<@USERREFERENCE> mode=commit> Witango actually does this with some speed, you can generate 100s of custom emails per minute with this code. Enjoy, Robert PS. If you copy and paste from above, be sure to take out any extra linefeeds in the header, each header element needs to terminate with a single @CRLF, except for the last which needs to have 2 of them. -----Original Message----- From: Richard Bates [mailto:[EMAIL PROTECTED] Sent: Friday, February 15, 2008 10:27 AM To: Witango-Talk Subject: Witango-Talk: Examples of using <@EMAIL> <@EMAILSESSION> & <@MIMEBOUNDARY> Please can someone point me to examples of how to use the tags <@EMAIL> <@EMAILSESSION> & <@MIMEBOUNDARY> Specifically, to get beyond the either/or limitation of the basic 'Mail' action and to create a MIME message that includes the content both in 'text/plain' and 'text/html'. Thanks Richard ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
