Jump to content


Photo

E-mail


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

#1 xuel

xuel

    Novato no fórum

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

Posted 11/06/2004, 14:11

O q tem de errado nesse codigo?
<html>
<head>
<Title>OTG Mercantil</title>
</head>
<body>
<%
Set Mail = Server.createObject("SMTPsvg.Mailer")
Mail.RemoteHost = "smtp.otgmercantil.com.br"
Mail.Subject = "Cadastro de Pessoa Jurídica"
Mail.FromAdress = "otgmercantil@otgmercantil.com.br"
Mail.FromName = "www.otgmercantil.com.br"
Mail.AddRecipient "OTG Mercantil", "maxgra@ig.com.br"
Mail.BodyText = "Maxwell isso é um teste do site da OTG, tomara q tenha dado certo"
Mail.SendMail
erro="Seu E-mail foi enviado com sucesso"
%>

<table width="504" border="0" cellspacing="0" cellpadding="0">
                <tr> 
                  <td><div align="center"><font face="Verdana" size="2"><strong><% Response.write(erro) %></strong></font></div></td>
                </tr>
              </table>
</body>
</html>


Valeu.......

#2 Prog

Prog

    ...

  • Ex-Admins
  • 3761 posts
  • Sexo:Masculino
  • Localidade:Rio de Janeiro/RJ
  • Interesses:TI, Software Livre, Design Digital e Rock'n'Roll.

Posted 11/06/2004, 14:20

Certifique-se de que no servidor existe o componente ASPMail instalado.

Caso esteja instalado, coloque as seguintes linhas para verificar o erro adequadamente:

if Mail.SendMail then
  erro = "Mensagem enviada..."
else
  erro = "Ocorreu o seguinte erro: " & Mailer.Response
end if

Se não tiver o ASPMail, procure saber qual componente de e-mail tem instalado. Em último caso, tente usar o componente CDONTS.
------
Mero mortal!




1 user(s) are reading this topic

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

IPB Skin By Virteq