html - Applying style to <a href> tag placed inside C# code -


i using html code inside .cs file design template sending emails. have added style tag <a href> tag, not take effect when email sent. here code:

public static void email() {    stringbuilder sb= new stringbuilder();    sb.append("<a href='#' style='font-family:'helvetica neue',helvetica,arial,sans-serif;font-size:14px;color:#fff;text-decoration:none;line-height:2em;font-weight:bold;text-align:center;display:inline-block;border-radius:5px;text-transform:capitalize;background-color:#208ed5;margin:0;border-color:#208ed5;border-style:solid;border-width:10px 20px' target='_blank'>");    sb.append("link</a>"); } 

escape quotes backslash:

style=\"font-family:\'helvetica neue\',helvetica,arial,sans-serif;font-size:14px;color:#fff;text-decoration:none;line-height:2em;font-weight:bold;text-align:center;display:inline-block;border-radius:5px;text-transform:capitalize;background-color:#208ed5;margin:0;border-color:#208ed5;border-style:solid;border-width:10px 20px\" 

Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -