asked on
html code to insert image
Say, code to insert a hyperlink to an image stored in the cloud as html code for an email
It would be no different than adding an image to any HTML document, presuming you're sending your e-mail as an HTML document:
<a href="www.domain.tld"><img src="www.cloudserver.tld/images/image.png" alt="Image Title"></a>
Many modern e-mail clients disable images by default to prevent malware/tracking so don't be disappointed if your image doesn't get seen by everyone.
ASKER
Is there an alternative solution to the modern e-mail clients blocking issue.
The e-mail client does not support embedding of images but only html code. The image is stored on our website in the media section but can be stored elsewhere
ASKER
PS what does the Domain.tld refer to? Which domain is this?
ASKER
Say, code below has link to image as per instrucitons above
<a href="www.SOSAmedical.org"><img src=https://sosamedical.org/wp-content/uploads/2023/10/Logo.png" " alt="SOSA Medical Project"></a>
but image not displaying in outlook email. There is something wrong I think with syntax.
Please advise.
This is email code:
[code]<div><a href="https://<a href="http://www.SOSAmedical.org" rel="noopener noreferrer" target="_blank">SOSAmedical.org</a>"><img src=<a href="https://sosamedical.org/wp-content/uploads/2023/10/Logo.png" rel="noopener noreferrer" target="_blank">https://sosamedical.org/wp-content/uploads/2023/10/Logo.png</a>" " alt="SOSA Medical Project"></a> </div><div><em style="color: black;">Spread the word! w: </em><a href="http://charidy.com/SOSAMedica" rel="noopener noreferrer" target="_blank" style="color: rgb(17, 85, 204);"><strong><em>www.charidy.com/SOSA</em></strong></a><strong style="color: red;"><em> </em></strong><em style="color: black;"> wa / t: </em><a href="http://wa.me/27118828322" rel="noopener noreferrer" target="_blank" style="color: black;"><em>+27118828322</em></a><em style="color: black;"> e: </em><a href="mailto:admin@SOSAmedical.org" rel="noopener noreferrer" target="_blank" style="color: black;"><em>admin@SOSAmedical.org</em></a><em style="color: black;"> f: </em><a href="https://www.facebook.com/SOSA.Joburg" rel="noopener noreferrer" target="_blank" style="color: rgb(17, 85, 204);"><em>link to facebook page</em></a> <em style="color: black;">#SOSAMedical</em></div><div> </div><div><span style="color: rgb(31, 56, 100);">Registered as SOS for the Aged NPC (S.O.S.A.)</span><strong style="color: black;"> Not for Profit Company No. 2017/330505/08</strong><span style="color: black;"> Public Beneficiary Organisation No. 930062159 </span><strong style="color: black;"> </strong><a href="http://www.sosamedical.org/" rel="noopener noreferrer" target="_blank" style="color: rgb(31, 56, 100);"><strong>www.SOSAmedical.org</strong></a></div><div><br></div><div><strong style="color: black;">Donate</strong><span style="color: black;">:</span><span style="color: rgb(11, 1, 70);"> </span></div><div><span style="color: rgb(11, 1, 70);">By EFT SOSA • First National Bank </span><span style="color: rgb(11, 1, 70); background-color: white;">• Reference Name+Project </span><span style="color: rgb(11, 1, 70);">• Acc #:62713804559 • Email: </span><a href="mailto:accounts@SOSAmedical.org" rel="noopener noreferrer" target="_blank" style="color: blue;">accounts@SOSAmedical.org</a><span style="color: black;"> </span><span style="color: rgb(17, 85, 204);">• Branch: Rosebank (250 655) • (Swift Code FIRNZAJJ)</span></div><div><span style="color: rgb(11, 1, 70);">By Credit Card: </span><a href="http://www.sosamedical.org/Donate" rel="noopener noreferrer" target="_blank" style="color: rgb(11, 1, 70);"> </a><a href="http://www.sosamedical.org/Donate" rel="noopener noreferrer" target="_blank" style="color: rgb(17, 85, 204);">www.SOSAmedical.org/Donate</a></div><div> </div>[/code]
ASKER
Is this code correct? Seem issue with this hyperlink code:
href="mailto:admin@SOSAmedical.org?subject=Please unsubscribe me&body=Dear SOSA Admin,
Please unsubscribe me from your e-mail list.
I no longer wish to receive these emails because ">unsubscribe me
I couldn't really understand the situation, the image is stored in a cloud in what way? You want the image to redirect to an email when pressed? Is that the question!?How do you access the image? Not clear what you're asking.