KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am sending mails from my website by using php mail function. But now it is not working and I contacted our hosting team then they told me to use smtp as they did some changes in server. I don't know how to do it. Current code (with php mail function) is as follows, can anyone help me about the changes which I have to do with this. <?php $mail_To="someone@gmail.com"; $headers = ""; $headers .= "From: livetv@muscle-tube.com\n"; $headers .= "Reply-To: livetv@muscle-tube.com\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n"; $headers .= "X-Mailer: php"; $mail_Subject = " Live TV key"; $mail_Body = "<p>Muscle-tube</p>"; mail($mail_To, $mail_Subject, $mail_Body,$headers); ?>
Tags (comma-separated)
Save Edits
Cancel