ok here the code i use but it doesnt send it with text attribitues !!! why is that ???
| Код | function SendShellEmail( ARecipientEmail, ASubject, ABody : string ) : boolean; // Send an email to this recipient with a subject and a body var iResult : integer; S : string; begin If Trim(ARecipientEmail) = '' then ARecipientEmail := 'mail'; S := 'mailto:' + ARecipientEmail; S := S + '?subject=' + ASubject; If Trim(ABody) <> '' then S := S + '&body=' + ABody; iResult := ShellExecute( Application.Handle,'open', PChar(S), nil, nil, SW_SHOWNORMAL); Result := iResult > 0; end;
procedure TForm1.Button1Click(Sender: TObject); var s: TStringStream ; begin s:= TStringStream.Create(); RichEdit1.PlainText:= False; RichEdit1.Lines.SaveToStream(s); SendShellEmail('[email protected]','Hello',s.DataString); end;
|
outlook body is like that !!!
| Цитата | {\rtf1\ansi\ansicpg1254\deff0\deflang1055{\fonttbl{\f0\fnil\fcharset162 Square721 BT;}}{\colortbl ;\red49\green106\blue197;}\viewkind4\uc1\pard\cf1\f0\fs44 RichEdit1\par\par}
|
|