Hi,
I'm looking for the simplest possible way to send an email.
I have the email address in a database which I can easily extract, but I'm having difficulty finding a working way of sending the email.
I need to be able to manipulate the body text by adding a date and other values from the database.
I first tried:
pCh := 'mailto: peter@preview.org?subject=my subject&body=Body text';
ShellExecute(0,'open',pCh, NIL, NIL, SW_SHOWNORMAL);
This works fine opening the default mail client, but I couldn't insert any fields into the body, apparently due to a PAnsiChar incompatibility. There doesn't seem to be a function to convert String to PAnsiChar.
I also looked into NMSMTP - but I'm using Turbo Delphi 2006 and don't seem to have the DCU for this.
Therefore, does anyone have any suggestions or good Delphi-email pages which may help.
Thanks
Alex