Jump to content

PHP 5.0 mail() function acting VERY weird


mtruper

Recommended Posts

I run PHP5 on a Linux (Ubuntu) box.  The setup has been working for years without a problem, sending E-mails to my local address via web pages and PHP.

 

Today, I'm trying to write a simply page to send me an E-mail.  No E-mail, no error, no nothing.  However, it WILL send the E-mail if the text is something else.  After HUNDREDS of E-mails to myself to test this, I have come up with the following:

 

This works:

<?php
$mailtext = "e'a'to";
mail('myaddress@mydomain.com',' My subject', $mailtext);
?>

 

BUT....If I take out any character from $mailtext, or substitute any other letter, the mail will not be sent.

 

Just to be silly, I tested this, and it works:

<?php
$mailtext = "This is a sample E-mail";
mail('myaddress@mydomain.com', 'My Subject', $mailtext);

 

But this doesn't work:

<?php
$mailtext = "This is a sample Email";
mail('myaddress@mydomain.com', 'My Subject', $mailtext);
?>

 

Very weird combinations of characters in $mailtext will get sent just fine, but change it at all, and the mail won't get sent.

 

Any ideas?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.