Send SVG image in Email

1

I tried to send an image in SVG code so that a mail client interprets it as HTML and is visualized.

The problem that only I see the image in a mail client, for the most part can not be seen.

The way I send the code from sql server is as follows:

DECLARE  @VAsunto varchar(100), @VHTML varchar(max), @BodyHTML varchar(max),@TblHTML VARCHAR(MAX)
DECLARE @VTitulo VARCHAR(100)

SELECT @VAsunto = N'Graficas prueba: '+ CONVERT(VARCHAR(10),GETDATE(),103) 

select @VTitulo = N'Graficas'                                        

SELECT  @VHTML =N'
<html>
<head>
<title>Mi primer ejemplo en Google Charts</title>
</head>
<body>
<div id="Grafica" style="width: 800px; height: 600px">
    ---aqui el codigo svg

</div>

</body>
</html>
'

SELECT @VHTML = REPLACE(@VHTML,'$',char(39))

EXECUTE msdb.dbo.sp_send_dbmail
@profile_name = 'SQLCorreos',

@copy_recipients = 'aqui email' ,

@subject = @VAsunto,
@body = @VHTML,
@body_format = 'HTML'

Is there any way in which I can send that SVG code to be interpreted as an image in Gmail, Outlook and the IOS client?

    
asked by raintrooper 27.09.2017 в 01:24
source

0 answers