dli muwork ang mail(..........);
kay kailangan daw mailserver
dli muwork ang mail(..........);
kay kailangan daw mailserver
ako style is mysql blob.
but ang prob kay sa pagdownload sa file nga naka sulod na sa database
<?php
$to = 'youraddress@example.com';
$subject = 'Test email';
$message = "Hello World!\n\nThis is my first mail.";
$headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com";
$mail_sent = @mail( $to, $subject, $message, $headers );
echo $mail_sent ? "Mail sent" : "Mail failed";
?>
Are you running your webserver locally? Im guessing yes cause if its a paid host or online host then it should have mail server running already.
Anyway, follow ChaosOrb suggestion and use phpmailer to send via smtp. You can use ISP's smtp setting or even use your gmail account or any email which allows pop3.
Or if you want to be more adventurous and want to learn more, install mail server in your machine![]()
di jud na mo work kung naa rako sa localhost except ug stmp supported imo localhost
gamit ug argosoft mailserver bay, simple ra ayu nya maka send ka sa lain nga domains like yahoo and gmail....
function send_mail ($sender, $message, $subject)
{
$headers = "From: $sender <$sender>" . "\r\n" .
"To: ".$this->to . "\r\n";
if (!empty($this->cc))
$headers .= "Cc: ".$this->cc;
if (mail($this->to, $subject, $message, $headers))
return 1;
else
return 0;
}
murag dili man na mu work if naa raka sa localhost.
Similar Threads |
|