Styling the html with style tags in Amazon SES templates - amazon-ses

I am trying to style the content of my email html template on Amazon SES, by including a style tag. But it is not rendered when I receive the email.
Please let me know how can I apply styles to my email and also include images in my email using Amazon ses.
Thanks in advance

Try this,
set the below part to Html field.
<html><head><style> .cl{ color:blue;background-color:yellow}</style></head><body><button class='cl'>hello</button></body></html>
When you send this you will get the button with blue text and background with yellow as shown below
Hope this helps!!
Note: don't miss the head tag

Related

How do I create a html line divider in shopify that resembles my design attached below?

I'm trying to recreate the attached image below inside of a custom html field on my website using HTML code only . Can you share advice on where is best practice to place this custom code too please (e.g.inside the liquid.theme or should I create a custom HTML field in the content editor)? Thank you kindly for guidance beautiful people!
Where exactly are you trying to add the image? (Product page, home page, etc.)
First you need to upload the image to Shopify in Settings -> Files and copy the url. Then add the url to the image tag <img src="your-image-url.png" alt=""> and finally place that line of code in your template file.
Something else you can do if you are familiar with Sketch/Adobe software, is create the image in one of those programs and export the SVG code. Then use that code in your template file.

Post html content to an activity with Google + Domains API

I'm triying to post HTML content to an activity with the new google + domains API with no success.
Activity activity = new Activity()
.setObject(new Activity.PlusObject().setContent("First line<br><b>second line</b>"))
.setAccess(acl);
Acording to the documentation with setConent you can specify "The HTML-formatted content, which is suitable for display." but when i try to post some html its get displayed as plain text.
I need to create an activity with some linebreaks and bold text. How can i achieve that?
Thanks in advance.
the content (HTML) field is only meant for output, you are not allowed to write in HTML. You should be writing in plain text (as you do in the browser), newlines are respected with normal line breaks (\n)
This field is useful to display formatted posts that contain links etc..

Rails, emails and html code

When my rails app sends an email to a gmail account with the body as html code dynamically generated, in the email the html code is displayed and the html is not rendered.
my html is dynamically generated something like this:
html = "<html><table> ...... </table></html>"
and the email displays all of that html code
Do i need to add any specific headers or anything?
I would suggest taking a look at the Action Mailer Rails Guide. Sounds like you're only using the mailer part of Action Mailer. You should avoid hand crafting HTML into a variable like that, it's not the Rails-way.
I'd also suggest taking a look at Ryan Bate's screencast on Sending HTML Email.
Try
html.html_safe
to render the text of html as HTML type instead of plain text, or your tags will be html-escaped...

Xcode - Add hyperlink to email

In some apps you can email straight from the app. I have seen Flipboard, you can email an article to a friend and inside the email is hyperlinked text like this:
Sent via Flipboard
So it directs you to the page with a click of the text. How can I do this? I do not want to add the link as part of the message body as it is very messy and ugly... I would prefer this clickable text way.
Thanks!
The MFMailComposeViewController has a method called
setMessageBody:isHTML:.
Here the important thing is isHTML.
Doing a link in HTML is quite simple : <a href=myURL>LinkName</a>.

How can i format the HTML contents of mail in iphone ?

I am using MFMailComposer for mailing.I just convert the contents of URL in a string and use that string to send mail . But the problem is that HTML file contains button link image and when i mail it gives two blank icon with the HTML page.How can i remove that icons before the mail is send.
If it is not necessary to convert URL content to string. Simply pass HTML in MFMailComposer.
But even if you want to detect the TAGs in content of URL then simply parse the whole HTML of URL and check for button(input) tag. and you can check for completed button tag also. Simply ignore the statements between starting and ending point of tags and create another HTML content.