Jump to content

mail problem


corillo181

Recommended Posts

i have this code

<?php
$subject='ET activation';
$header="From: [email protected]\r\n";
$header.= "Content-Type: text/html; charset=ISO-8859-1 ";
$header.= "MIME-Version: 1.0 "; 
$mess = "hello there";

function sendMail($subject,$mess,$header){
  $sent= mail($this->email,$subject,$mess,$header);
}
?>

 

it was working fine in my local machine and in some other server,

but now i tried it in a new server(monster host) and in the subject is sending the name of the server instead of ET activation.

anyone know why?

Link to comment
https://forums.phpfreaks.com/topic/90149-mail-problem/
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.