0
I’m trying to send one hiperlink
by email, however it breaks at the time of space, in the same email, I send two hiperlink
, one that has no space at all, it sends correctly, but this one it breaks:
"Para visualizar o boleto acesse o link a seguir:" + "<a href=" + link1 + ">Clique aqui </a><br />";
When I send I already Seto email.IsBodyHtml = true;
.
This is the link I’m passing:
http://localhost:44371/Download/Visualizar?fullPath=F:\ERP\ERP Teste\Erp\Visual Master Erp\Documentos\01001001000113\Boletos\1_1_CNAB240.PDF
And here’s how it gets in the mail:
http://localhost:44371/Download/Visualizar?fullPath=F:\ERP\ERP
I tried sending adding \
at the beginning and at the end, so:
\http://localhost:44371/Download/Visualizar?fullPath=F:\ERP\ERP Teste\Erp\Visual Master Erp\Documentos\01001001000113\Boletos\1_1_CNAB240.PDF\
But it didn’t work either, it always breaks.
Mariana, try replacing the space with %20, see more here: https://www.w3schools.com/tags/ref_urlencode.asp
– Daniel Mendes