I am trying to send a email everytime a customer sign-up using my form. I want the email to work in the background. I have created a mysql database and set the form/webpage. How would I go about making this. Is there a way to send a email in the background everytime a user signs up?
I'm confused what are you trying to do? What do you mean you want a email to work in the background? Did you mean a image in the background of the email? Can you explain more about the email in the background?
LastMitch
Industrious Poster
4,207 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45
@jdgrinder
I have a form and mysql database setup to recive information. After they register I want an email to be send to me informing me with there information(name,phonen number, email)
You just want the data that was submitted to the database at the same time, it will send data to you too? Is that what you want?
Then you should used $_POST & $_GET function. Read this:
http://www.tizag.com/phpT/postget.php
This $_POST function will post the data in the message and email the data to you.
This $_GET function will get the data in the message and email the data to you.
You can used either function and it will work.
You can used the example from the link as a guideline.
LastMitch
Industrious Poster
4,207 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45
@jdgrinder
You can used Zagga mail function as an alternative or you can used this:
http://www.freecontactform.com/email_form.php
This example has a basic PHP script which will capture the form submissions and send the form contents to your email address.
This example will be more clearer than the one I just post before because I only gave you an general idea or outline on how a Post works.
LastMitch
Industrious Poster
4,207 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45
@jdgrinder
Read the link I just send you:
http://www.freecontactform.com/email_form.php
Read this
The PHP Code which captures and Emails your website form
It show you how to POST forget GET function.
Just take some of the code and put it in your code.
LastMitch
Industrious Poster
4,207 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45
@jdgrinder
Is it's solve? If so can you click Mark Question Solve on the bottom left corner so the thread is close and solve so noone can add stuff to it. Thanks.
LastMitch
Industrious Poster
4,207 posts since Mar 2012
Reputation Points: 134
Solved Threads: 336
Skill Endorsements: 45