Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email from another sender
Message
From
24/08/2000 15:08:16
 
 
To
24/08/2000 15:00:59
Bob Smith
Custom Data Services, Inc.
Mansfield, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00408943
Message ID:
00408950
Views:
16
>Is there any way that I can send an email from a specified address
>other than my own from my email address.
>I was hoping to be able to use .From below
>but I get the OLE error code 0x80020006: Unknown name.
>
> oOutlook = CREATEOBJECT("Outlook.Application")
>
> oMailItem = oOutlook.CreateItem(0)
>
> WITH oMailItem
> .From = 'xxx@xxx.com'
> .To = 'yyy@yyy.com'
> .Body = "TEST"
> .Subject = "TEST"
> .Send()
> ENDWITH


It's easier using SMTP; check Rick Strahl's wwwIPStuff.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform