html5 - Can an Email get image Url's from a localhost server? -


okay let me explain little better. have mvc project html page , images , have set smtp server send email. when debug webpage localhost url. (localhost:51180) email try send looks this: (simplified version):

<html> <body> <img alt="img" src="https://www.google.com/images/srpr/logo11w.png" />*working <img alt='img' src='localhost:51180/images/img.png'/> *not working </body> </html> 

my problem second pic doesn't work. (if copy past url in web browser while project running can see right path). because website running local on computer , email cant access it? or else? in advance!

a couple things try..

#1

try changing url http://localhost:51180/images/img.png. should have protocol in there (http) i'm not sure can this...

#2

use base 64 encoding of image embed it. e.g.:

<img src="base64;==asdlfnlansl;34n5ljl5jslj5;hl;sh5j..." /> 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -