Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending email within VFP
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
01160261
Message ID:
01161332
Views:
20
Thru the local network, we have our own mail server..

>I don't know of any way to eliminate it. But if you have no connection how will you send email?
>
>JimB
>
>>The program worked fine..!!
>>But I have another question... Is it possible to override the refferencies to http://schemas.microsoft.com/cdo/configuration ? what if my ISP fails and there is no access to Internet at the momment when the program runs?
>>
>>
>>>Unless you are sending through the same machine that nthe code is running on you need to add;
>>>
>>>oMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
>>>oMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.server.address"
>>>oMsg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
>>>oMsg.Configuration.Fields.Update
>>>
>>>Before you send tha mail
>>>
>>>
>>>
>>>>Thanks, I've tryed this..
>>>>
>>>>
>>>>oMSG = createobject("CDO.Message")
>>>>oMSG.To = "jmartinez@plavicaven.com"
>>>>oMSG.From = "jmartinez@plavicaven.com"
>>>>oMSG.Subject = "automated email test"
>>>>oMSG.AddAttachment("d:\myfile.txt")
>>>>oMSG.Send()
>>>>
>>>>
>>>>
>>>>but it occurs an error on the last line (MSG.Send()), telling that the "SendUsing" configuration value is invalid.
>>>>
>>>>What am I doing wrong??
>>>>
>>>>
>>>>>Jonathan,
>>>>>
>>>>>We found this to be a very fast and easy way to do email.
>>>>>
>>>>>http://fox.wikis.com/wc.dll?Wiki~CdoEmail~VFP
Previous
Reply
Map
View

Click here to load this message in the networking platform