[PHP] Re: mail problem at interland

2005-02-01 Thread kids_pro
Does PEAR installed in most Linux hosting box?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail problem at interland

2005-02-01 Thread kids_pro
Does PEAR installed in most Linux hosting box? 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: mail problem at interland

2005-01-29 Thread Ben Ramsey
David Edwards wrote:
Hi,
I have a fairly simple script written that uses the mail() function on a 
client site hosted at Interland. I have used a similar script quite a few 
times before with no problem. However although the script generates no 
errors, no emails appear at their intended destination. Interland support 
has not been that helpful and they did suggest I try the '-f' option in the 
header. That did not work either. Has anyone seen this before, I am running 
out of ideas. The mail portion of the script is below:

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: $emailfrom\n";
$mailsent = mail($emailto, $subject, $msg, $headers,"-f" . $emailfrom);
Any help would be MUCH appreciated.

If you haven't solved this yet, try sending it via SMTP instead of using 
mail(). This will require that you send it by first logging into a valid 
e-mail account and sending it through a socket. PEAR::Mail 
 can do all this for you.

Take a look at the documentation here: 
.

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: mail problem at interland

2005-01-28 Thread Manuel Lemos
Hello,
on 01/28/2005 12:09 AM David Edwards said the following:
I have a fairly simple script written that uses the mail() function on a 
client site hosted at Interland. I have used a similar script quite a few 
times before with no problem. However although the script generates no 
errors, no emails appear at their intended destination. Interland support 
has not been that helpful and they did suggest I try the '-f' option in the 
header. That did not work either. Has anyone seen this before, I am running 
out of ideas. The mail portion of the script is below:

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/plain; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: php\n";
$headers .= "From: $emailfrom\n";
$mailsent = mail($emailto, $subject, $msg, $headers,"-f" . $emailfrom);
The headers seem to be fine, except maybe for those priority headers 
that are useless and may be the cause of some spam filters understand it 
as a pattern of spam.

Other than that, you are not telling what exactly you are putting in the 
$emailto, $subject and $msg, and there you may because commiting a fault 
that may cause that your message be discarded. Without telling what you 
are putting there, it is hard to help further.

--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php