Jump to content

Help for sending email


fafa0

Recommended Posts

Hi

 

I have below code :

<?php
$_SERVER['SERVER_NAME'];
$to = "[email protected]";
$subject = "Test mail";
$body = $_SERVER['SERVER_NAME'];
$from = "[email protected]";
$headers = "From:" . $from;
mail($to, $subject, $body, $headers)
?>

the email is sent correctly but without any body text .

 

I use $_SERVER['SERVER_NAME']; but nothing show as body .

 

I want to use this code load each day becuse I want to know which domain is used my script.

 

but now the code not work.

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/292365-help-for-sending-email/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.