Re: Problem with sending email from a website
- From: "Taylor, Grant" <gtaylor@xxxxxxxxxxxxxxxxx>
- Date: Sun, 06 Aug 2006 22:24:07 -0500
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. . . .
.
- References:
- Problem with sending email from a website
- From: ewunia
- Problem with sending email from a website
- Prev by Date: Working around Verizon's IDIOCY
- Next by Date: Re: Working around Verizon's IDIOCY
- Previous by thread: Problem with sending email from a website
- Next by thread: Working around Verizon's IDIOCY
- Index(es):
Relevant Pages
|