Jump to content

Recommended Posts

Posted

<?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)

Posted

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....

Posted

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 :/

 

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and 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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock