raga non riesco a inserire altro HTML in Objmail.HTMLBody oltre alla variabile ... nn mi da errore ma la mail nn arriva (probabilmente nn parte xkè nn viene accettata...boh!!!) .. perfavore mi controllate un po' la sintassi, nn so bene come impostarla!!! please help me![]()
codice:sql = "SELECT * FROM newsletter where idnewsletter="&id Set rs = cn.Execute(sql) img_gruppo = rs("img_gruppo") titolo = rs("titolo") corpo = rs("corpo") allegato = rs("allegato") set rs = nothing for j = min to max Set Objmail = Server.CreateObject("CDO.Message") Objmail.From = "www.ppp.it" Objmail.To = em(j) Objmail.Subject =titolo corpo = Replace(corpo, "’", "'") all_mail = corpo Objmail.HTMLBody = ("<img src=http:\\www.ppp.it\public\newsletter\") & img_gruppo & ("> <hr>") & all_mail if allegato <> "" then Objmail.AddAttachment ("D:\Inetpub\webs\dcamoit\public\"&allegato&"") end if Objmail.Fields("urn:schemas:httpmail:importance").Value = 2 Objmail.Fields.Update() Objmail.Send() Set Objmail = Nothing response.write em(j) & " " next %>