Re: send email with shellexecute but crlf in body does not work
- From: "Dan Freeman" <spam@xxxxxxxxxxxxx>
- Date: Thu, 6 Oct 2005 10:07:56 -0700
This isn't surprising when you think about it. ShellExecute() is basically
like opening up a DOS window and typing a command. The CRLF starts a new
line, which isn't accepted in a DOS command.
You should look into alternatives like SMTP, Outlook automation, MAPI, CDO
.... there are a ton of ways to send email.
Dan
andipfaff wrote:
> Hi everybody,
>
> I try to send an email with shellexecute in FVP8 on Win2k with Outlook
> 2000. This the code:
>
> crlf = chr(13) + chr(10)
> t_error_datetime = "2005-10-06"
> t_error_no = "16"
>
> t_error_body = t_error_datetime + crlf + t_error_no
> t_email = "mailto:myself@xxxxxxxxxxxx?subject=something&body=" +
> t_error_body
>
> ShellExecute(0, "open", t_email, "", "", 1)
>
> Unfortunately the body text will not show my crlf. How do I have to
> pass them to Outlook so that they will work in the body part an
> seperate the message lines?
>
> Thanks in advance
> Andi
.
- References:
- send email with shellexecute but crlf in body does not work
- From: andipfaff
- send email with shellexecute but crlf in body does not work
- Prev by Date: Re: PLEASE HELP ----- XP and FOXPRO
- Next by Date: Re: PLEASE HELP ----- XP and FOXPRO
- Previous by thread: send email with shellexecute but crlf in body does not work
- Next by thread: Re: send email with shellexecute but crlf in body does not work
- Index(es):
Relevant Pages
|