I'm trying to send mail using Outlook, through Delphi7, I've used this Documentation: Command-line switches to open 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:
Can not start Microsoft Outlook. The command line argument is not valid. Check the options used.