Hi,

I saw various examples of sending emails via VFP via SMTP. I tried 3
different packages (JMail, ASPEMAIL, etC) and all of them send the email the
first time I execute the code. When I try to rerun the code, VFP simply
hangs. The same thing happens with all 3 packages. Could someone help me
figure out why this could be?

Thanks

Zoom

Re: Unable to send multiple emails via VFP with any SMTP control by Olaf

Olaf
Sun Apr 08 10:23:14 CDT 2007

Hi Zoom

Maybe the problem is related to VFP, but maybe you do something
wrong each time from VFP. Maybe it's related to multithreading or
callback.

For sending mails with VFP you could make use of blat, cdo,
West Wind Webtools (IPStuff) or Outlook Automation:

http://fox.wikis.com/wc.dll?Wiki~BlatEmail~VFP
http://www.west-wind.com/wwIpstuff.asp
http://fox.wikis.com/wc.dll?Wiki~CdoEmail~VFP
http://fox.wikis.com/wc.dll?Wiki~OutlookAutomation~VFP

Haven't used anything you mentioned, but from their names these
seem to be aiming for use within Java, ASP or C.

Bye, Olaf.

Re: Unable to send multiple emails via VFP with any SMTP control by O

O
Sun Apr 08 10:50:35 CDT 2007

This is a multi-part message in MIME format.

------=_NextPart_000_0022_01C77A06.69EFBCA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Zoom

Have you Test VfpWinsock by Francis Faure,
It's 100% pure Fox

http://www.xfrx.net/vfpwinsock/index_e.asp


Olivier
"Zoom" <keashdoc@hotmail.com> a =E9crit dans le message de news: =
z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com...
Hi,

I saw various examples of sending emails via VFP via SMTP. I tried 3 =

different packages (JMail, ASPEMAIL, etC) and all of them send the =
email the=20
first time I execute the code. When I try to rerun the code, VFP =
simply=20
hangs. The same thing happens with all 3 packages. Could someone =
help me=20
figure out why this could be?

Thanks

Zoom=20



------=_NextPart_000_0022_01C77A06.69EFBCA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>Hi =
Zoom</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>Have you Test =
VfpWinsock by=20
Francis Faure,</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2>It's 100% pure=20
Fox</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 size=3D2><A=20
href=3D"http://www.xfrx.net/vfpwinsock/index_e.asp">http://www.xfrx.net/v=
fpwinsock/index_e.asp</A></FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial color=3D#000080 =
size=3D2>Olivier</FONT></STRONG></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Zoom" &lt;<A=20
href=3D"mailto:keashdoc@hotmail.com">keashdoc@hotmail.com</A>&gt; a =
=E9crit dans=20
le message de news: <A=20
=
href=3D"mailto:z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com">z7-dnUxvE5lz=
bYXbnZ2dnUVZ_oipnZ2d@comcast.com</A>...</DIV>Hi,<BR><BR>I=20
saw various examples of sending emails via VFP via SMTP.&nbsp;&nbsp; I =
tried 3=20
<BR>different packages (JMail, ASPEMAIL, etC) and all of them send the =
email=20
the <BR>first time I execute the code.&nbsp;&nbsp; When I try to rerun =
the=20
code, VFP simply <BR>hangs.&nbsp; The same thing happens with all 3=20
packages.&nbsp;&nbsp; Could someone help me <BR>figure out why this =
could=20
be?<BR><BR>Thanks<BR><BR>Zoom <BR><BR><BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0022_01C77A06.69EFBCA0--


Re: Unable to send multiple emails via VFP with any SMTP control by Roger

Roger
Sun Apr 08 13:08:24 CDT 2007


"Zoom" <keashdoc@hotmail.com> wrote in message
news:z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com...
> Hi,
>
> I saw various examples of sending emails via VFP via SMTP. I tried 3
> different packages (JMail, ASPEMAIL, etC) and all of them send the
> email the first time I execute the code. When I try to rerun the
> code, VFP simply hangs. The same thing happens with all 3 packages.
> Could someone help me figure out why this could be?

Have you tried Blat.dll ?
It's free amd it works just fine.

-Roger



Re: Unable to send multiple emails via VFP with any SMTP control by Dan

Dan
Sun Apr 08 16:26:04 CDT 2007

If it works the first time but hangs the second time, that tells me you've
left something open that you should have closed. (Many PDF writers have the
same issue.)

I'm afraid you'll have to go back to the vendor to find out what that is.
None of us can make a guess.

Dan

