PHP Email

 
PHP Code
The PHP code to send email is simply one PHP function mail(). The basic format for this function is:
mail("to", "subject", "message");


For example (this is straight out of the online help that comes with PHP):
mail("joecool@example.com", "My Subject", "Line 1\nLine 2\nLine 3");
PHP does need to be installed and setup properly for mail to work. On a Unix-type setup, such as Linux, PHP will use your local sendmail program to send it. Windows machines use SMTP. If you need to you can edit your php.ini file and set the appropiate SMTP host you use to send email.

Here's the code to send the email:
<?
if ($REQUEST_METHOD == "POST") {


// Just to be on the safe side - I'll strip out HTML tags
// (scripting code may mess with some email clients)
$realname = strip_tags($realname);
$email = strip_tags($email);
$feedback = strip_tags($feedback);

// setup variables
$sendto = "$email";
$subject = "Send Mail Feedback Using PHP";
$message = "$realname, $email\n\n$feedback";

// send email
mail($sendto, $subject, $message);

}
?>

Logo of Edelweiss   Mahindra Logo   Logo of IDBI   Himalayan Logo   ICICI Foundation Logo   Camlin Kokuyo Logo   Logo of Okaya   Microtek Logo   Logo of Action Tesa   Wonderchef company Logo   Vichare Express & Logistics Pvt Ltd Logo   Logo of Bonanza Bullion Private Limited   Globetech Logo   Mascot Universal Logo   Logo of Connell Bros   GDA Trusteeship Ltd Logo   Asian Logo   ROGER Car Techssories Logo   Elite International Logo   Charminar Logo   Logo of Brave   Goldmedal Logo   Logo of Slider Bearings   National College Logo   Mafatlal Logo   Krishgen Logo    
E-mail : sales@virtualsplat.com
Phone : +91-9892413501

Whatsapp Icon +91-9967648641

Whatsapp Icon +91-9967648641

Whatsapp Icon Whatsapp Icon Facebook Google+ Linkedin Twitter