ShowURL

From REALbasicWiki

Jump to: navigation, search
Overall article skill Skill ranges from beginner (green) to expert (red)


[edit] How to create a multi-line mail message

Several people had recommended encodeURLcomponent - what they failed to mention is that you need to encode every component, not just the body.

The following even works in Entourage:

dim Body as string

body = TextArea1.text + EndOfLine + EndOfLine + TextArea2.text

showURL "mailto:" + EncodeURLComponent("me@hotmail.com") + "?subject=" + EncodeURLComponent("Hello from me") + "&body=" + EncodeURLComponent( Body )
Personal tools
related