Hi,

I am trying to send email via VFP. I have tried ASPEMAIL and various other
components. In the home machine (running Windows XP SP2), I can
successfully send emails via VFP. However, at all the work computers (also
runing the same OS), NONE of the email solutions for VFP work. ASPEMAIL
times out and the CDO object cannot connect to server. We don't have any
firewalls or other packet blocking software running.

I was wondering if someone could provide a solution as to why all the emails
at work computer are not able to go thru. We are a small business and have
our own router and not going thru any corporate mainframe.

Thanks

Zoom

RE: Unable to send email from VFP by Michael

Michael
Sat Sep 29 13:21:01 PDT 2007

Hi Zoom, If you are using outlook you may try the following sample code. I
also use West Wind Internet Protocols with no problem (
http://www.west-wind.com/wwstore/item.aspx?sku=wwipstuff50 )

private therecip, ccnames, thesubj, atname

therecip = "john@abc.com"
ccnames = "jane@abc.com"
thesubj = "Your Subject"
atname = "c:\abc.doc"

oOutLookObject = Createobject("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(0)

oemailitem.To = therecip
oemailitem.CC = ccnames
oemailitem.Subject = thesubj
oemailitem.HTMLBody = ""
oemailitem.Attachments.Add(EVALUATE("atname"))
oemailitem.Send
Release oEmailItem
Release oOutLookObject

HTH
Mike


"Zoom" wrote:

> Hi,
>
> I am trying to send email via VFP. I have tried ASPEMAIL and various other
> components. In the home machine (running Windows XP SP2), I can
> successfully send emails via VFP. However, at all the work computers (also
> runing the same OS), NONE of the email solutions for VFP work. ASPEMAIL
> times out and the CDO object cannot connect to server. We don't have any
> firewalls or other packet blocking software running.
>
> I was wondering if someone could provide a solution as to why all the emails
> at work computer are not able to go thru. We are a small business and have
> our own router and not going thru any corporate mainframe.
>
> Thanks
>
> Zoom
>
>
>
>

Re: Unable to send email from VFP by Mike

Mike
Sun Sep 30 05:58:26 PDT 2007

CDO requires a running SMTP service on each station or access to an SMTP
server.

"Zoom" <keashdoc@hotmail.com> wrote in message
news:ErKdnUG1X6xi1WPbnZ2dnUVZ_ramnZ2d@comcast.com...
> Hi,
>
> I am trying to send email via VFP. I have tried ASPEMAIL and various
> other components. In the home machine (running Windows XP SP2), I can
> successfully send emails via VFP. However, at all the work computers
> (also runing the same OS), NONE of the email solutions for VFP work.
> ASPEMAIL times out and the CDO object cannot connect to server. We don't
> have any firewalls or other packet blocking software running.
>
> I was wondering if someone could provide a solution as to why all the
> emails at work computer are not able to go thru. We are a small business
> and have our own router and not going thru any corporate mainframe.
>
> Thanks
>
> Zoom
>
>
>



Re: Unable to send email from VFP by swdev2

swdev2
Sun Sep 30 07:43:53 PDT 2007

Is Possible your router is blocking mail traffic ?
try to telnet into your mail server from cmd prompt - ie
telnet mailservername.com 25
(25 is the smtp port number, near as I recall)

If if times out, you got problems.
If it doesn't time out, you've got the settings wrong on the software that
yer writing.

Possible Problems:
1. workstation blocks/traps smtp traffic, refuses to send it out, doesn't
give you any dialog.
2. mailerver.com mailserver name doesn't resolve because you don't have dns
setup properly (rare).
3. Port is blocked at router
4. Port is blocked by ISP

remember that aerror() thingie? have it fire on any error in yer email pgm,
study the output.
IF ALL YOU ARE GETTING IS A TIMEOUT, and nothing else, then Refer to the
'Possible Problems' listed above.

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:ErKdnUG1X6xi1WPbnZ2dnUVZ_ramnZ2d@comcast.com...
> Hi,
>
> I am trying to send email via VFP. I have tried ASPEMAIL and various
other
> components. In the home machine (running Windows XP SP2), I can
> successfully send emails via VFP. However, at all the work computers
(also
> runing the same OS), NONE of the email solutions for VFP work. ASPEMAIL
> times out and the CDO object cannot connect to server. We don't have any
> firewalls or other packet blocking software running.
>
> I was wondering if someone could provide a solution as to why all the
emails
> at work computer are not able to go thru. We are a small business and
have
> our own router and not going thru any corporate mainframe.
>
> Thanks
>
> Zoom
>
>
>



RE: Unable to send email from VFP by SandorHajdu

SandorHajdu
Mon Oct 01 02:08:02 PDT 2007

Try this
olMailItem = 0
oOutLookObject = CREATEOBJECT("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(olMailItem)

WITH oEmailItem
.To = "your@emailaddress.com"
.CC = "yourfriend@emailaddress.com"
.Attachments.Add(filename)
.Subject = "This is the subject "
.Body="This is the body"
.Send()
ENDWITH
oOutLookObject = null


Re: Unable to send email from VFP by Dan

Dan
Mon Oct 01 08:46:47 PDT 2007

Hmmmm...

You don't tell us how you're doing it, or show us code, or indicate which
line of code is failing, and you want someone to guess why it fails?

We have to know exactly WHAT fails first. <g>

Dan

Zoom wrote:
> Hi,
>
> I am trying to send email via VFP. I have tried ASPEMAIL and various
> other components. In the home machine (running Windows XP SP2), I
> can successfully send emails via VFP. However, at all the work
> computers (also runing the same OS), NONE of the email solutions for
> VFP work. ASPEMAIL times out and the CDO object cannot connect to
> server. We don't have any firewalls or other packet blocking
> software running.
> I was wondering if someone could provide a solution as to why all the
> emails at work computer are not able to go thru. We are a small
> business and have our own router and not going thru any corporate
> mainframe.
> Thanks
>
> Zoom