Lasso Soft Inc. > Home

[ email_compose->asString ]


Outputs the contents of an [email_compose] object as a string. Calling this member method produces the raw email text of the message being composed.

  • Syntax
var(my_msg) = email_compose(...)
  • Beginner

Inspecting the raw content of an [email_compose] object

The code below composes an email through various steps and then allows you to see what will be produced.


var(my_msg) = email_compose(-to='', -from='', -subject='Multi')
$my_msg->addTextPart(-data='# Lost Rhino!')
$my_msg->addHtmlPart(-data='<h1>Lost Rhino!</h1>')


MIME-Version: 1.0
X-Mailer: Lasso Professional 9.0
Message-ID: <014F359B-80CC-42DB-9070-E3E889A60A4D@>
Date: Thu, 3 Feb 2011 17:08:59 -0500
Subject: Multi
Content-Type: multipart/alternative; boundary="====_-LASSO-E688FEA8-7C4E-4FB1-8505-2DBE5A728CCF-_===="

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

# Lost Rhino!

Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<h1>Lost Rhino!</h1>


Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft