Re: [PHP] Mail function problems

2006-03-20 Thread Richard Lynch

On Windows, you need SMTP set.

If you can't set it in php.ini, you might try .htaccess, but I suspect
that is locked down and you can't...

You could try things like:

Install Pegasus email client, and use it from http://php.net/exec to
send email.

Install some kind of class from http://phpclasses.org that lets you
choose your own SMTP server, and the PHP code in that class handles
the mail protocol rather than using PHP's builtin code (which is tied
to php.ini settings)

Note that the built-in code will be faster but the mail() function
is never suitable for mass high-volume emails.

On Sun, March 19, 2006 3:50 pm, Paul Goepfert wrote:
 Hi all,

 Has anyone had this problem before?  I have a web server that resides
 on a windows platform (According to phpinfo()).  I used the php mail
 function to send out a test message to make sure that the mail
 function would work when needed.  I sent out the test message and I
 didn't get an email sent to me.  This is what I did, I created the
 following variables:

 $to = [EMAIL PROTECTED];
 $subject =Test;
 $message =This is a test
 $headers = From: Paul  .
   [EMAIL PROTECTED]\r\n;
 $headers .= X-Sender:  [EMAIL PROTECTED]\r\n;
 $headers .=X-Mailer: PHP\r\n;
 $headers .=Return-Path: [EMAIL PROTECTED]\r\n;

 I put them in the mail function as parameters
 mail($to,$subject,$message,$headers).


 Ok now this is what is found in phpinfo():

 sendmail_from no value no value
 sendmail_path no value no value
 SMTP no value no value
 smtp_port25   25

 Do these values need to be set?  if so, how do that on a remote
 server?  I don't think I have access to the httpd config file or
 php.ini file.

 Thanks
 Paul

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




-- 
Like Music?
http://l-i-e.com/artists.htm

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



[PHP] Mail function problems

2006-03-19 Thread Paul Goepfert
Hi all,

Has anyone had this problem before?  I have a web server that resides
on a windows platform (According to phpinfo()).  I used the php mail
function to send out a test message to make sure that the mail
function would work when needed.  I sent out the test message and I
didn't get an email sent to me.  This is what I did, I created the
following variables:

$to = [EMAIL PROTECTED];
$subject =Test;
$message =This is a test
$headers = From: Paul  .
  [EMAIL PROTECTED]\r\n;
$headers .= X-Sender:  [EMAIL PROTECTED]\r\n;
$headers .=X-Mailer: PHP\r\n;
$headers .=Return-Path: [EMAIL PROTECTED]\r\n;

I put them in the mail function as parameters
mail($to,$subject,$message,$headers).


Ok now this is what is found in phpinfo():

sendmail_from no value no value
sendmail_path no value no value
SMTP no value no value
smtp_port25   25

Do these values need to be set?  if so, how do that on a remote
server?  I don't think I have access to the httpd config file or
php.ini file.

Thanks
Paul

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



Re: [PHP] mail function problems

2002-10-02 Thread Debbie Dyer

Hi Dan

I (and others I know) have similar probs of seemingly disappearing emails -
I thought it was down to mail filtering because I cant think of another
explanation (but I dont know that for sure). I was given some advice here
yesterday so I am forwarding you the mails.

Debbie

- Original Message -
From: Dan McCullough [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 02, 2002 12:46 AM
Subject: [PHP] mail function problems


 I use the mail function tons, never had a problem.  I am working with a
client with a different
 hosting vendor, they are using PHP 4.2.3, which I guess was a recient
upgrade, anyway I was
 informed by the client that he wasnt getting email submissions from the
website, but he was
 getting other emails, to those same accounts that were from outside the
website.  Short story
 long, I took one of the functions that uses the mail function inside of
it, and I placed it on my
 server, and it worked flawlessly, place the same exact code on back on the
other site, and
 nothing.  Oh and I dont have access to their error logs.  :(

 What sounds wrong?  What sounds bad?  Any thoughts?  Anything i can look
for?

 thanks,

 dan

 __
 Do you Yahoo!?
 New DSL Internet Access from SBC  Yahoo!
 http://sbc.yahoo.com

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




Re: [PHP] mail function problems

2002-10-02 Thread Dan McCullough


They found the problem, the webserver that the client was on had the 
wrong path to sendmail, a correction in php.ini and a restart and it was working again.


  --- Debbie Dyer [EMAIL PROTECTED] wrote:
   Hi Dan
  
   I (and others I know) have similar probs of seemingly disappearing
 emails -
   I thought it was down to mail filtering because I cant think of another
   explanation (but I dont know that for sure). I was given some advice
 here
   yesterday so I am forwarding you the mails.
  
   Debbie
  
   - Original Message -
   From: Dan McCullough [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, October 02, 2002 12:46 AM
   Subject: [PHP] mail function problems
  
  
I use the mail function tons, never had a problem.  I am working with
 a
   client with a different
hosting vendor, they are using PHP 4.2.3, which I guess was a recient
   upgrade, anyway I was
informed by the client that he wasnt getting email submissions from
 the
   website, but he was
getting other emails, to those same accounts that were from outside
 the
   website.  Short story
long, I took one of the functions that uses the mail function inside
 of
   it, and I placed it on my
server, and it worked flawlessly, place the same exact code on back on
 the
   other site, and
nothing.  Oh and I dont have access to their error logs.  :(
   
What sounds wrong?  What sounds bad?  Any thoughts?  Anything i can
 look
   for?
   
thanks,
   
dan
   
__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com
   
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
   
   
  
 
 
  =
  
  Theres no such thing as a problem unless the servers are on fire!
 
 
  __
  Do you Yahoo!?
  New DSL Internet Access from SBC  Yahoo!
  http://sbc.yahoo.com
 
 


=

Theres no such thing as a problem unless the servers are on fire!


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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




[PHP] mail function problems

2002-10-01 Thread Dan McCullough

I use the mail function tons, never had a problem.  I am working with a client with a 
different
hosting vendor, they are using PHP 4.2.3, which I guess was a recient upgrade, anyway 
I was
informed by the client that he wasnt getting email submissions from the website, but 
he was
getting other emails, to those same accounts that were from outside the website.  
Short story
long, I took one of the functions that uses the mail function inside of it, and I 
placed it on my
server, and it worked flawlessly, place the same exact code on back on the other site, 
and
nothing.  Oh and I dont have access to their error logs.  :(

What sounds wrong?  What sounds bad?  Any thoughts?  Anything i can look for?

thanks,

dan

__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

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