Re: Problem with sending email from a website



On 08/06/06 22:09, ewunia wrote:
I have a dedicated server with linux operating system. I only use PHP
for my scripts.
All mail from all domains sent via website DOESN'T WORK. Meaning that
whatever webform I use to send email it simply desn't send any email. I
tried simple formmail webforms and also the ones that comes with Cpanel
and they simply don't send any emails.

However all email sent via Outlook work without any problems.

What is causing a problem with sending the mail via my websites? The
PHP code to send an email via webform is very simple:
<?
$headers = "Content-type: multipart/mixed\r\n";
$headers .= "Content-transfer-encoding: 8bit\r\n";
$headers .= "From: email@xxxxxxxxxxxx\r\n";
$headers .= "Reply-to: email@xxxxxxxxxxxx\r\n\r\n";

$email = "support@xxxxxxxxxx";
$message = "test1";

mail($email, "test email", $message, $headers);
?>

What do you see in logs? You should see the attempt to send the message with a reason as to why the messages might not be going out.



Grant. . . .
.



Relevant Pages

  • Re: OT:PHP webform recommendation?
    ... Just finished setting up my website and have created a webform. ... php script to be able to send the form to my email ...
    (uk.media.dvd)
  • Re: read http://test.html from within C++
    ... > finance website, the stock price for a particular stock index, ... > and read from the output of such webform. ... > I have googled and searched in books but haven't found anything. ...
    (comp.lang.cpp)
  • Re: unable to open website
    ... > a regular link in the client? ... > Florida Department Of Transportation ... >>I have a C# asp.net webform with a Link Button to a website but it's not ... >> the website is loading when I use IE. ...
    (microsoft.public.dotnet.languages.csharp)
  • OT:PHP webform recommendation?
    ... Just finished setting up my website and have created a webform. ... php script to be able to send the form to my email ...
    (uk.media.dvd)