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:
01160702
Views:
13
Thanks! i'll try this.

>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