Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send email in VFP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00497834
Message ID:
00530649
Vues:
76
wow, That email was a while ago, and quite honestly I have not thought it, or worked on the class wrapper for blat since then.
But here are you answers.
1 to to multiple works in the subject, you have to surround the subject line by a seperate set of quote or double quotes.
use -s"'test email'" should work. But check the blat.exe manual, it might work better if you dont put space between the -s and actual subject. (just somthing I think I remember)


>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?

That all depends on you, What blat /exe or dll does (I think ) when it creates / stores the smtp server inforamtion is put the server information in the system registry. Personally, since I dont want to learn how to modify the system registry myself, by learing wsh, I just use blat.dll to install itself. just like blat.exe


Best of luck
Bob Lee
In the beginning, there was a command prompt, and all was well.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform