mail() says sent but no email received


Posted on 16th Feb 2014 07:03 pm by admin

My code is quite simple:

Code: <?php
$to = "Ty44ler@yahoo.com";
Did you know?Explore Trending and Topic pages for more stories like this.
$subject = "Test mail";
$message = "Hey, I just wanted to see if the script worked.";
$from = "Ty44ler@yahoo.com";
$headers = "From: $from";

if (mail($to,$subject,$message,$headers)) {
echo("<p>Message successfully sent!</p>");
}
else {
echo("<p>Message delivery failed</p>");
}
?>
I have the SMTP server correct in the php.ini file as well as the port as it connects fine when I do a telnet. Also checked the spam folder and nothing there...
No comments posted yet

Your Answer:

Login to answer
50 Like 5 Dislike
Previous forums Next forums
Other forums

Motivational Posters
Hello,

I wonder how can i do them in php. Are there any sample codes that you can show me?

ereg_replace issue
hi there people

i have this code happening with regards to my wamp server. is this something

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

function to return url
Hi,

Can you guys help me giving a function that takes all the contents in a particular field

Taylor Series Function
So I am working a a project for my intro C++ class, and I am having some trouble with a function for

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

DATEDIFF Question
First time post, and of course it is a help question.

I am using a WP plug-in to display prev

php mysql script to find record
Hi,

Currently I have a simple table with 4 columns. A, B, C, D

If I want to find all

Using insert variable
need a way to inert variable data to mysql database

$acc = "212121212";
$nok =

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash