Mendelsohn, Michael wrote:
Hi list...
I'm using buddy API's baOpenURL to generate an email message and
populate it with some body text. (We're all on Windows XP using
Outlook.) My issue is that the code below doesn't render a carriage
return in the body. Anyone ever do this with baOpenURL?
I've been using this in a personal tool, it's a bit clunky with Mozilla
but it works well enough for my purposes. It may help you with baOpenURL.
on mouseup me
txt = "mailto:[EMAIL PROTECTED]@jkl.net&Subject=Subject Line" & the
short date &"&body="
txt = txt & encodeMail(member("target").text)
gotonetPage(txt)
end
on encodeMail txt
repeat while true
ofst = offset(return,txt) <<!
if ofst then
put "%0a" into char ofst of txt
else
exit repeat
end if
end repeat
return txt <<!
end
urlencode is helpful for finding the codes for difficult characters, but
it is not your friend for creating the body of an email,
your+body+text+will+look+like+this.
! Oh, the difference a comma makes. Why, it's almost a pun. ;)
--
Carl West
mailto:[EMAIL PROTECTED]
http://carl.west.home.comcast.net
----------------------------------
Imagine with me, a dream, a wish,
a prayer that for one day,
just 24 hours, all around the world,
no one raises their hand to another.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email
[email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for
learning and helping with programming Lingo. Thanks!]