Menu

How do I sent an email to me and the user

Help
2010-08-02
2013-06-03
  • Sergei Prokhnevskiy

    I've created a form and right after a user completes the form I want to have a copy of it sent to my email and I also want an email sent to them with a link to view the content. Basically to view the content the user has to fill out a form that will send them an email with a link that will take them to the content. Please help. Thank you!

     
  • TNTEverett

    TNTEverett - 2010-08-03

    In your processor.php file you will find the "mail()" function that sends email to the form user.  You can do any number of things.  You can just add your email to the "send to" field in the mail function.  You can add your name in CC or BCC fields.   Last you can copy the mail function and send a separate email to yourself. 
    As far as sending a link back to form contents it is probably better just to email the contents back to the user otherwise you will have to have separate control over extracting and rebuilding your form with only their specific form data.  This is more complicated but certainly not impossible. 
    Check this link for info on the mail function.

    http://php.net/manual/en/function.mail.php

     
  • TNTEverett

    TNTEverett - 2010-08-03

    Your original form uses css styles to control many of the form features.  You will need to copy the styles used in order to preserve the look of the form, or at least have the same style controls with values that more closely match the look of your new page. 

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.