Re: ole idispatch exception error
- From: sherry <sherry@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 20 Dec 2006 07:34:01 -0800
Hi
I can not use 'this.' this is just a program. Can you tell me better how to
word it so it works without being in a form?
thanks
sherry
"Claude Fox" wrote:
For whatever reason (different network connection?), you may need to specify.
exactly what smtp server, port, etc:
..Configuration.FIELDS("http://schemas.microsoft.com/cdo/configuration/sendusing").VALUE
= this.nSendUsingPort
..Configuration.FIELDS("http://schemas.microsoft.com/cdo/configuration/smtpserver").VALUE
= this.csmtpserver
..Configuration.FIELDS("http://schemas.microsoft.com/cdo/configuration/smtpserverport").VALUE
= this.nsmtpserverport
..Configuration.FIELDS.UPDATE
-------------------------
Claude Fox http://www.activevfp.com - free, open source foxpro web
development
"sherry" <sherry@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A56CD959-E232-4030-9F3D-42FB4EF1570E@xxxxxxxxxxxxxxxx
Hi
I have an app created in vfp9 on an xp laptop. The app is very simple.All
it
does is email a .txt file. On the xp machine it works fine. On an older
w2000 machine it works fine. I need it to work on another xp laptop. It
does not work. I get the message 'OLE IDispatch exception code 0 from
CDO.Message:1: The "sendingUsing" configuration value is invalid.'
Here is the code;
SET SAFETY OFF
CLOSE ALL
LOCAL loCDOMSG AS CDO.MESSAGE
LCFILE='c:\fieldxfer\xfer.txt'
lcfile2='c:\fieldxfer\xfer.txt'
CLEAR
loCDOMSG = NEWOBJECT( 'cdo.message' )
WITH loCDOMSG
.Subject = "&LCDEBIT ACCOUNT TRANSFER LISTING"
.TO = 'slbayles@xxxxxxxxxx'
.FROM = ' '
.TextBody = "&LCDEBIT ACCOUNT TRANSFER LISTING"
.AddAttachment (LCFILE2)
.FIELDS([urn:schemas:httpmail:importance]) = 2
.FIELDS([urn:schemas:mailheader:priority]) = 1
.Configuration.FIELDS.update
.FIELDS.update
.SEND
loCDOMSG = NULL
WAIT WINDOW [Mail Sent.] TIMEOUT 1
llsent=.t.
ENDWITH
Does the other xp laptop need something else installed?
Thanks for your help.
Sherry
- Follow-Ups:
- Re: ole idispatch exception error
- From: Claude Fox
- Re: ole idispatch exception error
- References:
- Re: ole idispatch exception error
- From: Claude Fox
- Re: ole idispatch exception error
- Prev by Date: Re: textbox vs caption
- Next by Date: Re: Excel Creator?
- Previous by thread: Re: ole idispatch exception error
- Next by thread: Re: ole idispatch exception error
- Index(es):
Relevant Pages
|