This is the fist time I've attempted to use the email tag.

I did a search of my Witango archive and found Robert Schubert's example.

I attempted to implement it with my code:

<@ASSIGN NAME=email_html_body SCOPE=request VALUE='<@INCLUDE
FILE=newsletter/header.txt><@INCLUDE
FILE=newsletter/articlelayout.txt><@INCLUDE FILE=newsletter/footer.txt>'>



<@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: <[EMAIL PROTECTED]>
From: "Peter Eastway Newsletter" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Subject: Peter Eastway Newsletter
--<@MIMEBOUNDARY>
Content-type: text/plain
Content-Disposition: inline

This is the Peter Eastway Newsletter

--<@MIMEBOUNDARY>
Content-type: text/html
Content-Disposition: inline

<@VAR request$email_html_body encoding=meta>

--<@MIMEBOUNDARY>--
">

<@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>

It brings back an error:
Error

An error occurred while processing your request:

File: make_newsletter.taf
Position: Email_Session
Class: Internal
Main Error Number: -2117

The Meta Stack Trace shows (source):


<html>
<head>
<title>An error occurred while processing your request</title>
</head>
<body>    
<h3>Error</h3>
<p>
An error occurred while processing your request:</p>
<p>
File: <b>make_newsletter.taf</b><br />
Position: <b>Email_Session</b><br />

Class: <b>Internal</b><br />
Main Error Number: <b>-2117</b><br />
<br />
<i>
<br />
 <br /><br />

</i>
</p>
<p><b>Meta Stack Trace:</b></p>
<p>

<table border="1" cellspacing="0"><td><td align="center">Line</td><td
align="center">Meta Tag</td></tr><tr><td>0005</td><td><@EMAIL import
name=request$myemail MESSAGE="Content-Type:
multipart/alternative;
boundary="----=_MimePart_0001___FFFF8F1F506897D94804203A"
MIME-Version: 1.0
Message-Id: <17900.1208265946@>
Date: Tue, 15 Apr 2008 13:25:46 -0500
To: <[EMAIL PROTECTED]>
From: "Peter Eastway Newsletter" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
Subject: Peter Eastway Newsletter
------=_MimePart_0001___FFFF8F1F506897D94804203A
Content-type: text/plain
Content-Disposition: inline

This is the Peter Eastway Newsletter

------=_MimePart_0001___FFFF8F1F506897D94804203A
Content-type: text/html
Content-Disposition: inline

<html>

    <head>
    
        <title>Peter Eastway News</title>

        <style type="text/css"><!--
body {
    background-color: #FCFCFC;
}
#ArtNotesHead {  font-family: Arial, Helvetica, sans-serif; font-size: 30px;
text-align: right; color: #979797; visibility: visible; }
#Dateline {  font-family: Arial, Helvetica, sans-serif; font-size: 9pt;
color: #6d6d6d; text-align: right; visibility: visible; }

#Logo {  z-index:2; visibility: visible; }
#NavBarHolder {
    display: block;
    float: center;
}

.NavBar01 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 9px;
    color: #ACACAC;
    padding-top: 1px;
    padding-left: 3px;
}
a:link {
    color: #c6c6c6;
    text-decoration: none;
}
#Layer1 .Body1 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    color: #6D6D6D;
}
.NBody1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-weight: normal;
    color: #ACACAC;
}
a:visited {
    text-decoration: none;
    color: #c4c4c4;
}
a:hover {
    text-decoration: none;
    color: #a4a4a4;
}
a:active {
    text-decoration: none;
    color: #c6c6c6;
}

#Layer1 {
    position:absolute;
    left:254px;
    top:584px;
    width:642px;
    height:274px;
    z-index:8;
}
.style1 {font-family: Arial, Helvetica, sans-serif}

    }
.style2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8pt;
    }
.Heading1 {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11pt;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #C1C1C1;
    text-align: left;
    padding: 3px 3px 3px 8px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    border-bottom-color: #979797;
}

.PhotoCaption {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 8pt;
    font-style: normal;
    font-weight: bolder;
    text-align: right;
    color: #ACACAC;
    font-variant: small-caps;
    background-color: #FFFFFF;
    padding-top: 3px;
}

-->
</style>

    </head>

    <body leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">
        <table width="100%" border="0" cellspacing="0" cellpadding="0"
height="100%">
            <tr height="20">
                <td height="20"><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td width="25" height="20"><img
src="http://www.petereastway.com.au/images/blank.gif";></td>

                <td width="745" height="20"><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td width="25" height="20"><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td height="20"><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
            </tr>
            <tr>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td align="right" valign="top" Height="202" Width="25"><img
