Jump to content

Info to email


Cheap Commercial

Recommended Posts

If you want to send yourself everything submitted, do something like this: (Lets say he submitted his name and phone number)
[code]<?php
$to="[email protected]";
$subject="Info";
$msg="Name= ".$_POST['name]."/n Phone number= ".$_POST['tel'];
if(mail($to,$subject,$msg){echo "Mail sent";} else{echo "There was a problem sending your info";};
?>[/code]

Orio.
Link to comment
https://forums.phpfreaks.com/topic/8133-info-to-email/#findComment-29792
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.