A
Arnaud
Hello,
I'm using a script in Access to send an email using Outlook. I'm using a
file to store my HTML email template.
My script is smthing like :
Set myOutlook = New Outlook.Application
Set myEmail = myOutlook.CreateItem(olMailItem)
myEmail.To = Recordset.email
myEmail.BodyFormat = olFormatHTML
myEmail.HTMLBody = myEmailTemplate
myEmail.Display
Everything works fine except automatic transformation of the &
character, which is a special character in HTML.
My template includes an HTML link in the form :
http://mydomain.com?param1=value1¶m2=value2. Outlook transforms the
& character in the url by the & sequence
(http://mydomain.com?param1=value1&param2=value2), and therefore my
link is no longer working.
Have someone an idea on how to be sure that the & character won't be
modified ??
I made a few experiments and found that &, <, >, special characters are
transformed whereas ©, ® ~, ", «, », à, â, ä, æ, è, ê are not... why
such a difference of treatment ??
My configuration :
MS Outlook 2002 - SP2
MS Access 2002 - SP2
Microsoft Visual Basic 6.3
PS : I searched the forum and found nothing valuable - found one email
about the same problem
(http://groups.google.fr/groups?hl=f...icrosoft.public.outlook.program_vba&scoring=d)
but without any response.
Best regards and thanks in advance for any response,
Arnaud
I'm using a script in Access to send an email using Outlook. I'm using a
file to store my HTML email template.
My script is smthing like :
Set myOutlook = New Outlook.Application
Set myEmail = myOutlook.CreateItem(olMailItem)
myEmail.To = Recordset.email
myEmail.BodyFormat = olFormatHTML
myEmail.HTMLBody = myEmailTemplate
myEmail.Display
Everything works fine except automatic transformation of the &
character, which is a special character in HTML.
My template includes an HTML link in the form :
http://mydomain.com?param1=value1¶m2=value2. Outlook transforms the
& character in the url by the & sequence
(http://mydomain.com?param1=value1&param2=value2), and therefore my
link is no longer working.
Have someone an idea on how to be sure that the & character won't be
modified ??
I made a few experiments and found that &, <, >, special characters are
transformed whereas ©, ® ~, ", «, », à, â, ä, æ, è, ê are not... why
such a difference of treatment ??
My configuration :
MS Outlook 2002 - SP2
MS Access 2002 - SP2
Microsoft Visual Basic 6.3
PS : I searched the forum and found nothing valuable - found one email
about the same problem
(http://groups.google.fr/groups?hl=f...icrosoft.public.outlook.program_vba&scoring=d)
but without any response.
Best regards and thanks in advance for any response,
Arnaud