src="http://www.petereastway.com.au/newsletter/Graphics/ShadowTopLeft.jpg";
alt="" height="202" width="25" align="top" border="0" /></td>
                <td rowspan="3" width="745">
                
        <table width="745" border="0" cellspacing="0" cellpadding="0">

            <tr>
                <td width=5 height=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
                <td width=735 height=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
                <td width=5 height=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
            </tr>
            
            
            
            <tr>
                <td width=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
                <td>
                
                
                
                <TABLE WIDTH=100% CELLPADDING=20 BORDER=0>

                <TR>
                <TD>
                
                                <div align="right">
                                    <div id="ArtNotesHead">
                                        <div align="right">
                   
A&nbsp;R&nbsp;T&nbsp;&nbsp;N&nbsp;O&nbsp;T&nbsp;E&nbsp;S&nbsp;</div>

                                    </div>
                                </div>
                                <div id="Dateline">
                                        <div align="right">Issue 000 / April
2008&nbsp;</div>
                                    </div>
                                <div id="Logo"><img
src="http://www.petereastway.com.au/newsletter/Graphics/PeterEastwayLogoWhit
eBackG.jpg" width="298" height="41"></div>
                                <div align="center">
                                    <br />

                                    <table width="690" border="0"
cellspacing="0" cellpadding="0" height="15" style="border:solid 1px
#DBDBDB">
                                        <tr height="15">
                                            <td width="115" height="15"
style="border-right:solid 1px #DBDBDB"><div class="NavBar01"><a
href="http://www.petereastway.com.au/index.php";>Home</a></div></td>
                                            <td width="115" height="15"
style="border-right:solid 1px #DBDBDB"><div class="NavBar01"><a
href="http://www.petereastway.com.au/showports.taf";>Image
Portfolios</a></div></td>
                                            <td width="115" height="15"
style="border-right:solid 1px #DBDBDB"><div class="NavBar01"><a
href="http://www.petereastway.com.au/OrderingPrints.php";>Ordering
Prints</a></div></td>
                                            <td width="115" height="15"
style="border-right:solid 1px #DBDBDB"><div class="NavBar01"><a
href="http://www.petereastway.com.au/Newsletter01.php";>Newsletters</a></div>
</td>
                                            <td width="115" height="15"
style="border-right:solid 1px #DBDBDB"><div class="NavBar01"><a
href="http://www.petereastway.com.au/AboutPeter01.php";>About Peter Eastway
</a></div></td>

                                            <td width="115" height="15"
><div class="NavBar01"><a
href="http://www.petereastway.com.au/ContactPeter.php";>Contact
</a></div></td>
                                        </tr>
                                    </table>
                                </div>
                                </TD></TR>
                                <TR><TD>


<center>

<Table width=100% border=0>
<TR>
<TD ALIGN=LEFT HEIGHT=20 colspan=2>


<FONT FACE="Verdana,Arial,Helvetica,Sans-Serif">

<p class="Heading1">Tripping In Spain</P>

    </FONT>
</TD>
</TR>

<!--Center image -->

<!-- End Center image -->

<tr>

<!-- If there is an image and alignemnt is left make it's cell -->
<TD width=200 Valign=top>

<CENTER>
<TABLE BORDER=0>
<TR>
<TD>
<IMG 
src="http://www.petereastway.com.au/news/inlineimages/906705Cordona.jpg";
HSPACE=0 VSPACE=0 border=0>
</TD>
</TR>
<TR>
<TD ALIGN=right>
<div class="PhotoCaption" id="Layer8">Cordoba, 2008</div>

</TD>
</TR>
</TABLE>
</CENTER>

</TD>

<!-- END If there is an image and alignemnt is left make it's cell -->


<!-- Short desc -->
<TD VALIGN=top>
<FONT FACE="Verdana,Arial,Helvetica,Sans-Serif" SIZE="2">
Spain is full of wonderful European vistas - ancient castles, tiny villages,
magnificent cathedrals, and narrow, thin, frightening roads which snake
around the countryside. Although we took a while to separate Spain from our
memories of Italy and France, there's a definite strength and power in the
Spanish countryside that's not found elsewhere in Europe.The photo is of
castle at Cordona. It has been turned into a Parador, a state-run hotel
chain which we frequented on our tour. There's nothing like driving into a
town, up to the castle on the hill and pulling your bags out of the car. The
views from above were great, but as always, the best views are looking back
to the castle itself. There were many locations to choose from. I'm really
looking forward to creating my Spanish series.

