PHP mailer

Hi,
I’m looking for someone who might know how to make a mailer.php with my specified requirements.

I have a AJAX form on my website, with inputs, ‘name’, ‘email’, ‘phone’ and ‘message’. The IDs for each of these inputs are ‘contact_name’, ‘contact_email’, ‘contact_phone’ and ‘contact_message’.

I would need my email address put into this so I can receive emails from the form and the title of the email can be customised something like eg. ‘Contact form submission’.

Thanks.

We’re here to teach, not do.

At least read the material and TRY yourself first, then come back with your code and we’ll help point you in the right direction. (The manual pages have plenty of examples for you to copy/paste.)

Cheers, thanks!

If it’s an AJAX form (Which i highly doubt, by the way. Your form may make an AJAX call, but unless you’re building it dynamically, it’s just a form.), what is it AJAX’ing? Have you tried to do the [FPHP]mail[/FPHP] call?

Ok, If it’s not an AJAX form then what?

Presumably the input fields are POSTed to a PHP script on your server?

If so, you’ll want to have a look at PHP’s filter functions (also [URL=“http://www.w3schools.com/php/php_filter.asp”]here) to sanitize the values you get sent. Then the [URL=“http://www.w3schools.com/php/php_mail.asp”]mail function to send yourself the results.

Presumably you mean that you are sending the results of the form via js, not via a normal form submit?

Either way, it doesn’t really make much difference how the results get to your server, it sounds like you need to read up on how to take user inputs and mail them - see my answer above.

I’m a PHP newbie, so what I’m really asking is for someone to make one for me…and yes it’s JS r2d2.

“someone to make one for me” for ££?

Pick one of the following instead:

“You scratch my back I’ll scratch yours”
“I’m helping a fellow web developer and because it’s free I have a nice warm feeling inside”