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.
Related
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
I have a website built with Laravel and I need that the customer fills a editable PDF and send it to an specific address.
Instead of asking them to download it, fill it in local and then send it, I have created a new page in my site where I placed the editable PDF using an iframe.
Now, I would like to add a button that once the customer fills the PDF, it sends it automatically.
Does anybody know how to achieved this or is it not possible?
I am trying to do it using ajax, calling a method in my controller that will send the email using a template and with an attachment, but I don't know how to pass the PDF filled to it from the view(iframe).
Thank you in advance
I've to insert an image in email template. I've copy paste the image, didn't work for me. Now I've the same image at a url in my web resource can we use that url to use the image from a url?
Thank You
Yes, the only way by which you can use Images inside of an Email is to host those images on a public URL and link it in the email body.
On a side note, you can also try referencing the image in an email attachment (though am sure it will work or not).
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?
The title might not be clear - I'm creating an app in Unity and I want it to start the device's default mail client to create a new mail. I can easily do that with mailto. What I don't know how to do is include an image in the mail being composed. In any way: as an attachment, as a part of the mail body or whatever. But it's a local image, so I can't just put a link to it in the mail.
Is it even possible? If so, how?
I doubt if you can do it as the mailto page doesn't mention this as one of the parameters.
At best you can add body and subject.No attachments I suppose
See http://www.faqs.org/rfcs/rfc2368.html
However a hack you can try is in the body that you include
add <img src="your image src"> and hopefully the mail client will recognise this as html markup and render the image when the client opens up.
I haven't tried this though.