Embedding images in html mail

Hi;
Is there a sample anywhere that shows how to send an html email with images where the images are embedded int he displayed html?
thanks - dave

http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
http://java.sun.com/developer/EJTechTips/2004/tt0625.html

Similar Messages

  • Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Load remote images in html mail setting does not get saved. I have to turn it off every time I log in. Is this a bug?

    Plug your phone into the wall charger for at least 30 minutes...make sure you have a sim card in the phone...then:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.
    Make sure you have no anti-virus software running or any firewalls...turn all of that stuff off.

  • Embedded image in html body of the email is not appearing in Outlook mail box

    My application Basically gets the un delivered emails from the outlook account.Composes the email from information then also appends the signature of email.The signatures may be multiple , form will show these signatures as a dropdown usin webbrowser control there both image as well as links appear well.But the same if draft them to outlook drafts folder the image in the signature misses and shows image not available.II fetch the signature from user local signature folder , convert it base64 string and set the string as source for image element and append this body of the email.I basically use Outlook COM object to achieve thesepublic void AddImageContentToHtml(List<TamDetails> tamList,string html,string key)
    string htmlContent = html as string;
    string imageSource = string.Empty;
    HtmlNode signatureNode = null;
    HtmlNodeCollection nodeCollection = null;
    List<string> imagePaths = null;
    string requiredImage = string.Empty;
    string base64Image = string.Empty;
    if (!string.IsNullOrWhiteSpace(key))
    imagePaths = ImageDict[key];
    foreach (string strPath in imagePaths)
    //string appDataDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\Microsoft\\Signatures";
    requiredImage = strPath;
    string [] commonPath = { Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Microsoft", "Signatures")};
    string[] validPaths = requiredImage.Split(commonPath, StringSplitOptions.RemoveEmptyEntries);
    if (validPaths.Count() > 1)
    var path1 = commonPath[0];
    var path2 = validPaths[1];
    int index = path2.IndexOf('/');
    path2.Remove(index);
    requiredImage = path1 + path2;
    if (!string.IsNullOrEmpty(requiredImage))
    if (File.Exists(requiredImage))
    base64Image = CreateBase64Image(requiredImage);
    string fileExtension = Path.GetExtension(requiredImage);
    imageSource = "data:image/" + fileExtension.Remove(0, 1) + ";base64," + base64Image;
    if (!string.IsNullOrWhiteSpace(htmlContent))
    try
    HtmlDocument htmlDoc = new HtmlDocument();
    if (!string.IsNullOrEmpty(imageSource))
    htmlContent=htmlContent.Replace(requiredImage, imageSource);
    htmlDoc.LoadHtml(htmlContent);
    // HtmlNode node = new HtmlNode()
    signatureNode = (htmlDoc.DocumentNode.Descendants("body").FirstOrDefault());
    nodeCollection = signatureNode.ChildNodes;
    catch (Exception ex)
    AppLogException.LogError("Error in appending Signature Image", ex);
    if (tamList != null)
    tamList.ForEach(a =>
    //StringWriter sw = new StringWriter(new StringBuilder(a.MailItem.HTMLBody));
    HtmlDocument doc = new HtmlDocument();
    doc.LoadHtml(a.SourceEmail);
    var node = doc.DocumentNode.Descendants("div").FirstOrDefault();
    if(nodeCollection != null && node != null)
    foreach (var childNode in nodeCollection)
    node.AppendChild(childNode);
    a.MailItem.HTMLBody = doc.DocumentNode.OuterHtml;
    //using(HtmlTextWriter htmlWriter = new HtmlTextWriter(sw,a.MailItem.HTMLBody))
    // htmlWriter.RenderBeginTag(HtmlTextWriterTag.Div);
    // if(!string.IsNullOrWhiteSpace(signatureNode))
    // htmlWriter.
    // htmlWriter.RenderEndTag();
    }My mail html body is <html xmlns:v="urn:schemas-microsoft-com:vml"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:w="urn:schemas-microsoft-com:office:word"
    xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
    xmlns="http://www.w3.org/TR/REC-html40">
    <head>
    <meta http-equiv=Content-Type content="text/html; charset=windows-1252">
    <meta name=ProgId content=Word.Document>
    <meta name=Generator content="Microsoft Word 14">
    <meta name=Originator content="Microsoft Word 14">
    <link rel=File-List href="Sanjay%20S_files/filelist.xml">
    <link rel=Edit-Time-Data href="Sanjay%20S_files/editdata.mso">
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    <o:OfficeDocumentSettings>
    <o:AllowPNG/>
    </o:OfficeDocumentSettings>
    </xml><![endif]-->
    <link rel=themeData href="Sanjay%20S_files/themedata.thmx">
    <link rel=colorSchemeMapping href="Sanjay%20S_files/colorschememapping.xml">
    <!--[if gte mso 9]><xml>
    <w:WordDocument>
    <w:View>Normal</w:View>
    <w:Zoom>0</w:Zoom>
    <w:TrackMoves/>
    <w:TrackFormatting/>
    <w:PunctuationKerning/>
    <w:ValidateAgainstSchemas/>
    <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
    <w:IgnoreMixedContent>false</w:IgnoreMixedContent>
    <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
    <w:DoNotPromoteQF/>
    <w:LidThemeOther>EN-US</w:LidThemeOther>
    <w:LidThemeAsian>X-NONE</w:LidThemeAsian>
    <w:LidThemeComplexScript>X-NONE</w:LidThemeComplexScript>
    <w:DoNotShadeFormData/>
    <w:Compatibility>
    <w:BreakWrappedTables/>
    <w:SnapToGridInCell/>
    <w:WrapTextWithPunct/>
    <w:UseAsianBreakRules/>
    <w:DontGrowAutofit/>
    <w:SplitPgBreakAndParaMark/>
    <w:EnableOpenTypeKerning/>
    <w:DontFlipMirrorIndents/>
    <w:OverrideTableStyleHps/>
    <w:UseFELayout/>
    </w:Compatibility>
    <m:mathPr>
    <m:mathFont m:val="Cambria Math"/>
    <m:brkBin m:val="before"/>
    <m:brkBinSub m:val="&#45;-"/>
    <m:smallFrac m:val="off"/>
    <m:dispDef/>
    <m:lMargin m:val="0"/>
    <m:rMargin m:val="0"/>
    <m:defJc m:val="centerGroup"/>
    <m:wrapIndent m:val="1440"/>
    <m:intLim m:val="subSup"/>
    <m:naryLim m:val="undOvr"/>
    </m:mathPr></w:WordDocument>
    </xml><![endif]--><!--[if gte mso 9]><xml>
    <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"
    DefSemiHidden="true" DefQFormat="false" DefPriority="99"
    LatentStyleCount="267">
    <w:LsdException Locked="false" Priority="0" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Normal"/>
    <w:LsdException Locked="false" Priority="9" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>
    <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 1"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 2"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 3"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 4"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 5"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 6"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 7"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 8"/>
    <w:LsdException Locked="false" Priority="39" Name="toc 9"/>
    <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>
    <w:LsdException Locked="false" Priority="10" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Title"/>
    <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>
    <w:LsdException Locked="false" Priority="11" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>
    <w:LsdException Locked="false" Priority="22" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Strong"/>
    <w:LsdException Locked="false" Priority="20" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>
    <w:LsdException Locked="false" Priority="59" SemiHidden="false"
    UnhideWhenUsed="false" Name="Table Grid"/>
    <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>
    <w:LsdException Locked="false" Priority="1" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 1"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>
    <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>
    <w:LsdException Locked="false" Priority="34" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>
    <w:LsdException Locked="false" Priority="29" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Quote"/>
    <w:LsdException Locked="false" Priority="30" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 1"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 1"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 2"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 2"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 2"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 3"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 3"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 3"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 4"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 4"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 4"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 5"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 5"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 5"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>
    <w:LsdException Locked="false" Priority="60" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="61" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light List Accent 6"/>
    <w:LsdException Locked="false" Priority="62" SemiHidden="false"
    UnhideWhenUsed="false" Name="Light Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="63" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="64" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="65" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="66" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="67" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>
    <w:LsdException Locked="false" Priority="68" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>
    <w:LsdException Locked="false" Priority="69" SemiHidden="false"
    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>
    <w:LsdException Locked="false" Priority="70" SemiHidden="false"
    UnhideWhenUsed="false" Name="Dark List Accent 6"/>
    <w:LsdException Locked="false" Priority="71" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>
    <w:LsdException Locked="false" Priority="72" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful List Accent 6"/>
    <w:LsdException Locked="false" Priority="73" SemiHidden="false"
    UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>
    <w:LsdException Locked="false" Priority="19" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>
    <w:LsdException Locked="false" Priority="21" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>
    <w:LsdException Locked="false" Priority="31" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>
    <w:LsdException Locked="false" Priority="32" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>
    <w:LsdException Locked="false" Priority="33" SemiHidden="false"
    UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>
    <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>
    <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>
    </w:LatentStyles>
    </xml><![endif]-->
    <style>
    <!--
    /* Font Definitions */
    @font-face
    {font-family:Calibri;
    panose-1:2 15 5 2 2 2 4 3 2 4;
    "Times New Roman";
    /* Style Definitions */
    p.MsoNormal, li.MsoNormal, div.MsoNormal
    margin:0in;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    "Times New Roman";
    "Times New Roman";
    p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
    "E-mail Signature Char";
    margin:0in;
    margin-bottom:.0001pt;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    "Times New Roman";
    "Times New Roman";
    span.E-mailSignatureChar
    {"E-mail Signature Char";
    "E-mail Signature";}
    .MsoChpDefault
    font-size:11.0pt;
    "Times New Roman";
    "Times New Roman";
    @page WordSection1
    {size:8.5in 11.0in;
    margin:1.0in 1.0in 1.0in 1.0in;
    div.WordSection1
    {page:WordSection1;}
    -->
    </style>
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable
    {"Table Normal";
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    </style>
    <![endif]-->
    </head>
    <body lang=EN-US style='tab-interval:.5in'>
    <div
    <p S<o:p></o:p></p>
    <p
    <p
    <p gte vml 1]><v:shapetype id="_x0000_t75"
    coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe"
    filled="f" stroked="f">
    <v:stroke joinstyle="miter"/>
    <v:formulas>
    <v:f eqn="if lineDrawn pixelLineWidth 0"/>
    <v:f eqn="sum @0 1 0"/>
    <v:f eqn="sum 0 0 @1"/>
    <v:f eqn="prod @2 1 2"/>
    <v:f eqn="prod @3 21600 pixelWidth"/>
    <v:f eqn="prod @3 21600 pixelHeight"/>
    <v:f eqn="sum @0 0 1"/>
    <v:f eqn="prod @6 1 2"/>
    <v:f eqn="prod @7 21600 pixelWidth"/>
    <v:f eqn="sum @8 21600 0"/>
    <v:f eqn="prod @7 21600 pixelHeight"/>
    <v:f eqn="sum @10 21600 0"/>
    </v:formulas>
    <v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
    <o:lock v:ext="edit" aspectratio="t"/>
    </v:shapetype><v:shape id="_x0000_i1025" type="#_x0000_t75" style='width:381.75pt;
    height:63.75pt'>
    <v:imagedata src="Sanjay%20S_files/image001.png" o:title="Signature"/>
    </v:shape><![endif]--><![if !vml]><img width=509 height=85
    src="Sanjay%20S_files/image001.png" v:shapes="_x0000_i1025"><![endif]><o:p></o:p></p>
    <p
    </div>
    </body>
    </html>

    Hi ssanjay.brillio,
    According to your description, you'd like to send a email with an embedded image in the signature.
    I suggest you sending the image in the last of the body of email instead of operating the signature of email.
    The following example codes demonstrate how to send email using ImportHtml method with embedded images.
    SmtpMail oMail = new SmtpMail("TryIt");
    SmtpClient oSmtp = new SmtpClient();
    // Set sender email address, please change it to yours
    oMail.From = "[email protected]";
    // Set recipient email address, please change it to yours
    oMail.To = "[email protected]";
    // Set email subject
    oMail.Subject = "test HTML email with embedded image";
    // Your SMTP server address
    SmtpServer oServer = new SmtpServer("smtp.emailarchitect.net");
    // User and password for ESMTP authentication, if your server doesn't require
    // User authentication, please remove the following codes.
    oServer.User = "[email protected]";
    oServer.Password = "testpassword";
    // If your smtp server requires SSL/TLS connection, please add this line
    // oServer.ConnectType = SmtpConnectType.ConnectSSLAuto
    try {
    // Import html body and also import linked image as embedded images.
    // 'test.gif is in c:\\my picture
    oMail.ImportHtml("<html><body>test <img src=\"test.gif\"> importhtml</body></html>", "c:\\my picture", ImportHtmlBodyOptions.ImportLocalPictures | ImportHtmlBodyOptions.ImportCss);
    Console.WriteLine("start to send email with embedded image ...");
    oSmtp.SendMail(oServer, oMail);
    Console.WriteLine("email was sent successfully!");
    } catch (Exception ep) {
    Console.WriteLine("failed to send email with the following error:");
    Console.WriteLine(ep.Message);
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Display image in html mail

    I was recently sent an email that used an HTML stationery wih several photos embedded in it.  The email opens normally, but all of the images are icons, displaying file name and size.  If I click the icon, the image opens correcly in a separate window. 
    I am running OS X 10.7.3 and Mail 5.2 (1257) and have checked "display remote images in html email" in preferences.  A friend with identical software versions receives the same email and the photos are visible in the original email. Suggestions?

    No-one replied, but I found a solution on another board. Run Terminal (do a Spotlight search if you don't know where to find this), and type: (or copy and past the next line)
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool false
    This will force Mail not to disable inline attachment viewing. Obviously, to reverse this, simple replace 'false' at the end with 'true'.
    Thanks to Louise101 from July 2011 for posting this.

  • OBIEE v11.1.1.5 - Cannot view embedded images  ( PDF/HTML)

    Hi Everyone,
    I have a OBIEE 11g report with embedded images and I scheduled to run every week using an agent.
    When I specify Delivery content and format as ( PDF or Plain HTML ) the email does not display any images
    Error if format is HTML : The linked image cannot be displayed. The File moved,renamed, or deleted. Verify  that the link points to the correct  file and location.
    I also tried printing to pdf, but images are not displayed.
    Tried using both fmap and html syntax to link images. Has any one encountered this issue in v 11.1.1.5 ?
    Please suggest
    Thanks

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this test is to determine whether the problem is localized to your user account. Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The "Guest User" login created by "Find My Mac" is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.

  • How to Prevent Downloading Images in HTML Mail?

    Is there an option to prevent the downloading of images in HTML emails? If not, is there a way to view all emails as text-only?

    No to both questions.
    There is a message preview function with the following options:
    None
    1 Line
    2 Lines
    3 Lines
    4 Lines
    5 Lines
    The preview function does not open the message. If you select a message to open/view the message, any embedded images or objects that must be rendered from a remote server to be viewed included with HTML formatting will be rendered.

  • Download images in HTML mail

    I have my HTML mail set to not download images automatically, and it's always worked fine... load the email to begin with, BB key > Load images > wait a few seconds > eureka, email and images all download.
    Since approx 36hours now, this has stopped working. I've tried a few reboots, hopped between mobile-network & WiFi connections, sent new HTML mails, toggled the various options off/on.. alas it's totally random but has stopped reliably working... Now, it works for a little while but then "load images" option has precisely no effect. The only consistent factor that is always involved is, I guess, BIS.
    I appreciate this might need formally reporting to my network, but... anyone else having similar problems? Email send/receive & internet browsing (with images) all absolutely fine...

    Hi and Welcome to the Community!
    With a strong carrier network signal (e.g., not merely WiFi), I suggest the following steps, in order, even if they seem redundant to what you have already tried (steps 1 and 2 each should result in a message coming to your BB...please wait for that before proceeding to the next step):
    1) Register HRT
    KB00510 How to register a BlackBerry smartphone with the wireless network
    Please wait for one "registration" message to arrive to your Messages app
    2) Delete and Resend Service Books
    KB05000Delete the service book for the BlackBerry Internet Service email account from the BlackBerry smartphone
    If you have no CMIME entry, then skip the deletion
    KB02830 Send the service books for the BlackBerry Internet Service
    Please wait for "Activation" Messages, one per already configured email account, to arrive in your Messages. If you have no already configured email accounts, please wait 1 hour.
    3) Reboot
    With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes.
    See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    Hopefully that will get things going again for you! If not, then you should try deleting and re-adding your configurations for the affected email accounts. Otherwise, you should contact your mobile service provider for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Sample Java  Code to send an HTML mail with embeded image

    Hello,
    Please can I get a sample Java code on sending an HTML mail with embeded image.
    The HTML message and relevant input parameters withhbe supplied from a PL/SQL that will call the class , the class will embed the image and send the mail to the recepient.

    tev wrote:
    Please can I get a sample Java codeNo. This is a forum, not a code mill.
    Recommended reading: How to ask questions the smart way
    db

  • Mac Mail has problems to display HTML embedded images

    Well Im new here , but have a real problem.
    I create  HTML pages with embedded images and send them off as MIME/multipart etc. mail through active server pages.
    So far so good. All PC users see the mails with 2 embedded images at correct positions using windows e-mail .
    However all Mac users receiving this mail have a problem,  then MAC mail show embedded images just as a box , the 2 images become attachements of the email.
    If a PC user forwards such a  received HTML e-mail to a MAC user , the MAC Mail sees the 2 images are correctly displayed.
    Thanks for hints and comments .

    Hello BDAqua
    Thanks for the dump hint - I could use it.
    Well I have not been able to track down the exact cause of the problem, but at the end I have succeeded to see the pictures even on the Mac. Initially , because I tested the HTML code against Safari/Foxpro/IE9 with success and the PC's received it as a mail  perfect with the pictures , I ruled out the code.
    After sending it with various different parameters for 7-bit coding , multipart/alternative; multipart/mixed, with and without alternative ascii-text body, etc. and having no change of the problem (in one instance Mac stuck the pictures at the end of the mail instead of having it as attachement - but never displayed inside the page) I thought about the HTMLcode again (the mail small but was consisting of a cluster of multi nested tables, where in the pictures where placed). I started from scratch with one simple table and one picture - and saw it also on the Mac, so repeated reconstruction every table layer and picture with testing each step again - and at the end - it worked all. So my conclusion is that the mentioned browsers and windows mail are made more HTML fault tolerant for little code mistakes than mac mail.  It seems that when forwarding the page from windows-mail to Mac mail , windows even corrects and thats why then it was seen ok on the Mac.
    I think that a number of people had similiar experiences. I contacted one advertising company (all Mac freaks and only Mac's there, they do a lot of Internet/Intranet design and develeopments for large companies) and asked them wether they know of any hints or problems - they simply said forget it it's not possible - which is not true - but seeing the HTML correct in all browsers doesn't mean it might ok for the mac mail.
    Well any way I now know where I am and know where to look if suddenly a picture is not shown anymore...
    Thanks for the help and all the best.
    Rgds
    peter

  • Why can't I print embedded images in a Thunderbird E-mail? I just get blank boxes for the images.

    I am a copyeditor who receives feedback from my clients re: manuscripts I have edited. They will often sent e-mails that include small screen captures from parts of their style guide or screen captures of the proof that is in question (small sections, like a paragraph or an equation, or a header that needs to be coded/styled differently for HTML). Now, I can see these fine in the e-mail, but when I go to print them out for my reference binder, the embedded images don't print.
    Mozilla, I need these to print; they are quite important to my job.
    To keep my e-mail from becoming too bloated, I save these important style issue e-mails into a folder on my desktop I call "Print out for binder", queuing them for the day I can print a bunch of them out and arrange them according to subject matter.
    Problem is, they are useless if they don't include these illustrative screen captures; blank boxes are worthless to the context.
    It is not my printer that is the problem. if I receive a Word doc with these screen captures, they print fine. But if I try to print from T-Bird, no go. Help. (I can't save these e-mails as Word docs either, which might solve the problem; the only options in T-Bird are "Save as file" or "Save as template".)
    Thunderbird is a powerful e-mail program, and one I have been using for over a decade. Why can't it perform this function? Please help. Or point me to an add-on. I haven't been able to find one that addresses this seemingly straightforward, common, and simple problem.

    When you select File(or AppMenu/Print)/Print Preview, do the images appear? Do the images print if you check 'Print background (colors & images)' under File/Page Setup? I don't have any problems printing a message with an embedded image, at least to an xps file.
    I devised a workaround that might help, failing a real solution: install [https://addons.mozilla.org/en-US/thunderbird/addon/unmht/ unMHT] in both TB and Firefox, and then File/Save As MHT in TB. Open the mht file in Firefox, and Print.

  • Mail not displaying embedded images

    A few weeks ago, Mail suddenly stopped displaying embedded images in email messages - newsletters, product announcements, etc. The Viewing Preference is still set for "Display remote images in HTML messages," yet all I see are place holders. In my Junk folder, if I click on Load Images in the Junk banner, it refuses to load those images. They simply remain as place holders.
    Anyone else experiencing this problem? Suggestions?
    PowerBook G4   Mac OS X (10.4.8)   Using Mail v. 2.1

    Hi gumnutnijna,
    Does this only happen when using your GMail account? Do you have any other accounts set up on your BlackBerry smartphone to test with?  Also, to confirm, are the messages still in your GMail account inbox on your computer?
    Thanks.
    -CptS
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • Mail 6.0 does not display embedded images

    This was true in the prior version as well, but now I'm about to give up on the product.
    While HTML emails do display images ("Display remote images in HTML messages" is checked in preferences), those with embedded images do not.  Instead, I get a series of attachments, which I can go through with QuickLook (but alphabetically by filename, not in the order in which they're embedded in the email).
    This can't be how it's supposed to work.
    FWIW, the emails do display properly in other mail clients.
    All suggestions much appreciated.

    I was beginning to think I was the only one having this problem. I can view animated GIF's in my Verizon Yahoo account with Safari but not in Mail 3.0. Can also view it in my .mac account only if I go on the web to view my mail. Cannot view them in my .mac. account with Mail. All my settings are correct also. It sounds like there is something buggy with Mail 3.0. Mail 2.x worked fine with animated GIF's with me.

  • Base64 decoding - perl & openssl vs. html embedded image

    I am having a strange problem. I have a TIFF image stored in a SQLite database encoded as Base64. When I retrieve the Base64 characters, save them to a file using an applescript writing a utf-8 text file to disk (or just saving it in TextWrangler), and then try to feed that file into openSSL using the Base64 decoding option, I get an empty file or just a small (not nearly large enough) file that will not open. BUT! When I put that same string into a img tag using base64 decoding in an HTML document, it displays properly in a browser window. Anyone have an idea why this might happen? It does not work using perl either.
    The html code is here: http://web.me.com/danaleighton/base64.html
    The file I am feeding into openSSL is here: http://web.me.com/danaleighton/base64sm.txt
    I am using the following command: openssl enc -base64 -d -in base64sm.txt -out testscript.tiff
    This perl command also does not work: perl -i.txt -MMIME::Base64 -e 'undef $/;while(){print decode_base64($_);}' base64sm
    Thanks in advance for any help!!!

    it's most likely the text you're extracting from the database is either corrupted or wasn't encoded as you expect. Note that your success with the img tag decoding may be misleading. I can't give you details that apply to this case, but browsers typically use smarter decoding tools which are more robust ...
    1) Was the text in the database produced by an internal encoder or was it obtained either from a standard e-mail attachment or produced by this command or its equivalent?:
    Thanks Ray - I was afraid of that. I am extracting the image from a database written by a commercial application. I checked with the developers, and they said it was base64, so that's all I have to go on. I reported this anomaly to them but haven't heard back in over a week.
    2) Are you sure you're retrieving exactly the same bytes that were stored in the database?
    As sure as I can be. For testing, I invoke sqlite from a shell to do the select statement and dump the result to the terminal. Then copy and paste from terminal to a TextWrangler document. I have done the same with an Applescript.
    One complicating factor: the text stored in the database has these weird markup tags that I can't find any documentation. They look like this: <iimg><preferredFilename>Embedded image</preferredFilename><segment>TU0AK...=
    </segment><segment>UdSVL...=
    </segment></iimg>
    I strip these out of the field coming from the database.
    To isolate the problem...
    Unfortunately, since I am not creating the database, I am loath to write to it. I could, but since the problem is likely in the way the developers are encoding or storing the data, it wouldn't do much to solve my problem...
    Thanks so much for your suggestions!! Very helpful.

  • Strange behavior with embedded highDPI images in Apple Mail 7.0

    I came across an issue where images get displayed in there native size even with width attribute:
    Here's my test html
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
    </head>
    <body>
        <div>
            <p>Embeded 1</p>
            <img src="embeded400x200.png" width="200" height="100" />
            <img src="embeded400x200.png" width="200" height="100" />
            <img src="embeded200x100.png" width="200" height="100" />
            <img src="embeded200x100.png" width="200" height="100" />
        </div>
        <div>
            <p>Embeded 2</p>
            <img src="embeded400x200.png" width="200" height="100" />
            <img src="embeded400x200.png" width="200" height="100" />
            <img src="embeded200x100.png" width="200" height="100" />
            <img src="embeded200x100.png" width="200" height="100" />
        </div>
        <div>
            <p>Linked 1</p>
            <img src="http://dummyimage.com/200x100/000/fff&text=linked+200/100" width="200" height="100" />
            <img src="http://dummyimage.com/400x200/000/fff&text=linked+400/200" width="200" height="100" />
            <img src="http://dummyimage.com/200x100/000/fff&text=linked+200/100" width="200" height="100" />
            <img src="http://dummyimage.com/400x200/000/fff&text=linked+400/200" width="200" height="100" />
        <div>
        <div>
            <p>Linked 2</p>
            <img src="http://dummyimage.com/200x100/000/fff&text=linked+200/100" width="200" height="100" />
            <img src="http://dummyimage.com/400x200/000/fff&text=linked+400/200" width="200" height="100" />
            <img src="http://dummyimage.com/200x100/000/fff&text=linked+200/100" width="200" height="100" />
            <img src="http://dummyimage.com/400x200/000/fff&text=linked+400/200" width="200" height="100" />
        <div>
    </body>
    </html>
    Here's a screenshot from Apple Mail 7.0
    The images get embeded with phpMailer so the source may looks slightly different but the width attributes will remain.
    Only the first embedded image is affected
    I did a testrun with Litmus and all other mails works as expected. Even Apple Mail 5 and Apple Mail 6
    Is this a bug in Apple Mail or do I miss something?

    I wonder if this is the same problem that I encounter:
    I receive faxes in my inbox as tiff files and before Mavericks I could view them properly in-line .. but now only the first one I go to displays correctly .. all other received faxes show this same image.
    If I "open" the attachment it is properly displayed .. but in-line it is always the same image that displays .. the first one that I go to when opening Mail.
    As far as I can see it is only tiffs sent by my fax-to-email service that show up improperly .. other in-line attachments such as PDF's seem unaffected and display correctly.
    I thought that it was related to the coverflow issue that was fixed by the 10.9.1 update .. but no such luck.

  • No embedded images on mail

    In Mail, I can not see any embedded image. The attached images no problem, but the ebedded are seen as a blue square with a question mark.
    No newsletter visible.
    I have checked the "view remote images on HTML messages", but , .....nothing
    Any ideas????
    Thanks

    I think I discovered the answer which, if true, was a real coincidence. Just at the time that I was getting the "No error" message each time I tried to go into the tracking site, I noticed that the Apple Store was down. As soon as it came up, I was able to get into the tracking site. I am sure this was the problem but it sure was strange how everything came together.

Maybe you are looking for