|
Home > Archive > FoxPro Help and Support > July 2005 > integrate local PC POP3 email to send form VFP8
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
integrate local PC POP3 email to send form VFP8
|
|
| DigitalMotorHead 2005-07-10, 8:24 pm |
|
need help with "mean & lean" code for generating and email from VFP8 using
std form fields to collect data.
texbox1,textbox2... etc input
commandbutton1 to build and send email using default local mail program.
any help would be useful.
thanks,
--
-dmh
| |
| Eric den Doop 2005-07-11, 3:24 am |
| You can't use POP3 to send e-mail. POP is a protocol for receiving e-mail.
Here's some code that works with most popular e-mail clients.
<vfp_code>
DECLARE INTEGER ShellExecute ;
IN SHELL32.DLL ;
INTEGER nWinHandle,;
STRING cOperation,;
STRING cFileName,;
STRING cParameters,;
STRING cDirectory,;
INTEGER nShowWindow
lcEmailAddress = "someb...@somewhere.com"
lcCCAddress = "someb...@somewhere.com"
lcSubject = "This is a test message"
lcMessageBody = "Hello, this is a message body."
ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
"&CC=" + lcCCAddress + "&body=" + ;
lcMessageBody, "", "",1)
</vfp_code>
--
Eric den Doop
www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
"DigitalMotorHead" < DigitalMotorHead@dis
cussions.microsoft.com> wrote in
message news:58A7725A-56F3-4778-B53F- 32087C5F74C8@microso
ft.com...
>
> need help with "mean & lean" code for generating and email from VFP8 using
> std form fields to collect data.
>
> texbox1,textbox2... etc input
>
> commandbutton1 to build and send email using default local mail program.
>
> any help would be useful.
>
> thanks,
> --
> -dmh
| |
| DigitalMotorHead 2005-07-11, 9:24 am |
| thanks, It. worked. Lots of time save by your help. -dmh
"Eric den Doop" wrote:
> You can't use POP3 to send e-mail. POP is a protocol for receiving e-mail.
> Here's some code that works with most popular e-mail clients.
> <vfp_code>
> DECLARE INTEGER ShellExecute ;
> IN SHELL32.DLL ;
> INTEGER nWinHandle,;
> STRING cOperation,;
> STRING cFileName,;
> STRING cParameters,;
> STRING cDirectory,;
> INTEGER nShowWindow
>
> lcEmailAddress = "someb...@somewhere.com"
> lcCCAddress = "someb...@somewhere.com"
> lcSubject = "This is a test message"
> lcMessageBody = "Hello, this is a message body."
>
>
> ShellExecute(0, "", "mailto:" + lcEmailAddress + "?Subject=" + lcSubject + ;
> "&CC=" + lcCCAddress + "&body=" + ;
> lcMessageBody, "", "",1)
> </vfp_code>
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
>
>
> "DigitalMotorHead" < DigitalMotorHead@dis
cussions.microsoft.com> wrote in
> message news:58A7725A-56F3-4778-B53F- 32087C5F74C8@microso
ft.com...
>
>
>
|
|
|
|
|