Jump to content


Photo

E-mail Em Html


  • Faça o login para participar
1 reply to this topic

#1 bruno_nunes

bruno_nunes

    Turista

  • Usuários
  • 31 posts
  • Sexo:Não informado

Posted 09/10/2003, 16:22

Blz pessoal ?

Naum consigo enviar um e-mail através de ASP, vou passar o codigo, mas esse naum dah certo...

  Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
  objCDONTS.From    = Request.Form("Nome") & " <" & Request.Form("E-Mail") & ">"

  strbody = ""

  strbody = "<html><head><title>Fa&ccedil;a seu Pedido - Confirmação de Pedido</title></head><body>" & VbCrLf

  strbody = strbody & "<table width='100%' border='1'>" & VbCrLf

  strbody = strbody & "<tr><td><font size='2' face='Tahoma, Verdana, Arial'>" & Request.Form("Texto") & "</font></td></tr>" & VbCrLf

  strbody = strbody & "</table>" & VbCrLf

  strbody = strbody & "</body></html>"

  objCDONTS.To      = "teste@info13.com.br"
  objCDONTS.Subject = "Teste de E-mail"
  objCDONTS.Body    = strBody
  objCDONTS.Send
  Set objCDONTS = Nothing
 
  Response.Redirect "teste2.asp"


nesse caso, ele manda tudo em texto, tipo, as tags, o texto tudo misturado...
manda o e-mail assim:

<html><head><title>Fa&ccedil;a seu Pedido - Confirmação de Pedido</title></head><body>
<table width='100%' border='1'>
<tr><td><font size='2' face='Tahoma, Verdana, Arial'>Teste de e-mail...</font></td></tr>
</table>
</body></html>


se alguem puder me ajudar eu agradeço,

falow !!! B)
Ôôôôôôôôôô...ôôôô... Todo Poderoso TIMÃO !!!

#2 Arley

Arley

    12 Horas

  • Usuários
  • 188 posts
  • Sexo:Não informado
  • Localidade:Brasilia
  • Interesses:ASP &lt;br&gt;banco de dados

Posted 09/10/2003, 17:17

acrescente estas duas linhas no seu codigo

objCDONTS.BodyFormat=0
objCDONTS.MailFormat=0

falows
arley
ok ok!
Sem Imagens!




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq