NetTalk Central

Author Topic: Hyperlink from EmailMessageHtml  (Read 3119 times)

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Hyperlink from EmailMessageHtml
« on: July 24, 2023, 05:23:00 PM »
Hi all

I'm trying to insert a link inside an email in NT using the HTML property (EmailMessageHtml), but when I get the email the link is "broken" see the example below.

EmailMessageHTML = '<a style="color: blue; text-decoration: underline; text-underline: single" href="http://localhost:88/Ws_Informe?dsn=FLORIDA&Informe=Rpw_Informe_Florida&IdEstadoGrupoInf=2&IdGrupoInf=2&IdProtocolo=3061">
DOWNLOAD</a></p>'

this I receive

http://localhost:88/ws_informe?dsn=orida&informe=w_informe_florida&idestadogrupoinf=idgrupoinf=idprotocolo061

if I use EmailMessageText it works fine
How can I solve it? thanks in advance!
Agust?n

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Hyperlink from EmailMessageHtml
« Reply #1 on: July 24, 2023, 10:35:48 PM »
http://localhost:88/ws_informe?dsn=orida&informe=w_informe_florida&idestadogrupoinf=idgrupoinf=idprotocolo061

At first glance Does not look right.

http and localhost is not look right  - should: be https://domainname

&idestadogrupoinf=idgrupoinf=idprotocolo061 does not look right either  - should be: &idestadogrupoinf=idgrupoinf & something=idprotocolo061



agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: Hyperlink from EmailMessageHtml
« Reply #2 on: July 25, 2023, 09:43:03 AM »
Hi Vinnie,
I don't understand what do you mean. "localhost" is b/c it's a test email. The sencond link is the one I get, it comes with missing characters.
Please compare the first links which is the one I send and the second.
Thanks!
Agustin

Vinnie

  • Full Member
  • ***
  • Posts: 183
    • View Profile
    • Email
Re: Hyperlink from EmailMessageHtml
« Reply #3 on: July 25, 2023, 10:41:46 PM »
Thanks for reply.

localhost is only good for your device no good if you are going to email this to someone but for testing on your device OK.

But yes I see you issue when you compare the links in your post


Link 1: http://localhost:88/Ws_Informe?dsn=FLORIDA&Informe=Rpw_Informe_Florida&IdEstadoGrupoInf=2&IdGrupoInf=2&IdProtocolo=3061">

Link 2: http://localhost:88/ws_informe?dsn=orida&informe=w_informe_florida&idestadogrupoinf=idgrupoinf=idprotocolo061


<p><a href="http://localhost:88/Ws_Informe?dsn=FLORIDA&Informe=Rpw_Informe_Florida&IdEstadoGrupoInf=2&IdGrupoInf=2&IdProtocolo=3061">Click here to download</a></p>

To email you I use this format in my code.

'<h4><span style="color:#999999"><em>To download please use this link  </em> <a href="http://localhost:88/Ws_Informe?dsn=FLORIDA&Informe=Rpw_Informe_Florida&IdEstadoGrupoInf=2&IdGrupoInf=2&IdProtocolo=3061)&'" target="_blank">Click here to download<br></a></span></h4>'

Hope this is of some use.

Cheers
Vinnie





agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: Hyperlink from EmailMessageHtml
« Reply #4 on: July 26, 2023, 03:57:51 AM »
I leave an attachment there, but the problem continues, thanks anyway

I will try other options