corillo181 Posted February 9, 2008 Share Posted February 9, 2008 i have this code <?php $subject='ET activation'; $header="From: Automail@et.com\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? Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/90149-mail-problem/#findComment-462276 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.