I am creating an HTML email, and would like to add a table of contents which shows hyperlinks to items in the email. My currently workflow is simply generating the complete HTML file and then displaying that HTML file within the HTMLBody of an Outlook mail item.
When I open the HTML page in a browser, it works fine. But when I set the Outlook mail HTMLBody equal to that text, the bookmarks no longer work.
The bookmark hyperlinks look akin to:
<a href = "#item" ...>Blah<\a>
Where an item in the HTML has the name and id attributes equal to "item"
How do I get the bookmarks to work?
Please set the email type to html.. something like this..
// Set the format of the mail message body as HTML
mMailMessage.IsBodyHtml = IsBodyHtml;
With Outlook 2010, it helped me, when i use <a name="item"></a> as a bookmark. i.e. exactly "A" item.
Related
I have an application-menu item that I added that contains a URI with a custom filter in attached to the page name (aka URI Querystring). I would like to have the page subtitle change to represent this filtered data on the page.
Has anyone done any work like this or have an easy way to set the page subtitle using the application-menu items?
Here is what is getting called in the browser:
<h1 class="oro-subtitle" id="grid-title-contacts-grid2073">All Contacts</h1>
Here is what is in the URI (decoded)
/contact?grid[contacts-grid]=i=1&p=25&s[lastName]=-1&s[firstName]=-1&f[__duplicate]=0&f[contactType][type]=1&f[contactType][value][]=PCM&c=id0.firstName1.lastName1.birthday0.gender0.email1.phone1.fax0.skype0.twitter0.facebook0.linkedIn0.googlePlus0.source1.countryName1.regionLabel1.addressPostalCode1.addressCity0.addressStreet0.createdAt1.updatedAt1.pictureFilename0.ownerName0.assignedName0.reportsName0.timesContacted0.timesContactedIn0.timesContactedOut0.lastContactedDate0.lastContactedDateIn0.lastContactedDateOut0.daysSinceLastContact0.contactType1.dateOfBirth1.PCMStatusContact1.tags1&v=all&a=grid
You can save the grid view and give it a custom title.
Here is the documentation on how to do that: https://doc.oroinc.com/user/back-office/getting-started/navigation/record-tables/#create-saved-table-views-grid-views
Then copy the URL for the page and use it for the menu item. It should now redirect to the saved view with your title.
Using {Record URL(Dynamic)(Entity Name)} I have inserted it as part of system requirments into the "Description" of a TASK Activity.
But the URL does not render as a HTML hyperlink.
I have also tried using the <hyperlink> tag. But this does not work.
(Important Note : I heard notice this is achievable in an Email
Activity with the Record URL(Dynamic)(Entity Name) attribute. But I am
trying to achieve this in a Task Activity.)
Sample example of code in Workflow that creates this task is the Text given below:
..... project record, available here: {Record URL(Dynamic)(Entity Name)}.
We are using CRM 2013 for this cutomization and configuration.
Can you tell me what I am doing wrong and what I need to change to achieve this feature.?
Unlike email, the Description field of Tasks is plain text and doesn't support hyperlinks. Adding a formula to the task description will just display the formula text, not calculate it or generate a hyperlink.
If you need a link from a task to a specific record, add a custom lookup field to that entity. Another option would be to add an HTML Web Resource where you could show rich HTML with hyperlinks, but you'll need to create its content (with the link) on your own, no formula will generate the content for you.
I am working on an internal helpdesk. Emails address to the helpdesk appear in a Notes View, and I can open the document in XPages and see the text. But it won't show any inserted images within the text.
I can list the attachments as external links (courtesy of http://techdriveactive.blogspot.co.uk/2012/11/open-attachments-in-xpage-in-client.html) but I can't seem to get a handle on the images.
Any ideas ??
One way around that challenge is to use a Dojo ContentPane. It has a href attribute that can point to a different url. You then can point it to the content rendered by the classic engine:
href="someview/docid/Body?OpenField"
Note: this won't work in XPiNC
To you HelpDeskOpenDoc.xsp XPage add a Rich Text control and bind it to the Rich Text Field with the images and other rich content ...
<xp:inputRichText id="inputRichText1" value="#{document1.Body}"></xp:inputRichText>
I am using the Grails mail plugin to send emails and I want to send images in the body of the email, not as attachment. What I want is for images to be shown in the email body itself, as in newsletters. I tried:
img style="display:block; height:100px; width:100; " alt="candle"
src="http://www.xyz.com//Candle_4.jpg">
but it is being displayed as-is.
I also tried using the wikimedia format:
[[:File:Example.jpg]]<br/>
[[Special:FilePath/Example.jpg]]
but again, both seem to link to external.
What am I doing wrong?
This is the email template I am using:
<img src="cid:springsourceInlineImage" /> Dear [username],<br/>
Thank you for shopping with us.<br/>
You have placed a new order with following details.<br/>
[details]<br/>
Happy shopping!
But, if I want to put 10 images in my template, how would I do that?
You have to do three things
Declare mail as multipart
Attach your image as inline image
Reference you inline image from your mail template
According to this mailing list thread it should work like this:
sendMail{
multipart true
to "[hidden email]"
subject "Subject goes here"
html g.render( template: '/emails/mailTemplate')
inline 'springsourceInlineImage', 'image/jpg', new File('./web-app/images/springsource.png')
}
In your template you could refer the image like this
<img src="cid:springsourceInlineImage" />
Hope that helps.
In general, most "newsletter" type emails are just HTML emails and don't in-line the images within the body of the emails. In fact, many email servers will outright reject emails that are too big, and putting the image data inside the body of the email can easily run this risk.
Instead, the way to do with this is to just have HTML emails with the images you wish to include as normal HTML image links.
Please refer to the Mail plugin documentation for more info on how to send HTML emails.
Sorry I don't have enough Stackoverflow points to leave comment on others' answers.
In #aiolos 's answer, it contains:
inline 'springsourceInlineImage', 'image/jpg', new File('./web-app/images/springsource.png')
This specifies 'image/jpg' as the output, but the file is in png format. Is this intentional?
Wikipedia provides a list of mime types: http://en.wikipedia.org/wiki/Internet_media_type#Type_image
I tried 'image/png' and it worked, so I'm not sure if setting it to 'image/jpg' makes any difference.
I have many dynamically generated pages, made by the same PHP file, and I'd like the comments that are being submitted to the user's wall have a different title and summary, considering the page they were sent from. Do I need to dynamically generate the meta tags, or is there a way to embed the title and summary in the comments widget script itself?
You will need to do the first thing...dynamically generate the og tag in the head of the document. They must be set that way when sending the HTML response to the browser. They cannot be successfully updated clientside as Facebook linter only looks at the response stream.