"Zoom" <keashdoc@hotmail.com> wrote in message
news:z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com...
> Hi,
>
> I saw various examples of sending emails via VFP via SMTP. I tried 3
> different packages (JMail, ASPEMAIL, etC) and all of them send the email
> the first time I execute the code. When I try to rerun the code, VFP
> simply hangs. The same thing happens with all 3 packages. Could someone
> help me figure out why this could be?
>
> Thanks
>
> Zoom
>



Re: Unable to send multiple emails via VFP with any SMTP control by Zootal

Zootal
Sun Apr 08 17:25:47 CDT 2007


"Roger Ansell" <notmyreal@emailaddress.com> wrote in message
news:eQBXxigeHHA.4136@TK2MSFTNGP02.phx.gbl...
>
> "Zoom" <keashdoc@hotmail.com> wrote in message
> news:z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com...
>> Hi,
>>
>> I saw various examples of sending emails via VFP via SMTP. I tried 3
>> different packages (JMail, ASPEMAIL, etC) and all of them send the email
>> the first time I execute the code. When I try to rerun the code, VFP
>> simply hangs. The same thing happens with all 3 packages. Could someone
>> help me figure out why this could be?
>
> Have you tried Blat.dll ?
> It's free amd it works just fine.
>
> -Roger
>

I vote for Blat. We used CDO for a while, but had too many problems with it.
Switched to Blat, and all of our problems went away. Blat is fast, lean, and
mean.

I"m betting the OP has something wrong with his own code - it's highly
unlikely that all of the packages he tried have the same problem.



Re: Unable to send multiple emails via VFP with any SMTP control by swdev2

swdev2
Sun Apr 08 21:49:21 CDT 2007

aspEmail is known 2 work w/VFP
please give your example for aspEmail ?
Regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Zoom" <keashdoc@hotmail.com> wrote in message
news:z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com...
> Hi,
>
> I saw various examples of sending emails via VFP via SMTP. I tried 3
> different packages (JMail, ASPEMAIL, etC) and all of them send the email
the
> first time I execute the code. When I try to rerun the code, VFP simply
> hangs. The same thing happens with all 3 packages. Could someone help
me
> figure out why this could be?
>
> Thanks
>
> Zoom
>
>



Re: Unable to send multiple emails via VFP with any SMTP control by Zoom

Zoom
Mon Apr 09 07:30:20 CDT 2007

Blat.DLL causes an error code stating 'Cannot load 32-bit BLAT.DLL' - I have
made sure that all the appropriate BLAT files are in the system and the
foxpro directory.

Zoom


"Roger Ansell" <notmyreal@emailaddress.com> wrote in message
news:eQBXxigeHHA.4136@TK2MSFTNGP02.phx.gbl...
>
> "Zoom" <keashdoc@hotmail.com> wrote in message
> news:z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com...
>> Hi,
>>
>> I saw various examples of sending emails via VFP via SMTP. I tried 3
>> different packages (JMail, ASPEMAIL, etC) and all of them send the email
>> the first time I execute the code. When I try to rerun the code, VFP
>> simply hangs. The same thing happens with all 3 packages. Could someone
>> help me figure out why this could be?
>
> Have you tried Blat.dll ?
> It's free amd it works just fine.
>
> -Roger
>



Re: Unable to send multiple emails via VFP with any SMTP control by Olaf

Olaf
Mon Apr 09 08:10:32 CDT 2007

Hi Zoom,

like swdev aka William Sanders already said,
we can't help you without a code example you
are using.

I downloaded the DLL from blat.net and the
one from http://www.geocities.com/toby_korn/blat/
and did get the same error, I'm using VFP9 SP1
on Vista, so maybe the problem is Vista related.

Using the code provided at Toby Korn's Site
and the Fox Wiki.

Regrding the VB code example the Send function
now is renamed to SendBlat, but
DECLARE INTEGER SendBlat IN ...dll STRING blatstring
does not work, too.

Maybe the DLL is not Vista compatible, eg
uses some unavailable API call.

Bye, Olaf.

Re: Unable to send multiple emails via VFP with any SMTP control by swdev2

swdev2
Mon Apr 09 10:35:15 CDT 2007

Well then you've not set it up properly, with one or more of the following
problems -

1. you failed to get it set up in the registry.
2. you registered it, but haven't added any single default account
3. you've never invoked the EXE , as in [blat -installSMTP]


shell to a cmd window, invoke the blat.exe , and muck about.
if you can't at least send a test msg out from the cmd window, MANUALLY with
yer fingers on the
keyboard, then there is some problem.

