I'm using a simple PHP code to send a html via email.
The problem with the images is that they don't show because of the security issue they make. Gmail asks the user if he wants to display them.
How can I make a placeholder for the picture so when it doesn't show it will write in its place "please choose to display images" and have some border around it?
It is easy in your <img /> you just need to add the attribute alt. Per example:
<img alt="My text when no image is displayed" />
I just added a sample code here: http://jsfiddle.net/sMVgH/2/
HTH
Related
I am learning Blazor and at the moment I am trying to set an image as the background. I thought I would try display it first as the background-image css didnt work. I have attached a picture of my index.razor page and the img tag i am using is as follows:
<img src="file:///C:/Development/CsharpApplications/Portal/AlbertBartlettPortal/AlbertBartlettPortal/Pages/hero-range-1.jpg" alt="Background Image" />
It allows me to ctrl+click the file path and opens the image right away so it can see the image, but it wont display at all when the website is ran.
HELP!
Page Image Here
I put it in wwwroot\images and then used src="images/aaa.jg". No leading / OR ~/
<a href="mailto:Abc#xy.com?Sbuject=Yes">
<img src="cid:#appr" width="5" width="20" alt="Alternate" title="Title" />
cid:#appr is being embedded using server code to send the image embedded in the mail.
On mouse hover the balloon text does not display alt or title. Instead it displays href value.
This is explicitly done by the mail client in order to protect the user.
You could simply create a phishing email and set the 'alt' text to the valid url. e.g. a valid banking website.
The user would never know, and is (more) vulnerable.
I am using a header and footer which I upload to my companies campaign manager program. This header and footer cannot be changed. But I want to change the subtitle which appears on some email clients after the Subject next to the unopened email (which currently has the first line of the email which is "click here if email has not loaded"). Is there anyway I can change the subtitle through the content beneath the header? If not is there a way I can have a subtitle which is not "click here" which does not appear directly on my email.
I really don't see a way to do this without being able to edit the email header contents (which is where I assume this "Click here" text is located).
In the past to correct a similar issue, I have either moved that text down farther into the content or footer of the email, or replaced it with an image (having alt text to show in case images do not load). The latter choice is a matter of personal preference and probably not ideal. That said, however, these solutions require changing the header.
To change it you need access to the Header Contents
To change the preview of your email you can only use a hack. As it will always display the first lines of your email, you'll have to edit your email template to start it with whatever catchphrase you want in your email preview.
However, I'm pretty sure you don't want to add an extra sentence that will display before your email so here is the trick: use a 1px by 1px transparent gif with your catchphrase in the ALT tag.
<img alt="YOUR CATCHPHRASE" src="your-transparent-gif.gif" width="1" height="1" border="0">
I am trying to use Addthis widget for my website.Right now I am using the following code to share image to different website.
<script>var addthis_config = {
services_overlay:'facebook,twitter,email,more'
}</script>
<div class='giveTopMargin'>
<a href='link' class='lightbox' title='title'>
<img class='addthis_shareable' src='img_url' addthis:url='img_url' addthis:title='message' />
</a>
</div>
What I want is that when the user clicks the share button for facebook.I need the image preview of the img_url I've mentioned and when this link is successfully shared on facebook I need whoever clicks on this post on facebook, he should be redirected to the main page of my website instead redirecting him to the img_url.
Right now the problem with this code is that it shows me the following share box.
As you can see it is showing me the img_url in the title and description instead of the things I've mentioned above that is the title message.If I change the img_url to the main page of my site then this will not show me the preview of the image I've shared.
I hope I am clear enough. Please let me know for any clearification.
Code Source : http://www.addthis.com/labs/photo-sharing#.USyj-jAyZjY
I was not able to solve the problem so I sent an email to the Addthis support and they said that facebook tries to catch the image preview from the url we mention.So I was not able to accomplish this using the Addthis Plugin.
So I end Up doing it myself by using the facebook.ui dialog to share with the settings I wanted.
I think all you need to do is change the value for addthis:url, so for example, if the site you want them to go to is http://www.supportmyidea.com, then your img tag should look like:
<div class='giveTopMargin'>
<a href='link' class='lightbox' title='title'>
<img class='addthis_shareable'
src='[your_image_url]'
addthis:url='http://www.supportmyidea.com'
addthis:title='Support My Idea' />
</a>
</div>
The image preview that Facebook shows is actually based on the URL you specify. Facebook scrapes that page and will show an image from the page - if you specify an og:image tag, Facebook will use that image. I hope this makes sense.
You don't have to use their format. Make your own image and url using an img tag and an a tag. All the URL has to be is this :
http://www.addthis.com/bookmark.php?url={url}
How can i display an image with a direct link (such as "http://www.utexas.edu/courses/mis325/hw/hw11a.gif") when coding with asp/vb?
I don't understand the question. Like this?...
<img src="http://www.utexas.edu/courses/mis325/hw/hw11a.gif" alt="" border="0">
You didn't say where it should link to, so I assumed to the same image?
Also, this is a plain HTML link, not sure what you mean by how to do it in ASP/VB