UnixCode Posted March 30, 2012 Posted March 30, 2012 <?php $to = "ponyriderr@gmail.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "healingparam@gmail.com"; $headers = "From:" . $from; mail($to,$subject,$message,$headers) or die('problem'); ?> Why this doesn't work What's the problem? WTF PS: it returns true(mail method) Quote
Druner Posted April 1, 2012 Posted April 1, 2012 I am not a professional and i don't know very good. Should you add a email provider smtp and your password for your email.Because you have "$from = "healingparam@gmail.com";" and it can't send from this email because it doesn't have access to send. I hope to help you little.... Quote
UnixCode Posted April 1, 2012 Author Posted April 1, 2012 I am not a professional and i don't know very good. Should you add a email provider smtp and your password for your email.Because you have "$from = "healingparam@gmail.com";" and it can't send from this email because it doesn't have access to send. I hope to help you little.... i have looked many tutorials , it doesn't need password or smth like that :/ Quote
Druner Posted April 1, 2012 Posted April 1, 2012 i have looked many tutorials , it doesn't need password or smth like that :/ Ok man ;) Quote
UnixCode Posted April 1, 2012 Author Posted April 1, 2012 Ok man ;) and the from doesn't need at all , if you want , you don't add it. The code is correct , it returns true value but email isn't sent Quote
Druner Posted April 1, 2012 Posted April 1, 2012 and the from doesn't need at all , if you want , you don't add it. The code is correct , it returns true value but email isn't sent Maybe problem is the web host. Try different web host. Quote
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.
Note: Your post will require moderator approval before it will be visible.