Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding hyperlink to body of outlook email message
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00477057
Message ID:
00477089
Vues:
44
>>>>Hi;
>>>>
>>>>I want to generate an outlook email message from VFP that contains a link to a website.
>>>>Something like:
>>>>
>>>>#Define olMailItem 0
>>>>oOutLook=createobject('outlook.application')
>>>>oMailItem=oOutLook.CreateItem(olMailItem)
>>>>WITH oMailItem
>>>> .subject='Science Fair Judging'
>>>> .body='Hope you can be a judge at Science Fair again this year.'+chr(13)+;
>>>> chr(13+'Please fill out your form on our website.'
>>>>ENDWITH
>>>>
>>>>I want to make the words 'your form' a hyperlink to a URL.
>>>>
>>>>Any ideas would be appreciated.
>>>>
>>>>John
>>>
>>>You can use something like
< a href="http://www.yourURL.com/" > your form < /a >
Note that there should be no spaces around the "<" and ">", I had to put them in to prevent them from being parsed by the UT parser.
>>
>>Al;
>>
>>Thanks for the tip. I tried:
>>
>>.body='Hope you can be a judge at Science Fair again this year.'+chr(13)+;
>> chr(13)+'Please fill out '+;
>> "< a href='http://www.yourURL.com/'> your form < /a >"+ ;
>> 'your form on our website.'
>>
>>Unfortunately the html showed literally in the body of the sent email.
>>
>>Am I missing something?
>>
>>Thanks
>>John
>
>Yes - there should be no spaces around ANY of the "<" or ">" characters in the line I posted, both leading and trailing. Basically, there should be no spaces at all in the string I posted except the one between "your" and "form".

Al;

Thanks for your help. It is working great.

John
John Campbell
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform