Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending an email with a different email address/sender n
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01305220
Message ID:
01305228
Vues:
15
Robin,
I'm sorry, I forgot
sItem.Fields.Item(Tag).Value = "Someone <whoever@domain.com>"
if this row failed then try this:
sItem.Fields.Item(0x0C1E001E).Value = "SMTP" && type address
sItem.Fields.Item(0x0C1A001E).Value = "Someone" && sender name
sItem.Fields.Item(0x0C1F001E).Value = "whoever@domain.com" && sender email address
MartinaJ


>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&#8217;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?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform