1
I am trying to send e-mail using outlook, through Delphi7, I used this Documentation: Command-line switches to open the outlook with message parameter passing, conforms below:
var
para,assunto,mensagem : string;
begin
para := '[email protected]';
assunto := '&subject='+'Contato secreto sobre o assunto';
mensagem := '&body='+'Bom dia,
contato recebido com sucesso';
WinExec(PChar('C:\Program Files\Microsoft Office\Office16\outlook.exe '+'/c ipm.note /m '+para+assunto+mensagem);
end;
But when I send, it returns the message:
Cannot start Microsoft Outlook.
The command line argument is not valid. Check the options used.
What happens if you copy this into the text box in the Windows Run Dialog and press OK?
– Reginaldo Rigo
Same error as the message comes straight from Outlook. Thank you
– David