corillo181 Posted February 9, 2008 Share Posted February 9, 2008 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 More sharing options...
phpSensei Posted February 9, 2008 Share Posted February 9, 2008 Why dont you just use the normal mail function? mail(); People make things just too complicated. Its a short script, so keep it simple... You really dont need a function in this case. Also Check your PHPinfo for this, it might be changed from there. Link to comment https://forums.phpfreaks.com/topic/90149-mail-problem/#findComment-462275 Share on other sites More sharing options...
corillo181 Posted February 9, 2008 Author Share Posted February 9, 2008 mm i am using the normal mail function is just inside a function. Link to comment https://forums.phpfreaks.com/topic/90149-mail-problem/#findComment-462276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.