.NET DLLs are our powerful friends ;) I have written a small .NET DLL including a SendMail() method to be called from MapBasic. It sends mail using the Yahoo Mail SMTP server and requires a Yahoo mail account as sender. To send mail from your MapBasic program, put the attached MapBasicMail.dll in the same folder with your mbx, declare the DLL method SendMail and call it. For example:
Call SendMail("
som...@yahoo.com", "
som...@xyz.com", "From Display Name", "FromPassword", "Subject", "Body: Mail from MapBasic!")
See the attached SendMail.mb file. .NET source included. I have tested it and it works fine.
HTH,
Mustafa Özçetin
Senior Researcher (SCJP)
The Scientific and Technological Council of Turkiye
Ankara / Turkiye
--------------------------------------------
On Fri, 5/22/15, senouci hayat <
senouci...@gmail.com> wrote:
Subject: [MI-L] Send mail
To:
mapi...@googlegroups.com
Date: Friday, May 22, 2015, 9:44 PM
Hello
How can i send a mail with
mapbasic
--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message
to this group, send
email to
mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources
(searching
archives, feature requests, to visit our Wiki, visit the
Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en
---
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to
mapinfo-l+...@googlegroups.com.
For more options, visit
https://groups.google.com/d/optout.