Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

send mail using php

Mon Dec 01, 2008 12:36 am

Code:
<?php mail("codemiles@codemiles",$subject,$body,$FeedbackType,$email);


Am assuming here you are Posting these parameter from a form or something and after that you will send them to a specified mail ,
the all idea is based on the php mail function , :Heristical:

Code:
<?php
$name
= $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$body = $_POST['comment'];
$FeedbackType = $_POST['FeedbackType'];


mail("codemiles@codemiles",$subject,$body,$FeedbackType,$email);

    echo(
"<p><b>Thank you for your feedback. The following message was sent to Codemiles Team from $name:</b> (not really)</p>\n");
    echo(
"<blockquote><pre>\n");
    echo(
"$body");
    echo(
"</pre></blockquote>");

?>




Post a reply
  Related Posts  to : send mail using php
 send mail cc and bcc in php     -  
 how to send mail with Ant     -  
 How to send conformation e-mail through JSP     -  
 send mail to Multiple recipients     -  
 validate e-mail in php     -  
 validate mail in jsp     -  
 mail function problem     -  
 php variables in mail function     -  
 Help Sending e-mail from VB.Net application     -  
 mail system in java     -  

Topic Tags

PHP Email