Re: [PHP] Mail() Problem Sending

2003-08-19 Thread raditha dissanayake
/var/log/maillog file shold have some clues.

Cesar Aracena wrote:
Before trying to guess what Saddam can and can't do with computers, try
sending e-mails to different addresses (different domains... NOT just
different usernames). Sometimes, the e-mail server you use is NOT
configured properly, so every e-mail does not gets to you.
It happened to me too when testing my server's sendmail. The e-mails
reached well one of my addresses but not another one. So I pointed the
e-mails to a Hotmail account and it reached it. Try it and see what
happens.
For some e-mail servers, you have to write lots of extra headers in
the e-mails in order to pass their guard.
HTH

Cesar Aracena
www.icaam.com.ar


-Mensaje original-
De: Ben C. [mailto:[EMAIL PROTECTED]
Enviado el: Lunes, 18 de Agosto de 2003 06:28 p.m.
Para: [EMAIL PROTECTED]
Asunto: [PHP] Mail() Problem Sending
I have recently had php installed on my server with sendmail.  The
server

is behind a firewall and SMTP is open on the firewall.  However, when
I

execute the mail(), it appears to have sent the mail, but I never
receive

it.  I am not getting any error messages.  Has anyone ever run into
this

problem?  Does anyone have any ideas?

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







--

Raditha Dissanayake
-
http://www.radinks.com/sftp/
Lean and mean Secure FTP applet with Graphical User Inteface.
just 150 Kilo Bytes
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Ivo Fokkema
Cesar Aracena [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
 For some e-mail servers, you have to write lots of extra headers in
 the e-mails in order to pass their guard.
[/snip]

True! But actually, I' ve seen people using only the 'From:' header to send
mail. Emails can then be dropped easily by servers thinking it is spam.

Ben, I don't know what headers you send, but you could try these headers:

$headers = MIME-Version: 1.0\r\n;
$headers .= Content-Type: text/plain; charset=iso-8859-1\r\n;
$headers .= X-Priority: 3\r\n;
$headers .= X-MSMail-Priority: Normal\r\n;
$headers .= X-Mailer: PHP/.phpversion().\r\n;
$headers .= From: Name [EMAIL PROTECTED]\r\n;
$headers .= Reply-to: Name [EMAIL PROTECTED]\r\n;
$headers .= Return-path: Name [EMAIL PROTECTED]\r\n;
$headers .= Error-to: Name [EMAIL PROTECTED]\r\n;

mail(Yourname [EMAIL PROTECTED], Subject, $body, $headers);



HTH,

Ivo



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



Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Curt Zirzow
* Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
 Cesar Aracena [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 [snip]
  For some e-mail servers, you have to write lots of extra headers in
  the e-mails in order to pass their guard.
 [/snip]
 
 True! But actually, I' ve seen people using only the 'From:' header to send
 mail. Emails can then be dropped easily by servers thinking it is spam.

No email server should drop mail.

 
 Ben, I don't know what headers you send, but you could try these headers:
 
 $headers .= Return-path: Name [EMAIL PROTECTED]\r\n;

Sending this header is virtually a waste of time and effort, it
will be ignored and set by the receiving smtp server, and on the
very fist line.


 $headers .= Error-to: Name [EMAIL PROTECTED]\r\n;

This wont guarantee errors to return to that email address.


Curt
-- 
I used to think I was indecisive, but now I'm not so sure.

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



Re: [PHP] Mail() Problem Sending

2003-08-19 Thread Ivo Fokkema
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 * Thus wrote Ivo Fokkema ([EMAIL PROTECTED]):
  True! But actually, I' ve seen people using only the 'From:' header to
send
  mail. Emails can then be dropped easily by servers thinking it is spam.
 No email server should drop mail.
Yet they seem to do...? Maybe dropped is not the right word?
Clients may not receive emails which lack certain headers, as these emails
are regarded spam by certain ISP's.
Some people never even get 'normal' Outlook emails which are BCC'ed to them.
The cause? Beats me... Somewhere, something, blocks/drops/deletes these
emails...

  Ben, I don't know what headers you send, but you could try these
headers:
 
  $headers .= Return-path: Name [EMAIL PROTECTED]\r\n;
 Sending this header is virtually a waste of time and effort, it
 will be ignored and set by the receiving smtp server, and on the
 very fist line.
Hmmm... I ofcourse noticed that if I don't use -f in the 5th mail argument,
return-path is something trashy like [EMAIL PROTECTED] Well, then
I delete that from my list...

  $headers .= Error-to: Name [EMAIL PROTECTED]\r\n;
 This wont guarantee errors to return to that email address.
No sh*t, I _never_ get bounced emails back although I set the reply-to and
error-to headers. Someone told me some SMTP's use this header so I took my
chances.

--
Ivo



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



Re: [PHP] Mail() Problem Sending

2003-08-18 Thread Michael A Smith
My ideas: (in order of likelihood)

Idea #1: Your computer hates you.
Idea #2: Sendmail isn't running.
Idea #3: Sendmail isn't setup correctly.
Idea #4: You have been hacked by Saddam.
-Michael

:-)
Ben C. wrote:
I have recently had php installed on my server with sendmail.  The server is behind a firewall and SMTP is open on the firewall.  However, when I execute the mail(), it appears to have sent the mail, but I never receive it.  I am not getting any error messages.  Has anyone ever run into this problem?  Does anyone have any ideas?

 



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


RE: [PHP] Mail() Problem Sending

2003-08-18 Thread Cesar Aracena
Before trying to guess what Saddam can and can't do with computers, try
sending e-mails to different addresses (different domains... NOT just
different usernames). Sometimes, the e-mail server you use is NOT
configured properly, so every e-mail does not gets to you.

It happened to me too when testing my server's sendmail. The e-mails
reached well one of my addresses but not another one. So I pointed the
e-mails to a Hotmail account and it reached it. Try it and see what
happens.

For some e-mail servers, you have to write lots of extra headers in
the e-mails in order to pass their guard.

HTH

Cesar Aracena
www.icaam.com.ar


 -Mensaje original-
 De: Ben C. [mailto:[EMAIL PROTECTED]
 Enviado el: Lunes, 18 de Agosto de 2003 06:28 p.m.
 Para: [EMAIL PROTECTED]
 Asunto: [PHP] Mail() Problem Sending
 
 I have recently had php installed on my server with sendmail.  The
server
 is behind a firewall and SMTP is open on the firewall.  However, when
I
 execute the mail(), it appears to have sent the mail, but I never
receive
 it.  I am not getting any error messages.  Has anyone ever run into
this
 problem?  Does anyone have any ideas?
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




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