Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send email in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00497834
Message ID:
00530642
Views:
24
Hi, thanks for your great help and provide me a BLAT.DLL to solve my problem. I haved visited your URL and used the DLL file, used the: dll_name="blat.dll"
dll_name=fullpath(dll_name)
DECLARE INTEGER Send in &dll_name STRING
in the Init event of my form
and then used:
sendstring= "xxxxxxxxxx"
result=Send(sendstring)
in a click event of a button
It works fine except I have 2 questions about this way of sending mail by the blat.dll:
1. I can't use space in the subject. If I used -s 'testing mail', it gives me error code 1. If I used -s 'testingmail', I can send the mail successfully.
Is it a bug in the dll file?
2. How can I set the smtp server inside VFP? In my case, I need to use "blat.exe -install smtp.xxx.com" to set it in command line. Am I able to set it in VFP by using the blat.dll only?

Regards

>Your email really got me thinking about how I had used blat (the exe) so I finally started the process of converting to blat.dll this would bypass the need to configure mapi, or having a client installed with outlook. also emails could be configured to be sent with data from VFP. no matter what server they were connected to.
>I just posted a work in progress with three working class files, blat email, and install. Only one of them is necessary. the email, and install are just samples on how to work with blat.
>
>I would love to know anyone else had thoughts about this approach.
>
>Bob Lee
>
>http://www.1amsoftware.com/blatstuff/Bobx%20VFP%20Blat%20Page.htm
>
>
>>>What I want to do is to get the username, e-mail address, company name, etc
>>>from a table in VFP, combine them together to become an e-mail and then send
>>>to each user. I have tried to use "run" to execute an external e-mail
>>>program calls "Blat.exe" to send e-mail on the DOS-command line. So far it
>>>works but I need to combine the command line into a string, then copy this
>>>string into a batch file (since "run" cannot allow me to use a variable
>>>after it) then use the "run" to run the batch file. And if I want to send
>>>100 mails, the DOS-prompt window will appear 100 times on the screen, it is
>>>annoyable. So do we have any solution? OLE automation? How to send an e-mail
>>>inside VFP?
>>>Thanks
>>
>>>bb
Power Wong
Every problem will have a solution, the only problem is that can you find it out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform