How to open compose page of outlook after clicking on an image - outlook

any one tel me how to open outlook message box to send mail by clicking on an image. The compose page should open with email address To. Plz any one help me.

You can use:
<img alt="hello" scr="abc.jpg" onclick="location.href = 'mailto:abc#abc.com'" />

Related

Hyperlink detection in Outlook

I am developing an Outlook web addins that involves extracting all hyperlinks from the mail message. I am currently doing it by getting all a tag elements.
var htmlParser = new DOMParser().parseFromString(asyncResult.value, "text/html");
var urls = htmlParser.getElementsByTagName("a");
However, I found out that Outlook for PC displays text as a hyperlink as long as it contains www., even though the text is not meant to be a hyperlink. For example, I tried sending myself an email with www.example.com as the content and I ensured that it is not a hyperlink when I sent it out.
In Outlook on the web, the text is indeed not a hyperlink.
But then in Outlook for PC, the text was displayed as a hyperlink automatically. Since I did not send it out as a hyperlink, it does not have an a tag and hence my addin could not extract this "hyperlink". Is there a way to also extract these "hyperlinks" in a mail message?
You could use the getEntitiesByType API to get any URL entities identified in the mail body. A sample API call is:
Office.context.mailbox.item.getEntitiesByType(Office.MailboxEnums.EntityType.Url)
You can use this Outlook add-in - Mail add-in for a read scenario which finds and parses all links in the body of an email. Here's the documentation/sample # https://github.com/OfficeDev/Outlook-Add-in-LinkRevealer

div element visibility in outlook mails

I'm trying to send an html email through vb code . For this i've a template and the body is replaced using code. In the content of the email there are 3 images but one particular image is not to be displayed in one of the emails. So the image is put in the div tag and using style as <div name="divA" style="display: none;"> display is switched off. Code runs and mails is sent successfully. When a mail having this line of code in body is seen in outlook the image is as expected invisible. Problem arises when I forward this mail (using forward feature of outlook) to my friend the invisible image shows up out of nowhere ! Question: How to make the image invisible so that it stays invisible upon forwarding as well ?
Try this code, it's a little more bulletproof in addressing various things that email clients do / don't support:
<div style="display:none;font-size:1px;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;mso-hide:all;">
Your <img> tag
</div>
This is the code I've been using to hide preview text for the last few years, which I haven't seen appear when emails are forwarded. Never tried it with an image.

Send email on image click in joomla

hey I am new to joomla and I want to send an email to a user when an image is clicked(I got two images so a different mail for each)
how can it be done?
Create a hyperlink in Joomla on the image (click the image then the chain icon) and in the URL box, type mailto:email#domain.com and then when clicked it will open the default mail editor with the recipient box filled... is that kind of what you needed?

Images not popping up in Outlook when sending newsletter

I send out newsletters for the company I work for. Since graphic artists have to create images, I usually end up testing my newsletters with temporary images that are from older newsletters. But whenever I overwrite the image in my ftp folder with the new one, it will not appear in Dreamweaver. Worst of all, outlook users do not see the image. They will either see the old image or see the red X.
As for me, I use thunderbird and I see the correct the image. The image also correctly appears on the website.
I have tried clearing the cache of dreamweaver, by deleting this file to no avail.:
Delete C:\Documents and Settings{username}\Application
Data\Adobe\Dreamweaver
CS6\en_US\Configuration\WinFileCache-xxxxxxxx.dat
This is an example of the code I use
<img border="0" src="http://www.******.com/***/***/2013/gpd_banner_fr.jpg" style="display:block;" alt="BANNIÈRE" />
Any tips?
If you put the URL http://www.******.com/***/***/2013/gpd_banner_fr.jpg into the browser, does it exist?
If so, now in Outlook, scroll to the bottom of your email and right click > view source. What URL is showing in your email code?
Assuming it is different, it has something to do with how you are sending it. Are you using an email service provider? How are you uploading the images?

using ckEditor to send emails, problem with images

I'm using the ckEditor (http://docs.cksource.com/CKEditor_3.x).
my goal is to send the the text entered as an email message.
I get the contents of the editr as suggested in the docs:
var message = CKEDITOR.instances.editor1.getData();
then send the message to a webmethod on the server side, and it sends ok.
the problem is: the images are added as an img tag, and get the local directory address, so it cannot be viewed on the recipients side.
how can I add the images to the email message?
thanks in advance!
You need to use a file uploader. CKFinder integrates nicely with CKEditor. Free for demo use (and open source projects I think), but about $70 for commercial use.

Resources