Re: Sending email from a Delphi application




"DIKonsult" <dag.idoff@xxxxxxxxxxxxx> wrote in message
news:ZtzHg.14238$E02.5244@xxxxxxxxxxxxxxxxxx
Hi John,
look simple enough, thanks a lot.
I presume that if I need a bodytext I write:
Mail := 'mailto:e.brown@xxxxxxxxxxx' + '?subject=test'+'?Body='This is a
body text in my mail';

or have I got it wrong?

Could you please explain to me whats actually happening with this call.

opens a url as mail , which goes to mail handler with commands,
not much use for long messages and more than basic messaging
doesn't actually send messages just set them up for further user action

Parameter :='mailto:' + emad + '?subject=' + subject +
'&Body=' + emailBody;

//works up to <=464 max parameter length; ( maybe OS /version variable)
res:=shellexecute(form1.handle,'open',pchar(parameter),nil,nil,SW_SHOWNORMAL); if res <=32 then raiselastwin32error;

.


Quantcast