Jump to content

enviar email


GpL

Recommended Posts

qual o problema deste script ?

<% 
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")

Mailer.RemoteHost = "mail.siebraga.com" 

Mailer.FromName = request.form("nome")

Mailer.FromAddress = "ASSISTENCIA"

Mailer.AddRecipient "SIEBRAGA" , "luis_bracara@hotmail.com"

Mailer.Subject="ASSISTENCIA"

Mailer.Bodytext = "O cliente " & request.form("nome") & ", pediu assistência online." & chr(13) & request.form("tipo") & chr(13) & request.form("morada") & chr(13) & request.form("contacto")

x = Mailer.SendMail 

if x = true then 

MSG = "E-MAIL ENVIADO COM SUCESSO!"

Else

MSG = " O E-MAIL NÃO FOI ENVIADO COM SUCESSO!" 

end if 

Response.write MSG 

Set Mailer = Nothing
%>
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.