Hi all,
This is a routine I 'borrowed' from Borje to send e-mail using the 'mailto:' command.
As you can see in the code, the '&' character is replaced by %26.
Nevertheless, when I try to send a mail that has something like
"abc&de" in the body of the mail, my Eudora only shows "abc" in the body
of the mail.
Do any of you noticed something similar? I use Eudora 5.0 on Win2k.
Kind regards
Eddy
------------------
[email protected]
[This message has been edited by Eddy Van Esch (edited September 05, 2001).]
This is a routine I 'borrowed' from Borje to send e-mail using the 'mailto:' command.
As you can see in the code, the '&' character is replaced by %26.
Nevertheless, when I try to send a mail that has something like
"abc&de" in the body of the mail, my Eudora only shows "abc" in the body
of the mail.
Do any of you noticed something similar? I use Eudora 5.0 on Win2k.
Kind regards
Eddy
Code:
FUNCTION SendAsMail(mStr AS STRING) AS LONG LOCAL mLen AS LONG, mText AS STRING mLen = LEN(mStr) IF mLen > 1 THEN REPLACE CHR$(13,10) WITH "%0d%0a" IN mStr 'Proper linefeed for mail REPLACE CHR$(32) WITH "%20" IN mStr 'Spaces REPLACE CHR$(38) WITH "%26" IN mStr '& END IF mText = "mailto:" & Rec_EMail(Rec_CurrentReceiver) & "?" mText = mText & "Subject=" & Rec_Subject(Rec_CurrentReceiver) mText = mText & "&Body=" & mStr FUNCTION = ShellExecute(hMain, "open", BYVAL STRPTR(mText), "", "", %SW_SHOWNORMAL) END FUNCTION
------------------
[email protected]
[This message has been edited by Eddy Van Esch (edited September 05, 2001).]
Comment