Also, issue [blat /?] from a cmd shell, read the thing.

Please detail any steps you are using.
The more detail, the better, as I'm NOT sitting over your shoulder watching
what you are a doing.
All I gots for input is your words here on the msnews news server.

I use this version:
Blat v2.2.2 (build : Feb 21 2004 11:59:38)

Mondo Regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Zoom" <keashdoc@hotmail.com> wrote in message
news:AsmdnamjLNZBrIfbnZ2dnUVZ_uSgnZ2d@comcast.com...
> Blat.DLL causes an error code stating 'Cannot load 32-bit BLAT.DLL' - I
have
> made sure that all the appropriate BLAT files are in the system and the
> foxpro directory.
>
> Zoom
>
>
> "Roger Ansell" <notmyreal@emailaddress.com> wrote in message
> news:eQBXxigeHHA.4136@TK2MSFTNGP02.phx.gbl...
> >
> > "Zoom" <keashdoc@hotmail.com> wrote in message
> > news:z7-dnUxvE5lzbYXbnZ2dnUVZ_oipnZ2d@comcast.com...
> >> Hi,
> >>
> >> I saw various examples of sending emails via VFP via SMTP. I tried 3
> >> different packages (JMail, ASPEMAIL, etC) and all of them send the
email
> >> the first time I execute the code. When I try to rerun the code, VFP
> >> simply hangs. The same thing happens with all 3 packages. Could
someone
> >> help me figure out why this could be?
> >
> > Have you tried Blat.dll ?
> > It's free amd it works just fine.
> >
> > -Roger
> >
>
>



Re: Unable to send multiple emails via VFP with any SMTP control by Roger

Roger
Mon Apr 09 12:15:45 CDT 2007


"Zoom" <keashdoc@hotmail.com> wrote in message
news:AsmdnamjLNZBrIfbnZ2dnUVZ_uSgnZ2d@comcast.com...
> Blat.DLL causes an error code stating 'Cannot load 32-bit BLAT.DLL' -
> I have made sure that all the appropriate BLAT files are in the system
> and the foxpro directory.

Declare Integer Send In Blat.dll String

Works for me! (WinXP Pro)
If it doesn't work on Vista, well ... nothing much
works on Vista, does it?

-Roger



Re: Unable to send multiple emails via VFP with any SMTP control by Olaf

Olaf
Mon Apr 09 13:52:57 CDT 2007

> 1. you failed to get it set up in the registry.
What? It's not a COM DLL, is it?

> 2. you registered it, but haven't added any single default account
> 3. you've never invoked the EXE , as in [blat -installSMTP]
I thought that is an optional step. If you provide
SMTP server etc in the string it would work without.

The thing that makes it working (for me) is putting it into
System32, no matter if you also put it elsewhere for the
DECLARE call.

And make it
DECLARE INTEGER SendBlat IN ...blat.dll STRING blatstring

Bye, Olaf.

Re: Unable to send multiple emails via VFP with any SMTP control by Olaf

Olaf
Mon Apr 09 14:13:40 CDT 2007

> The thing that makes it working (for me) is putting it into
> System32, no matter if you also put it elsewhere for the
> DECLARE call.
>
> And make it
> DECLARE INTEGER SendBlat IN ...blat.dll STRING blatstring

Hm, too early, did not work.
Now it's not the declare that is not working,
but the actual call of Send.

But now I got it. Put the DLL in System32,
then DECLARE Send in blat.dll without providing any path
to the dll, declare will search in System32 anyway.

Bye, Olaf.

Re: Unable to send multiple emails via VFP with any SMTP control by swdev2

swdev2
Mon Apr 09 18:38:38 CDT 2007

Hiya Olaf.

Sorry, Mon - I only write about what worked for me. I put production
systems out configured as I had alluded to in
that previous response.

I don't put blat.dll in system32 - it goes into it's own folder under the
deployed app folder.
I never have file path searching issues - I'm pro-active instead.
We also write logs in specific places .

But - it's BLAT, for ChrissSake` - you can put it anywhere you want, and go
forth.

As to blat for the OP - he's got some problems, ah?
Regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Olaf Doschke" <olaf.doschke@t-aufderlinie.de> wrote in message
news:A807C9E4-EEE3-42A8-A38C-661CE935B0C4@microsoft.com...
> > The thing that makes it working (for me) is putting it into
> > System32, no matter if you also put it elsewhere for the
> > DECLARE call.
> >
> > And make it
> > DECLARE INTEGER SendBlat IN ...blat.dll STRING blatstring
>
> Hm, too early, did not work.
> Now it's not the declare that is not working,
> but the actual call of Send.
>
> But now I got it. Put the DLL in System32,
> then DECLARE Send in blat.dll without providing any path
> to the dll, declare will search in System32 anyway.
>
> Bye, Olaf.



