Subject RE: [firebird-php] mail() problem
Author Alan McDonald
Johan, Make sure that your email message body does not have Bare LF's. This
means a carriage return with no LineFeed.
At the end of every email message body line you must have
\r\n - no spaces between these characters
These alternatives DO NOT work: \r \n OR \n OR \r OR \n\r
it must be \r\n

You must also have the appropriate headers to minimise the impact of spam
filters
e.g.
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: You at your websiter
<webserver@...>\r\n";
$headers .= "Reply-To: YourWebsite Webserver
<webserver@...>\r\n";
$headers .= "Date: " . date("r")."\r\n";
$headers .= "X-Priority: 2\r\n";
$headers .= "X-MSMail-Priority: Medium\r\n";
$headers .= "X-Mailer: YourMailer Mailer\r\n";

Try these changes
Alan
-----Original Message-----
From: Johan van Zyl [mailto:johan@...]
Sent: Thursday, November 25, 2004 6:03 AM
To: php-general@...
Cc: firebird-php@yahoogroups.com
Subject: [firebird-php] mail() problem


Hi All
I use sample code from PHPFreaks i.e.

mail($email_address, $subject, $message, "From: realcorp.net
Webmaster<johan@...>\nX-Mailer: PHP/" . phpversion());

When the e-mail address is johan@... (hosted by my telco/isp) it
works.
When I try johan@... (via godaddy) it does not?

If I send e-mails to those two addresses, using Outlook, they both work?

Please feel free to try and register here.
http://realwebonline.myftp.org/mc/register.php
so that I can see if it works with other e-mail addresses.

I did look this up in the manual - but I am still baffled.

Thx
========================
Johan van Zyl
JVZ Systems CC
Box 3469
Somerset West
7129
johan@...
http://www.jvz.co.za
+27 (0)82 875 4238
+27 (0)21 851 7205
Fax 088 021 852 2387


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.799 / Virus Database: 543 - Release Date: 2004/11/19


Yahoo! Groups Sponsor
ADVERTISEMENT





----------------------------------------------------------------------------
--
Yahoo! Groups Links

a.. To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-php/

b.. To unsubscribe from this group, send an email to:
firebird-php-unsubscribe@yahoogroups.com

c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]