</font>
</TD>
<!-- EndShort desc -->







<!-- If there is an image and alignemnt is right make it's cell -->


<!-- END If there is an image and alignemnt is right make it's cell -->


<!--Bottom image -->

<!-- End Bottom image -->


</TR>
</TABLE>

</center>




<br>





<center>

<Table width=100% border=0>
<TR>
<TD ALIGN=LEFT HEIGHT=20>


<FONT FACE="Verdana,Arial,Helvetica,Sans-Serif">

<p class="Heading1">Pyramid Power</P>

    </FONT>
</TD>
</TR>

<!--Center image -->

<!-- End Center image -->

<tr>

<!-- If there is an image and alignemnt is left make it's cell -->

<!-- END If there is an image and alignemnt is left make it's cell -->


<!-- Short desc -->
<TD VALIGN=top>
<FONT FACE="Verdana,Arial,Helvetica,Sans-Serif" SIZE="2">
After talking with my friend Giorgio K who took his family to Cairo a year
or so back, I thought, why not take my family on our way to Spain. Well, I'm
so glad we went - what an adventure. Egypt is the archetypical tourist trap
and we were fleeced well and truly - yet we had a fantastic time. The camel
driver, who took the photo you see here, told me the charge was 200 pounds,
but when I gave him the money, he smiled and said that of course he meant
200 pounds each!!! Makes a great story for the dinner table and I have some
amazing images to work with. Stay tuned for the Egyptian experience on the
website soon!

</font>
</TD>
<!-- EndShort desc -->







<!-- If there is an image and alignemnt is right make it's cell -->


<!-- END If there is an image and alignemnt is right make it's cell -->


<!--Bottom image -->
<TR>
<TD  VALIGN=top>

<CENTER>
<TABLE BORDER=0>
<TR>
<td height=50>
</TD>
</TR>
<TR>
<TD>
<IMG 
src="http://www.petereastway.com.au/news/inlineimages/64080EgyptFamily.jpg";
HSPACE=0 VSPACE=0 border=0>
</TD>
</TR>
<TR>
<TD ALIGN=right>
<div class="PhotoCaption" id="Layer8">The familiy mid-fleece at Giza,
Egypt.</div>
</TD>

</TR>
<TR>
<td height=50>
</TD>
</TR>
</TABLE>
</CENTER>


</TD>
</TR>

<!-- End Bottom image -->

</TR>

</TABLE>

</center>

<br>
</TD>
                </TR>
                </TABLE>

                </td>
                <td width=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
            </tr>
       
            <tr>
                <td width=5 height=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
                <td width=735 height=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
                <td width=5 height=5
background="http://www.petereastway.com.au/images/border.gif";><img
src="http://www.petereastway.com.au/images/border.gif";></td>
            </tr>
        </table>
 </td>
                <td align="left" valign="top" Height="202" Width="25"><img
src="http://www.petereastway.com.au/newsletter/Graphics/ShadowTopRight.jpg";
alt="" height="202" width="25" border="0" /></td>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
            </tr>
            <tr>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>

            </tr>
            <tr>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td Height="202" Width="25" align="right"
valign="bottom"><img
src="http://www.petereastway.com.au/newsletter/Graphics/ShadowBottomLeft.jpg
" alt="" height="202" width="25" border="0" /></td>
                <td Height="202" Width="25" align="left"
valign="bottom"><img
src="http://www.petereastway.com.au/newsletter/Graphics/ShadowBottomRight.jp
g" alt="" height="202" width="25" border="0" /></td>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
            </tr>
            <tr>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>

                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td width="745"></td>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
                <td><img
src="http://www.petereastway.com.au/images/blank.gif";></td>
            </tr>
        </table>

        <p><center><br>
        <a 
href="http://www.petereastway.com.au/newsletter/unsubscribe.taf?email=";>

        <FONT FACE="Verdana,Arial,Helvetica,Sans-Serif" SIZE="-2">Click here
if you do not wish to receive this newsletter in the future.</font>
        </A></center><br><br>
        </p>
    
    </body>

</html>

------=_MimePart_0001___FFFF8F1F506897D94804203A--
"></td></tr></table><font size="1"><i><sup>*</sup>The meta stack is
interpreted top-to-bottom: the top line shows the inner metatag that caused
the error.</i></font></p>
</body>

</html>

                  Byte Services Pty Ltd
               http://www.byteserve.com.au/
                  [EMAIL PROTECTED]
   Ph 02 9960 6099   Mob 0409 960 609   Fax 02 9960 6088

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to