<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<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 name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.StileMessaggioDiPostaElettronica18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>Hi everybody, I&#8217;m trying to send an email via outlook and everything works fine with the following code:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj = win32com.client.Dispatch(</span><i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#00AA00'>&quot;Outlook.Application&quot;</span></i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:blue'>for</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> mail </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:blue'>in</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'> Lmail:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;newMail = obj.CreateItem(</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:maroon'>0</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>)</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newMail.To = mail</span><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newMail.Subject = </span><i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#00AA00'>&quot;<u>Title</u>&quot;</span></i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newMail.Body = </span><i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#00AA00'>&quot;<u>CIAO</u>&quot;</span></i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New"'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:black'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; newMail.Send()</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Now I have to send an htm mail instead than normal plain text but I can&#8217;t find anything to do that.<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US>I tried something as<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US>newMail.Html = </span><i><span lang=EN-US style='font-size:10.0pt;font-family:"Courier New";color:#00AA00'>&quot;&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;CIAO&lt;/BODY&gt;&lt;/HTML&gt;&quot;<o:p></o:p></span></i></p><p class=MsoNormal><span lang=EN-US>but Html is not a property of COM object.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>How can I do that? thanks<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 align=left width="103%" style='width:103.82%;border:none;border-top:solid #939393 1.0pt'><tr style='height:1.0pt'><td width=170 rowspan=2 valign=top style='width:127.5pt;border:none;padding:0cm 0cm 0cm 0cm;height:1.0pt'></td><td style='border:none;background:#505050;padding:8.0pt 8.0pt 3.0pt 8.0pt;height:1.0pt'><p class=MsoNormal style='mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly'><b><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:white;mso-fareast-language:IT'>LUCA ZACCHETTI <o:p></o:p></span></b></p></td></tr><tr style='height:1.0pt'><td valign=bottom style='border:none;background:white;padding:3.0pt 8.0pt 4.0pt 8.0pt;height:1.0pt'><p class=MsoNormal style='mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly'><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:#666666;mso-fareast-language:IT'>Corso Dante, 61&nbsp; 23801 Calolziocorte LC <br>0341 631058 348 3042711<br></span><b><i><u><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:#215868;mso-fareast-language:IT'><a href="mailto:luca@vulcanoweb.it">luca@vulcanoweb.it</a> <a href="www.vulcanos.it&nbsp;"><span style='color:#215868'>www.vulcanos.it</span><span style='color:#215868;font-weight:normal;font-style:normal'>&nbsp;</span></a></span></u></i></b><span style='font-size:7.0pt;font-family:"Verdana","sans-serif";color:#215868;mso-fareast-language:IT'><o:p></o:p></span></p></td></tr><tr style='height:1.0pt'><td valign=top style='border:none;border-top:solid #807F84 4.5pt;padding:0cm 0cm 0cm 0cm;height:1.0pt'></td><td style='border:none;border-top:solid #E12832 4.5pt;padding:0cm 0cm 0cm 0cm;height:1.0pt'></td></tr></table><p class=MsoNormal><i><span style='font-size:7.0pt;font-family:"Arial","sans-serif";color:#A6A6A6;mso-fareast-language:IT'>Avvertenze ai sensi del D.Lgs. n.196/2003 <br>Le informazioni contenute in questo messaggio di posta elettronica e/o files allegati, sono da considerarsi strettamente riservati ed il loro utilizzo è consentito esclusivamente al destinatario del messaggio, per le finalità indicate nello stesso. Costituisce violazione ai principi dettati dal D.Lgs. 196/2003: trattenere il messaggio stesso oltre il tempo necessario, divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo od utilizzarlo per finalità diverse. Ricordiamo che in ogni momento potrete richiederci la sospensione da parte nostra dell'impiego dei vostri dati, ad esclusione delle comunicazioni effettuate in esecuzione di obblighi di legge. Chi dovesse ricevere questo messaggio per errore è tenuto ad informare il mittente ed a rimuoverlo definitivamente da ogni supporto elettronico o cartaceo. <o:p></o:p></span></i></p><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></body></html>