Hi
Send email using mail function working fine. but my question is how to auto save the mail in sent items folder when mail sent
i m using own smtp server and port no is 25
is any config needed on php ini file or i may use imap
my code is as follows
<?php
function send_email($from, $to, $subject, $message){
$headers = "From: ".$from."\r\n";
$headers .= "Reply-To: ".$from."\r\n";
$headers .= "Return-Path: ".$from."\r\n";
$headers .= "Content-type: text/html\r\n";
if (mail($to,$subject,$message,$headers) ) {
echo "email sent";
} else {
echo "email couldn't be sent";
}
}
$subject = "Helloooo!";
$message .= "<html><body>";
$message .= "<b>Hey! How are you today?</b>";
$message .= "<br>Regards";
$message .= "</body></html>";
send_email("frm addr", "[email protected]",
$subject ,
$message);
?>
"frm addr" is my own web address which is provided by my mail server
how to store or automatically save the mails to my sent item folder whenever i send a mail using the above function
with thanks in adv
R.Saravanakumar