?
Solved

Email Not Sending

Posted on 2003-02-19
4
Medium Priority
?
195 Views
Last Modified: 2006-11-17
Hey, I have made a simple form on my webpage which uses the 'post' method to send email. When the submit button is press it is posted to another php page which then uses this code to send the email to me.

<?php
$to = "admin@example.com";
$re = "Web Site Feedback";
$msg = $comments;
mail($to,$re,$msg);
?>

All the varibles are correct etc.. But the email never sends ? What is going on? Is this the actual needed code ?
Please tell me if you dont understand the question cos its not a very good explanation! Thanx
Peace,

-Emmel
0
Comment
Question by:Emmel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
KC_Speedball earned 90 total points
ID: 7983344
check if there an available smtp-server in your configs.
0
 
LVL 4

Expert Comment

by:Oliver_Dornauf
ID: 7985821
check if $re is a valid email address on your account
0
 
LVL 6

Expert Comment

by:carchitect
ID: 7986098
Speed Ball is right.
please check your server setting that whethere you are allowed t send mail or not...
regards
0
 
LVL 1

Expert Comment

by:s-maxim
ID: 7988086
You most probably need to edit your php.ini file specifying the mail sender path. Also, if you are on windows, entp might not be present at all.

Maxim Maletsky
maxim@php.net
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question