Visualizzazione dei risultati da 1 a 7 su 7
  1. #1

    sintassi Objmail.HTMLBody

    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 
    %>
    non impazzire dietro il sistema! Sfruttalo!

  2. #2
    Se non hai errori, ma la mail non arriva allora o aspetti un pochetto (magari tra un po arriva) oppure chiedi al tuo hosting di verificare le cartelle badmail, dropmail in inetpub/mailroot.

  3. #3
    Originariamente inviato da Mems
    ...chiedi al tuo hosting di verificare...
    il mio hosting è aruba...lasciamo stare...ma la sintassi è corretta? io nn sn un espertone...
    non impazzire dietro il sistema! Sfruttalo!

  4. #4
    niente raga...ho provato così
    codice:
    Objmail.HTMLBody = ("<html><head><title>titolo</title></head><body><img src=http:\\www.dcamo.it\public\newsletter\") & img_gruppo & (">
    <hr>") & all_mail & ("</body></html>")
    purtroppo ora la MAIL ARRIVA ma nn visualizza l'immagine...credo abbia problemi con le " del tag [img][/img]

    anche se inserendo un response.write per vedere cosa contiene Objmail.HTMLBody mi stampa tutto come se nn ci fossero problemi!!!!
    non impazzire dietro il sistema! Sfruttalo!

  5. #5
    codice:
     Objmail.HTMLBody = "[img][/img]
    <hr>") & all_mail

  6. #6
    hei Mems mi da quest'errore:

    codice:
    Microsoft VBScript compilation error '800a0401' 
    
    Expected end of statement 
    
    /newsletter/spediscinewsletter.asp, line 52 
    
    Objmail.HTMLBody = "[img][/img]
    <hr>") & all_mail
    -----------------------------------------------------------------------------------------------------^
    non impazzire dietro il sistema! Sfruttalo!

  7. #7
    codice:
    Objmail.HTMLBody = "[img][/img]
    <hr>" & all_mail
    A levà na parentesi non ci arrivavi, eh?
    :rollo:

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.