Send email notification

Discussion in 'JavaScript' started by Hosea, Apr 30, 2012.

  1. #1
    HiI have a form with fields, so when I submit this form I want email notification to be submited to two people that a form has been submitted. can someone help me with JavaScript to do that.Thanks
     
    Hosea, Apr 30, 2012 IP
  2. joetito1

    joetito1 Member

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #2
    You can't send emails with JavaScript, it's a security thing. You'll need to submit your form to a PHP page that can do the emailing, look up 'php simple contact form' in google.
     
    joetito1, Apr 30, 2012 IP
  3. infotripro

    infotripro Member

    Messages:
    26
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    43
    #3
    in your php action script either use mail() or (I recommend) Swift Mailer/other mailer script
     
    infotripro, May 2, 2012 IP
  4. nabilabutt7

    nabilabutt7 Peon

    Messages:
    33
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    it is better fo security
     
    nabilabutt7, May 3, 2012 IP
  5. Imless

    Imless Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    just use mail(), easy to use! xD
     
    Imless, May 18, 2012 IP