Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending an email with a different email address/sender n
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01305220
Message ID:
01305226
Views:
9
Hi Martina

Thanks for that.

It is no longer crashing, but the senders name isn't changing at all?

>Hi Robin,
>
>the "tag" is field ID in fields collection.
>
>tag = BITOR( tag, 0x1E) && the type is PT_STRING8 (UNICODE) && Foxpro
>
>MartinaJ
>
>>Hi
>>
>>I'm using Outlook with Redemption, I want to send an email from another email address, on their website there example which I have tried to convert from VB to VFP says:
>>
>>
>>sItem.Item = oMailItem
>>tag = sItem.GetIDsFromNames("{00020386-0000-0000-C000-000000000046}", "From")
>>tag = tag or &H1E     && the type is PT_STRING8             && Foxpro doesn’t like this line
>>sItem.Fields(Tag) = "Someone <whoever@domain.com>"          && and this line give an invalid subscript reference
>>sItem.Subject = sItem.Subject  'to trick Outlook into thinking that something has changed
>>safeitem.save()
>>
>>
>>Anyone know what the two lines with the tag should be?
Rob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform