Link | indx_exMailClean |
Author | Clive Bruton |
Category | String |
Version | 8.x |
License | Public Domain |
Posted | 20 May 2009 |
Updated | 20 May 2009 |
More by this author... |
Tag cleans-up an email address string which has extended characters in it Lasso < 8.5 produces an invalid address form when such characters occur and the subsequent email gets stuck in the SMTP queue table. This essentially requires quoting of the "name" portion of the email string, expects an email address in the form: Your Name
indx_exMailClean(#yourEmailAddress) indx_exMailClean('Bød Këw') indx_exMailClean(-mailAddr='Bød Këw ')
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.
') */ if: #mailAddr >> '"'; // Has quoted text, probably safe //#mailAddr += ' has quotes'; // debug line else: #mailAddr >> '<' && #mailAddr >> '>'; // Contains angle brackets #mailAddr = output('"', #mailAddr); #mailAddr->(replace: '<', '" <'); //#mailAddr += ' has angle brackets'; // debug line /if; return: #mailAddr; /define_tag; ?>
No comments
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft