Recent

Author Topic: Simple way to send email. How?  (Read 6009 times)

Microges2000

  • New Member
  • *
  • Posts: 24
Simple way to send email. How?
« on: December 01, 2010, 12:50:35 pm »
Dear,

in Delphi/Windows the more simple way to send an email (with or without attach) and using the current mailer program is:

Var
  Message : String;
Begin
  Message :=   'mailto:name@address.ext'
             + '?subject=Mail object'
             + '&body=Body line 1' + '%0D%0A'
             + 'Body line 2'
             + '&Attach=c:\MyAttach.txt';
  ShellExecute(Handle, Message, Nil, Nil, SW_NORMAL);
End;

Now, exist a similar procedure using lazarus that work under windows/linux and/or MAC?

Thanks,
David

Leledumbo

  • Hero Member
  • *****
  • Posts: 8774
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Simple way to send email. How?
« Reply #1 on: December 01, 2010, 01:28:28 pm »
Quote
Now, exist a similar procedure using lazarus that work under windows/linux and/or MAC?
I don't think we have that yet. If it's really required frequently, perhaps somebody wants to commit a change to LCLIntf for this like OpenDoc and OpenURL.

Microges2000

  • New Member
  • *
  • Posts: 24
Re: Simple way to send email. How?
« Reply #2 on: December 02, 2010, 12:37:17 pm »
Thanks, OpenURL work perfectly (but without attach)  :-*

 

TinyPortal © 2005-2018