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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...