Hi,
Simple. %0A is URL encoding for CRLF. So do this:
mailto:[email protected]?subject=Help!&CC=[email protected];[email protected]&BCC=[email protected]&body=Hello%0AWorld
Better, use the VBScript escape function to URL encode the body text. Then you can enter the text normally and use standard %CRLF% to add new lines, and the escape function will ensure the body is formatted correctly. Here's a modified version of VBScript function showing escaped body text parameter:
VBSTART
Sub NewEmail(recipient,subject,body)
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "mailto:" & recipient & "?subject=" & subject & "&Body=" & escape(body)
Set WshShell = Nothing
End Sub
VBEND
VBRun>NewEmail,[email protected],Testing,Hello World%CRLF%how are you?
Open new email window (default email program?)
Moderators: JRL, Dorian (MJT support)
MJT Net Support
[email protected]
[email protected]