<?php
$from_mail = "manikantak49@gmail.com Manikanta";
$to = "somebody@example.com";
$ccmail_ids = "manikantak49@gmail.com";
$subject = "My subject";
$message_text = "Hello world! This is my first mail";
$headers = "From: $from_mail" . "\r\n";
$headers .= "Cc: $to" . "\r\n";
if(mail($to,$subject,$message_text,$headers)){
echo "Mail Sent";
}else{
echo "Mail not Send";
}
?>
$from_mail = "manikantak49@gmail.com Manikanta";
$to = "somebody@example.com";
$ccmail_ids = "manikantak49@gmail.com";
$subject = "My subject";
$message_text = "Hello world! This is my first mail";
$headers = "From: $from_mail" . "\r\n";
$headers .= "Cc: $to" . "\r\n";
if(mail($to,$subject,$message_text,$headers)){
echo "Mail Sent";
}else{
echo "Mail not Send";
}
?>
0 comments:
Post a Comment