Re: Unable to send multiple emails via VFP with any SMTP control by Olaf

Olaf
Tue Apr 10 07:03:53 CDT 2007

> I don't put blat.dll in system32 - it goes into it's own folder under the
> deployed app folder.
> I never have file path searching issues - I'm pro-active instead.
> We also write logs in specific places .

Well, is 'Cannot load 32-bit BLAT.DLL' a path problem?
No, it isn't.

But I tried and moved it to
c:\my\vfp\tests\
and now it works there too.

?shrug?

Bye, Olaf.

Re: Unable to send multiple emails via VFP with any SMTP control by swdev2

swdev2
Tue Apr 10 09:57:32 CDT 2007

Hullo Shrugging Olaf -

Dude - I never, ever mentioned, or even alluded to, the OP's issue being a
PATHING problem.
YOU did.
Congratulations for picking up the pathing issue, playing with a tool that
you've not seen before,
and posting here about it.

All n all, for the OP, I'm a thinking it won't matter - he's got other
issues still not discovered.

What EVER on you on about? hmmmmmmmmmmmmm?

Go Go Gadget CodeBase!!!!
Mondo Regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Olaf Doschke" <olaf.doschke@t-aufderlinie.de> wrote in message
news:54FE8C94-C36E-437E-8BC9-853D49752148@microsoft.com...
> > I don't put blat.dll in system32 - it goes into it's own folder under
the
> > deployed app folder.
> > I never have file path searching issues - I'm pro-active instead.
> > We also write logs in specific places .
>
> Well, is 'Cannot load 32-bit BLAT.DLL' a path problem?
> No, it isn't.
>
> But I tried and moved it to
> c:\my\vfp\tests\
> and now it works there too.
>
> ?shrug?
>
> Bye, Olaf.



Re: Unable to send multiple emails via VFP with any SMTP control by Olaf

Olaf
Wed Apr 11 06:21:43 CDT 2007

> All n all, for the OP, I'm a thinking it won't matter - he's got other
> issues still not discovered.

What issues? As far as I see he was trying blat.dll
now, not the other three components he tried first.
So what issue is not (dis)covered?

Sending MULTIPLE mails?

You gave him working instructions for blat, okay.

Sorry, if I criticised your solution directly or
indirectly, but I focused on getting the dll to
work WITHOUT the blat.exe.

and it does for me now with:

LOCAL lcCmd, lnResult
DECLARE INTEGER Send IN c:\my\vfp\tests\blat.dll STRING blatstring
lcCmd = 'c:\my\vfp\tests\body.txt -to recipient@somewhere.com -s "test
subject" -server <smtp-server> -f sender@somewhereelse.de -u <username> -pw
<password>'
lnResult = Send(lcCmd)
? lnResult

No need to run blat.exe -install something, no
need to register anything.

No need to get angry at me or anybody.

Bye, Olaf.


Re: Unable to send multiple emails via VFP with any SMTP control by swdev2

swdev2
Wed Apr 11 14:30:36 CDT 2007

Olaf- my deepest apologies if I seemed angry - I bow in the dust, offer you
4 litres of your favorite cold adult beverage.
As an aside - please check your registry, look for blat or BLAT or Blat, see
if anything got inserted there.

Warmest Regards [Bill]

--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net

"Olaf Doschke" <olaf.doschke@t-aufderlinie.de> wrote in message
news:19EAC730-FABD-4610-A3EF-4771975BB91C@microsoft.com...
> > All n all, for the OP, I'm a thinking it won't matter - he's got other
> > issues still not discovered.
>
[snip]



Re: Unable to send multiple emails via VFP with any SMTP control by Olaf

Olaf
Thu Apr 12 08:13:13 CDT 2007

> Olaf- my deepest apologies if I seemed angry - I bow in the dust, offer
> you
> 4 litres of your favorite cold adult beverage.
Apologies gladly accepted, you don't owe me.
Next time I drink something cheers to you.

> As an aside - please check your registry, look for blat or BLAT or Blat,
> see
> if anything got inserted there.
I did that and found no entry.

No surprise, that's just to have some default values
blat.dll uses, so the command string you provide
as the parameter of Send() can be kept shorter.

That's all.

Bye, Olaf.