i set ra to nimo ang "send mail from" sa php or apache nga configuration ba to.
tapos imong smtp... i-set like smtp.gmail.com peru make sure ng gmail account pud imong "send mail from"... something inana... di ko sure sa port peru I think 587 kung gmail imo gamit na smtp.
tapos sa imong code
PHP Code:
<?php
$email_to = "my_email@yahoo.com";
$email_subject = "Test E-Mail (This is the subject of the E-Mail)";
$email_body = "This is the body of the Email \nThis is a second line in the body!";
if(mail($email_to, $email_subject, $email_body)){
echo "The email($email_subject) was successfully sent.";
} else {
echo "The email($email_subject) was NOT sent.";
}
?>
di ko sure ani peru...
gi check ra mn nimo if na call ba ang mail function peru wala mismo nimo gi-call ang mail function...
something inani ako pasabot
PHP Code:
<?php
$email_to = "my_email@yahoo.com";
$email_subject = "Test E-Mail (This is the subject of the E-Mail)";
$email_body = "This is the body of the Email \nThis is a second line in the body!";
mail($email_to, $email_subject, $email_body)
if(mail($email_to, $email_subject, $email_body)){
echo "The email($email_subject) was successfully sent.";
} else {
echo "The email($email_subject) was NOT sent.";
}
?>
anyway, dili ko sure. dugay2x na pud ko wala ka code