please help me about my code that write by asp
email code.when i sent email but i can receive a email at all.
this is he whole code
[code=asp]
mailto="anEmail Address@gmail.c om"
host="localhost "
yourname=Reques t.Form("name")
email=Request.F orm("email")
phone=Request.F orm("phone")
note=Request.Fo rm("note")
subject=Request .Form("subject" )
If Request.Form("s ubmit")<>"" and email<>"" Then
Set Mail = Server.CreateOb ject("Persits.M ailSender")
Mail.IsHTML=tru e
Mail.Host = host
Mail.From = email
Mail.FromName = ""
Mail.AddAddress mailto(send email to this email)
If email<>"" Then
Mail.AddCC email,yourname
End If
Mail.Subject=Su bject
Mail.Body = note
Mail.Send
'Response.Write ("Email Send Success!")
End If[/code]
thanks so much
Regards
Hoang Phuc
email code.when i sent email but i can receive a email at all.
this is he whole code
[code=asp]
mailto="anEmail Address@gmail.c om"
host="localhost "
yourname=Reques t.Form("name")
email=Request.F orm("email")
phone=Request.F orm("phone")
note=Request.Fo rm("note")
subject=Request .Form("subject" )
If Request.Form("s ubmit")<>"" and email<>"" Then
Set Mail = Server.CreateOb ject("Persits.M ailSender")
Mail.IsHTML=tru e
Mail.Host = host
Mail.From = email
Mail.FromName = ""
Mail.AddAddress mailto(send email to this email)
If email<>"" Then
Mail.AddCC email,yourname
End If
Mail.Subject=Su bject
Mail.Body = note
Mail.Send
'Response.Write ("Email Send Success!")
End If[/code]
thanks so much
Regards
Hoang Phuc
Comment