This is not a tag, but a patch of one of Lasso's built in datatypes which is used by [email_send].
This patch makes it possible to specify an alternate SMTP MAIL FROM address when sending email with the email_send tag, which lets you control where bounces go to. This lets you manage bounces more efficiently when doing mass mailings.
The patch is a modified version of the internal member tag email_smtp->send, which will override the built-in member tag when loaded from LassoStartup. Put smtp_send8.lasso in LassoStartup, then restart Lasso.
Specify the desired bounce-to address by adding a custom header "X-Bounce-to" when sending the message, like this: -ExtraMIMEHeaders=(array: 'X-Bounce-to'='bounces@mydomain.se'). The bounce-to will be used as SMTP FROM address when sending the message. This address will be used as bounce address for well-behaving email systems. The SMTP FROM address is then added as Return-Path header at the top of the message headers by the receiving mail server when the message is delivered to a mailbox, so look for that header when verifying that the bounce address is right. Please note that the added custom header will remain in the message after it is sent.
The patch works with Lasso 8.0 and 8.1. It it probably still needed for 8.5 but has not been verified yet.
History 2005-01-03 Patch version 1.0 Johan Sölve 2005-04-12 Patch version 1.0.1 Johan Sölve Added unfolding of headers when looking for bounce address 2005-05-13 Updated for Lasso 8.0.4 2005-11-24 Updated to allow empty sender in X-Bounce-To 2006-12-21 Added version check for 8.5 2006-12-27 Corrected typo in version check for 8.5
Parameters
none
Sample Usage
email_send: -from='sales@mydomain.se',
-to='all@customer.se',
-subject='Latest news from us',
-body=$message,
-ExtraMIMEHeaders=(array:
'X-Bounce-to'='bounces@mydomain.se');
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.