The solution provided by Vladimir did the trick the simplest way I believe. Thanks to all of you for the replies.
I followed the examples of how to use the Shell library function, ShellExecute() from here: http:\\www.paris-pc-gis.com/mb_r/dll/dll_shell_start.htm Best regards, Thomas Rokkjaer -----Original Message----- From: Vladimir Lashin [mailto:vln@;microolap.com] Sent: 12. november 2002 13:48 To: Thomas Rokkj�r Subject: Re: MI-L Sending mail through MapInfo Hello Thomas, Tuesday, November 12, 2002, 3:06:16 PM, you wrote: TR> I would like to know, if anyone knows of a way to send mails through MapInfo TR> Professional. I need to automatically specify the recipient and subject. I TR> know of the M_SENDMAIL_CURRENTWINDOW and M_SENDMAIL_WORKSPACE definitions, TR> but these cannot be used for specifying the recipient and subject, the way I TR> see it. I believe the solution is to use the Run Program statement, where TR> the program_spec should be the mail client and then some specific TR> command-line arguments. You can use ShellExecute() API function to launch default mail client. Ex. In Visaul C++ syntax it looks like this ShellExecute( 0, "open", "mailto:vln@;microolap.com?subject=hello&body=Hello", NULL, NULL, SW_SHOWNORMAL ); Also you can create On-fly EML file from MapBasic application and put his filename into 3-rd param of ShellExecute() -- Best regards, Vladimir Lashin microOLAP Technologies LLC ---------------------------------------------------------------------------- --------------------------- MBBuilder - Visual Development Tool for MapBasic - http://www.microolap.com/products/gis/mbbuilder.htm Raster Handler for ERDAS Imagine to MapInfo - http://www.microolap.com/products/gis/imgrhl.htm MapInfo Callbacks Manager ActiveX - http://www.microolap.com/products/gis/micmx.htm EasyMap VCL - http://www.microolap.com/products/gis/easymap.htm ---------------------------------------------------------------------------- --------------------------- mailto:vln@;microolap.com http://www.microolap.com/gis/ - GIS related products --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 4039
