email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phuc2583
    New Member
    • Dec 2007
    • 18

    email

    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
    Last edited by jhardman; Mar 18 '08, 09:32 PM. Reason: put code in code tags. Please note button marked - #, removed email address
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    Does this give you any error messages?

    Jared

    Comment

    Working...