Hi
What I'm trying to do it embed a hyperlink in and outlook email to a purchase order in navision.
I have managed to change the format of the email to HTML and have replaced spaces '\' and '&' from the url
CR:=13;
LF:=10;
CRLF := CRLF+ FORMAT(LF);
ReplaceTextInString(' ','%20',TextURL);
ReplaceTextInString('\','%5C',TextURL);
ReplaceTextInString('&','%26',TextURL);
BodyText := TextURL + CRLF;
I have also prefixed my url with string 'url:'
All works fine however outlook does not recognize this as a hyperlink unless I review the email and press Return after the url so that outlook does a autoformat and turns it blue and underlines it (recognized it as a hyperlink).
I know I can embed the link as an attachement but the customer does not want this.
Is there any way I can make outlook recognize the link automatically as I do not want to review the email before sending???
Any Ideas??? ](*,)
0
Comments
2) You can use SMTP to send the mail and in this case you can set in which format the mail will be send (HTML or plain text). After that you can use HTML tags...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
](*,)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
?
where:
out - Automation: 'Microsoft Outlook 12.0 Object Library'.Application
mail - Automation: 'Microsoft Outlook 12.0 Object Library'.MailItem
br/Gennadii