I can't seem to send a text string with $CrLf's embedded. In Body$ below, Eudora shows Test Test instead of two separate lines. Do I need to send something else other than $CrLf 's?
=====================================
If a man could have half his Wishes,
he would double his troubles.
Ben Franklin
=====================================
Code:
' Sub W_Email_Tape common_Locals Local ppr As String Pointer Local subj, body As String 'find name only i = InStr(-1, Prm.Current_File_Name, "\") + 1 subj$ = Mid$(Prm.Current_File_Name, i) subj$ = Trim$(subj$) ' Body$ = "test " & $CrLf & $CrLf & "test" ' Tape_to_String s$ = "[EMAIL="gosta"]MailTo:gosta[/EMAIL]" & _ "?Subject=" & subj$ & _ "&Body=" & Body$ & _ Chr$(0) ppr = StrPtr(s$) '>>>>>> Does not send $crlf's in Body$ or Eudora does not receive them. ShellExecute 0, "open", ByVal ppr, ByVal 0&, ByVal 0&, %SW_SHOWNORMAL 'HINSTANCE ShellExecute( ' ' HWND hwnd, // Handle To Parent Window ' LPCTSTR lpOperation, // Pointer To String that specifies operation To perform ' LPCTSTR lpFile, // Pointer To filename Or folder Name String ' LPCTSTR lpParameters, // Pointer To String that specifies executable-file parameters ' LPCTSTR lpDirectory, // Pointer To String that specifies Default directory ' Int nShowCmd // whether file Is shown when opened ' ? Body$,, FuncName$ End Sub '
If a man could have half his Wishes,
he would double his troubles.
Ben Franklin
=====================================
Comment