Re: [PHP] Mail problems with Outlook
Because you have created ta totally BOUGS MIME email. You've rn rough-shod over the standards for html enhanced (cough, cough) email. Use plain-text, or do a ton of research or use the MIME email classes from http://phpclasses.org On Sat, April 8, 2006 5:52 pm, Schalk wrote: Greetings All, Is there any reason why the following code will correctly set the FROM and Reply-to fields in Thunderbird but not Outlook? Thanks! $firstName = $_POST['Contact_FirstName']; $lastName = $_POST['Contact_LastName']; $address = $_POST['Contact_Address']; $homePhone = $_POST['Contact_HomePhone']; $bestTime = $_POST['R1']; $email = $_POST['Contact_Email']; $to = '[EMAIL PROTECTED]'; $subject = Request from www.helpmefindahome.info; $headers = MIME-Version: 1.0\r\n. Content-type: text/html; charset=iso-8859-1\r\n. From: .$email.\r\n. Reply-to: .$email.\r\n. Date: .date(r).\r\n; // Compose message: $message = html body h1Message From: .$firstName. .$lastName. /h1 First Name: .$firstName. br /Last Name: .$lastName. br /Address: .$address. br /Home phone: .$homePhone. br /Best time to contact: .$bestTime. br /Email: .$email. /body /html ; // Send message mail($to, $subject, $message, $headers); -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers -- 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] PHP - mail problems - HELP!!! PLEASE
I am having trouble with PHP 5.0.3. I am running Apache 1.3.29. I am running Solaris 9 x86 on an Intel box. I get no errors when I start Apache. I get no errors when I run configtest. My problem is mail() does not work. It does invoke sendmail as there is activity in sendmail log. When I get an error page it does not display PHP is exposed. It is exposed in php.ini. register_globals is turned on right now. Variables to parse into values. $MESG = $_POST['comments']; parses to values. This is the log from sendmail. The first is sending mail from WEBMIN. The second is sending from PHP mail(). 'WEBMIN' Jan 14 20:03:13 www sendmail[17613]: [ID 801593 mail.info] j0F23DBA017613: [EMAIL PROTECTED], size=889, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Jan 14 20:03:14 www sendmail[17616]: [ID 801593 mail.info] j0F23D4b017616: from=[EMAIL PROTECTED], size=1083, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Jan 14 20:03:14 www sendmail[17613]: [ID 801593 mail.info] j0F23DBA017613: [EMAIL PROTECTED], [EMAIL PROTECTED] (0/1), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30889, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j0F23D4b017616 Message accepted for delivery) Jan 14 20:03:15 www sendmail[17618]: [ID 801593 mail.info] j0F23D4b017616: to=[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (0/1), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=121083, relay=boredomsoftware.com. [67.18.56.2], dsn=2.0.0, stat=Sent (OK id=1CpdH0-00067K-Lb) 'PHP mail()' Jan 14 20:04:41 www sendmail[17630]: [ID 801593 mail.info] j0F24f8b017630: from=nobody, size=200, class=0, nrcpts=0, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Can someone please help me figure this out? I am desperate!! I am also at my wits end. I have been fighting with this for a week. Kelly -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP - mail problems - HELP!!! PLEASE
Hello, on 01/15/2005 12:59 AM Kelly said the following: I am having trouble with PHP 5.0.3. I am running Apache 1.3.29. I am running Solaris 9 x86 on an Intel box. I get no errors when I start Apache. I get no errors when I run configtest. My problem is mail() does not work. It does invoke sendmail as there is activity in sendmail log. When I get an error page it does not display PHP is exposed. It is exposed in php.ini. Does the address [EMAIL PROTECTED] exist? If it doesn't, it seems the messages that are not delivered are discarded because they are set to bounce to that address and if it does not exist the bounces are dropped. Message bounces contain explanations of the message delivery problems, so you need to fix the bounce address so you can see what is the problem of the bounces. -- 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
Re: [PHP] PHP - mail problems - HELP!!! PLEASE
Kelly wrote: I am having trouble with PHP 5.0.3. I am running Apache 1.3.29. I am running Solaris 9 x86 on an Intel box. I get no errors when I start Apache. I get no errors when I run configtest. My problem is mail() does not work. It does invoke sendmail as there is activity in sendmail log. When I get an error page it does not display PHP is exposed. It is exposed in php.ini. register_globals is turned on right now. Variables to parse into values. $MESG = $_POST['comments']; parses to values. This is the log from sendmail. The first is sending mail from WEBMIN. The second is sending from PHP mail(). 'WEBMIN' Jan 14 20:03:13 www sendmail[17613]: [ID 801593 mail.info] j0F23DBA017613: [EMAIL PROTECTED], size=889, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Jan 14 20:03:14 www sendmail[17616]: [ID 801593 mail.info] j0F23D4b017616: from=[EMAIL PROTECTED], size=1083, class=0, nrcpts=1, msgid=[EMAIL PROTECTED], proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Jan 14 20:03:14 www sendmail[17613]: [ID 801593 mail.info] j0F23DBA017613: [EMAIL PROTECTED], [EMAIL PROTECTED] (0/1), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30889, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (j0F23D4b017616 Message accepted for delivery) Jan 14 20:03:15 www sendmail[17618]: [ID 801593 mail.info] j0F23D4b017616: to=[EMAIL PROTECTED], ctladdr=[EMAIL PROTECTED] (0/1), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=121083, relay=boredomsoftware.com. [67.18.56.2], dsn=2.0.0, stat=Sent (OK id=1CpdH0-00067K-Lb) 'PHP mail()' Jan 14 20:04:41 www sendmail[17630]: [ID 801593 mail.info] j0F24f8b017630: from=nobody, size=200, class=0, nrcpts=0, msgid=[EMAIL PROTECTED], [EMAIL PROTECTED] Can someone please help me figure this out? I am desperate!! I am also at my wits end. I have been fighting with this for a week. Kelly What do you mean by: When I get an error page it does not display PHP is exposed. It is exposed in php.ini. Is mail() returning an error? If so, what is it? Have you had the same PHP code working in a different environment? If you haven't figured out the problem yet, post your PHP code here. -John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail problems - phpinfo information
I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right mailing program. I know that our system is supposed to be using qmail that actually sits on a different server, but I found interesting information in phpinfo that is making me wonder if a local sendmail is handling the requests instead. Here are the things I am finding in phpinfo: sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i SMTP localhost localhost smtp_port 25 25 Path to sendmail /usr/sbin/sendmail -t -i Enviornment MAIL /var/mail/kpratt (what does this one do?) With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail problems - phpinfo information
[snip] ... making me wonder if a local sendmail is handling the requests instead. With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail? [/snip] From http://www.php.net/mail, something you have not read apparently For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. [LOOKIE HERE--If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them.--END LOOKIE] PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems - phpinfo information
I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right mailing program. I know that our system is supposed to be using qmail that actually sits on a different server, but I found interesting information in phpinfo that is making me wonder if a local sendmail is handling the requests instead. Here are the things I am finding in phpinfo: sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i SMTP localhost localhost smtp_port 25 25 Path to sendmail /usr/sbin/sendmail -t -i Enviornment MAIL /var/mail/kpratt (what does this one do?) With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail? Thanks! The mail settings in php.ini is for Windows only. When using PHP on Unix/Linux, mail() always defaults to the sendmail binary on localhost. So you can ignore what it says in phpinfo. My mail server at home is running Qmail as well as the web server I run at my work. (Quick plug, Qmail rulez!1!1!!)...okay, anyways, since Qmail comes with a sendmail wrapper you should have no problems using it with the mail() function. If your Qmail server is on a remote host, then you need to configure the local server's sendmail program to relay mail to the remote server. /var/mail is where users mail boxes are stored when using to old mail format mbox. Qmail uses the newer format Maildir which resides in user's home directory. So it looks like you have a user by the name of kpratt? -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems - phpinfo information
Jed R. Brubaker wrote: I have been having all kinds of problems with the mail() function in PHP. I realize that there are problems inheritly, but I think I am still trying to track down the problem. My latest theory is that PHP isn't set up to work with the right mailing program. I know that our system is supposed to be using qmail that actually sits on a different server, but I found interesting information in phpinfo that is making me wonder if a local sendmail is handling the requests instead. Here are the things I am finding in phpinfo: sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i SMTP localhost localhost smtp_port 25 25 Path to sendmail /usr/sbin/sendmail -t -i Enviornment MAIL /var/mail/kpratt (what does this one do?) With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail? Depends on how qmail was installed. If it was installed on the local box, and via instructions like Life With qmail, then yes, it will work fine. qmail has a sendmail wrapper, so you need to just ensure that there's a symbolic link to it on sendmail's normal home. The MTA has to be on the local machine. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems - phpinfo information
So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? That is why I posted. I apologize if I didn't make it clear. I have read all about mail, and even used the fantastic Lemos MIME problem correcting email class to try to tackle my problems from a different angle. Given the paths phpinfo is reporting, is there anyway that the system could somehow still be using qmail? Or is that outside the scope of what this phpinfo can tell me? Thanks again! Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] ... making me wonder if a local sendmail is handling the requests instead. With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail? [/snip] From http://www.php.net/mail, something you have not read apparently For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. [LOOKIE HERE--If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them.--END LOOKIE] PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems - phpinfo information
Jay Blanchard wrote: From http://www.php.net/mail, something you have not read apparently Pt. Read? Why would I do that? ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems - phpinfo information
Jed R. Brubaker wrote: So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? No. snip Given the paths phpinfo is reporting, is there anyway that the system could somehow still be using qmail? Or is that outside the scope of what this phpinfo can tell me? It could be using any *nix MTA as long as it has a Sendmail wrapper (qmail does). PHP uses the Sendmail binary. Will only use Sendmail. Will only show Sendmail in the phpinfo(). What your sysadmins may or may not have done to the Sendmail binary is a different story. PHP -- Sendmail Binary //using Sendmail PHP -- Sendmail Binary (really qmail wrapper) -- qmail //using qmail Have shell access to the box? Look in /var for a qmail directory. Can you recieve email on the box? If so, look at the headers. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems - phpinfo information
- Original Message - From: Jed R. Brubaker [EMAIL PROTECTED] Date: Wednesday, October 13, 2004 1:21 pm Subject: Re: [PHP] mail problems - phpinfo information So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? No. That is why I posted. I apologize if I didn't make it clear. I have read all about mail, maybe read, but not quite understanding? and even used the fantastic Lemos MIME problem correcting email class to try to tackle my problems from a different angle. Given the paths phpinfo is reporting, is there anyway that the system could somehow still be using qmail? Or is that outside the scope of what this phpinfo can tell me? Yes, it could be using qmail, or sendmail, or postfix. PHP calls sendmail which is a binary that could be a shell for any of the MTA's mentioned above. The sendmail provides a interface for PHP, it is up to the sys admin to make sure that the MTA being used is properly configured. Thanks again! Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] ... making me wonder if a local sendmail is handling the requests instead. With all of the above refering to sendmail, is there anyway that my mail() can actually be using qmail? [/snip] From http://www.php.net/mail, something you have not read apparently For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. [LOOKIE HERE--If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them.--END LOOKIE] PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary. -- 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 problems - phpinfo information
So as I am not an administrator, and all I have to go on is phpinfo (unless anyone has some suggestions), should I be seeing some trace of qmail in the phpinfo? That is why I posted. I apologize if I didn't make it clear. I have read all about mail, and even used the fantastic Lemos MIME problem correcting email class to try to tackle my problems from a different angle. Given the paths phpinfo is reporting, is there anyway that the system could somehow still be using qmail? Or is that outside the scope of what this phpinfo can tell me? Thanks again! If you're on a linux/unix machine, don't even look at phpinfo about mail stuff. The mail() function always goes to the sendmail binary. Do you have a shell account? Can you perform this command? # echo Test | sendmail [EMAIL PROTECTED] And do you receive it? Does 'which sendmail' return you the path to where the sendmail binary is? You should be contacting the admin of this server and be asking these questions. We can't answer them since we don't own/have access to the machine. -- --Matthew Sims --http://killermookie.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems - phpinfo information
On Thursday 14 October 2004 01:10, Matthew Sims wrote: The mail settings in php.ini is for Windows only. When using PHP on Unix/Linux, mail() always defaults to the sendmail binary on localhost. So you can ignore what it says in phpinfo. That's incorrect. The sendmail_path = setting is very much a un*x only setting (although for most standard server setups you never need to change it). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* Intel CPUs are not defective, they just act that way. -- Henry Spencer */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
Jason Wong wrote: Would you mind disclosing what you did to make it work? Those searching the archives in generations to come would appreciate what the conclusion was. . Sure. 1. I put it the _correct _name of my ISP's mailserver. No more errros. However...that sent out the mail but I didn't receive it back. Then... 2. I received a nice e-mail from Ms. Meloni explaining that I forget to replace the string in the variable: $to with _my_ e-mail address - not _hers_. She was getting my test e-mails. Oh brother... Happy holidays and thank you for your help. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() problems...
I'm using MS Win98 and Apache and getting the following after submitting the mail form: .. Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 14 The html and php scripts follow along with my php.ini settings. Any help would be appreciated. Thank you. Tony Ritter The following e-mail has been sent: Your Name: Linda Your E-Mail Address: [EMAIL PROTECTED] Message: Test . //this is the html form HTML HEAD TITLESimple Feedback Form/TITLE /HEAD BODY FORM METHOD=post ACTION=send_simpleform.php PstrongYour Name:/strongbr INPUT type=text NAME=sender_name SIZE=30/p PstrongYour E-Mail Address:/strongbr INPUT type=text NAME=sender_email SIZE=30/p PstrongMessage:/strongbr TEXTAREA NAME=message COLS=30 ROWS=5 WRAP=virtual/TEXTAREA/p PINPUT TYPE=submit NAME=submit VALUE=Send This Form/p /FORM /BODY /HTML .. //this is the php script ? if (($sender_name == ) ($sender_email == ) ($message == )) { header(Location: http://localhost/simple_form.html;); exit; } $msg = E-MAIL SENT FROM WWW SITE\n; $msg .= Sender's Name:$sender_name\n; $msg .= Sender's E-Mail: $sender_email\n; $msg .= Message: $message\n\n; $to = [EMAIL PROTECTED]; $subject = Web Site Feedback; $mailheaders = From: My Web Site \n; $mailheaders .= Reply-To: $sender_email\n\n; mail($to, $subject, $msg, $mailheaders); ? HTML HEAD TITLESimple Feedback Form Sent/TITLE /HEAD BODY H1The following e-mail has been sent:/H1 PstrongYour Name:/strongbr ? echo $sender_name; ? PstrongYour E-Mail Address:/strongbr ? echo $sender_email; ? PstrongMessage:/strongbr ? echo $message; ? /BODY /HTML My php.ini settings are: [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
Anthony, Do you have an SMTP server on your Win98 localhost? Recommend you change the PHP.INI SMTP= to say the same as your email package's server definitions. =dn I'm using MS Win98 and Apache and getting the following after submitting the mail form: .. Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 14 The html and php scripts follow along with my php.ini settings. Any help would be appreciated. Thank you. Tony Ritter The following e-mail has been sent: Your Name: Linda Your E-Mail Address: [EMAIL PROTECTED] Message: Test . //this is the html form HTML HEAD TITLESimple Feedback Form/TITLE /HEAD BODY FORM METHOD=post ACTION=send_simpleform.php PstrongYour Name:/strongbr INPUT type=text NAME=sender_name SIZE=30/p PstrongYour E-Mail Address:/strongbr INPUT type=text NAME=sender_email SIZE=30/p PstrongMessage:/strongbr TEXTAREA NAME=message COLS=30 ROWS=5 WRAP=virtual/TEXTAREA/p PINPUT TYPE=submit NAME=submit VALUE=Send This Form/p /FORM /BODY /HTML .. //this is the php script ? if (($sender_name == ) ($sender_email == ) ($message == )) { header(Location: http://localhost/simple_form.html;); exit; } $msg = E-MAIL SENT FROM WWW SITE\n; $msg .= Sender's Name:$sender_name\n; $msg .= Sender's E-Mail: $sender_email\n; $msg .= Message: $message\n\n; $to = [EMAIL PROTECTED]; $subject = Web Site Feedback; $mailheaders = From: My Web Site \n; $mailheaders .= Reply-To: $sender_email\n\n; mail($to, $subject, $msg, $mailheaders); ? HTML HEAD TITLESimple Feedback Form Sent/TITLE /HEAD BODY H1The following e-mail has been sent:/H1 PstrongYour Name:/strongbr ? echo $sender_name; ? PstrongYour E-Mail Address:/strongbr ? echo $sender_email; ? PstrongMessage:/strongbr ? echo $message; ? /BODY /HTML My php.ini settings are: [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) -- 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() problems...
DL, I'm not sure I understand. I had this working a few months ago by changing the php.ini settings to: SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only and I was able to run that script on my box and get an e-mail returned to me. Now, I getting a failed to connect. Please advise. I'm using MS OE5. Thank you. TR .. - Original Message - From: DL Neil [EMAIL PROTECTED] To: Anthony Ritter [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 06, 2002 10:37 AM Subject: Re: [PHP] mail() problems... Anthony, Do you have an SMTP server on your Win98 localhost? Recommend you change the PHP.INI SMTP= to say the same as your email package's server definitions. =dn I'm using MS Win98 and Apache and getting the following after submitting the mail form: .. Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 14 The html and php scripts follow along with my php.ini settings. Any help would be appreciated. Thank you. Tony Ritter The following e-mail has been sent: Your Name: Linda Your E-Mail Address: [EMAIL PROTECTED] Message: Test . //this is the html form HTML HEAD TITLESimple Feedback Form/TITLE /HEAD BODY FORM METHOD=post ACTION=send_simpleform.php PstrongYour Name:/strongbr INPUT type=text NAME=sender_name SIZE=30/p PstrongYour E-Mail Address:/strongbr INPUT type=text NAME=sender_email SIZE=30/p PstrongMessage:/strongbr TEXTAREA NAME=message COLS=30 ROWS=5 WRAP=virtual/TEXTAREA/p PINPUT TYPE=submit NAME=submit VALUE=Send This Form/p /FORM /BODY /HTML .. //this is the php script ? if (($sender_name == ) ($sender_email == ) ($message == )) { header(Location: http://localhost/simple_form.html;); exit; } $msg = E-MAIL SENT FROM WWW SITE\n; $msg .= Sender's Name:$sender_name\n; $msg .= Sender's E-Mail: $sender_email\n; $msg .= Message: $message\n\n; $to = [EMAIL PROTECTED]; $subject = Web Site Feedback; $mailheaders = From: My Web Site \n; $mailheaders .= Reply-To: $sender_email\n\n; mail($to, $subject, $msg, $mailheaders); ? HTML HEAD TITLESimple Feedback Form Sent/TITLE /HEAD BODY H1The following e-mail has been sent:/H1 PstrongYour Name:/strongbr ? echo $sender_name; ? PstrongYour E-Mail Address:/strongbr ? echo $sender_email; ? PstrongMessage:/strongbr ? echo $message; ? /BODY /HTML My php.ini settings are: [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- [This E-mail scanned for viruses by gonefishingguideservice.com] --- [This E-mail scanned for viruses by gonefishingguideservice.com] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
Hello, Anthony Ritter [EMAIL PROTECTED] wrote: DL, I'm not sure I understand. Let me try :) I had this working a few months ago by changing the php.ini settings to: SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only and I was able to run that script on my box and get an e-mail returned to me. Now, I getting a failed to connect. Strange... (I mean it's strange that it worked before. I don't think that setting would work unless you have your own mail server in your pc.) Please advise. I think what DL meant was to change localhost to (Ex.) smtp.yourdomain.com I'm using MS OE5. In that case you'll find that info by clicking Tools - Account - Mail - Property then click Server and check under SMTP. HTH, - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
Anthony, I'm not sure I understand. =that makes one more! This feature is a bit of a minefield - but once you get a handle on it, its too useful to be without... I had this working a few months ago by changing the php.ini settings to: SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only and I was able to run that script on my box and get an e-mail returned to me. Now, I getting a failed to connect. I'm using MS OE5. =this can only work if: a) there is an SMTP server on the localhost (and the DNS finds it), or b) the code wrapped around mail() specifies a valid and reachable SMTP server, or c) the code sidesteps the PHP mail facility completely by doing something else, or d) its not a Win box (and needs a completely different approach) =if it was working, it was working; I'm not sure what has been updated/replaced since - but let's not even go down that track. =I assume that the Win98 machine has outbound email working from some MTA, eg Outlook [Express]. Check its definition for an SMTP server. Cut-and-paste from there into PHP.INI. =also (because I'm a simple boy), forget all the optional headers etc, just use a stripped down/simple email stub-script for testing/proving. =If PHP's mail() can be persuaded to work, thereafter it (and any scripts) can be 'tweaked'/made better - or we can look back and compare... =dn - Original Message - From: DL Neil [EMAIL PROTECTED] To: Anthony Ritter [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 06, 2002 10:37 AM Subject: Re: [PHP] mail() problems... Anthony, Do you have an SMTP server on your Win98 localhost? Recommend you change the PHP.INI SMTP= to say the same as your email package's server definitions. =dn I'm using MS Win98 and Apache and getting the following after submitting the mail form: .. Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 14 The html and php scripts follow along with my php.ini settings. Any help would be appreciated. Thank you. Tony Ritter The following e-mail has been sent: Your Name: Linda Your E-Mail Address: [EMAIL PROTECTED] Message: Test . //this is the html form HTML HEAD TITLESimple Feedback Form/TITLE /HEAD BODY FORM METHOD=post ACTION=send_simpleform.php PstrongYour Name:/strongbr INPUT type=text NAME=sender_name SIZE=30/p PstrongYour E-Mail Address:/strongbr INPUT type=text NAME=sender_email SIZE=30/p PstrongMessage:/strongbr TEXTAREA NAME=message COLS=30 ROWS=5 WRAP=virtual/TEXTAREA/p PINPUT TYPE=submit NAME=submit VALUE=Send This Form/p /FORM /BODY /HTML .. //this is the php script ? if (($sender_name == ) ($sender_email == ) ($message == )) { header(Location: http://localhost/simple_form.html;); exit; } $msg = E-MAIL SENT FROM WWW SITE\n; $msg .= Sender's Name:$sender_name\n; $msg .= Sender's E-Mail: $sender_email\n; $msg .= Message: $message\n\n; $to = [EMAIL PROTECTED]; $subject = Web Site Feedback; $mailheaders = From: My Web Site \n; $mailheaders .= Reply-To: $sender_email\n\n; mail($to, $subject, $msg, $mailheaders); ? HTML HEAD TITLESimple Feedback Form Sent/TITLE /HEAD BODY H1The following e-mail has been sent:/H1 PstrongYour Name:/strongbr ? echo $sender_name; ? PstrongYour E-Mail Address:/strongbr ? echo $sender_email; ? PstrongMessage:/strongbr ? echo $message; ? /BODY /HTML My php.ini settings are: [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is sendmail -t) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- [This E-mail scanned for viruses by gonefishingguideservice.com] --- [This E-mail scanned for viruses by gonefishingguideservice.com] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
Gentlemen, Thank you for your assistance. The PHP mail scripts were taken from Julie Meloni's book on PHP called Fast and East on pp. 116-117. (PrimaTech). In fact, she writes: If you're using PHP4 on Windows, look for the following lines in your php.ini file: [mail function] SMTP =; for Win32 only sendmail_from = ;for Win32 only You'll need to modify the last two lines so that the mail function works properly. 1. For the SMTP entry, use 'localhost or the name of the outgoing mailserver you use in your e-mail client. 2. For the sendmail_from entry, enter your e-mail address. For example in my php.ini file on Windows contains this: [mail function] SMTP =localhost sendmail_from = [EMAIL PROTECTED] END QUOTE So that's what I did -using localhost - and I get: failed to connect. I'm at a loss. Please help. Thanks. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
On Saturday 07 December 2002 04:35, Anthony Ritter wrote: Gentlemen, Thank you for your assistance. The PHP mail scripts were taken from Julie Meloni's book on PHP called Fast and East on pp. 116-117. (PrimaTech). Let's not blame it on her. In fact, she writes: [snip] Right, but didn't heed her advice? For example in my php.ini file on Windows contains this: [mail function] SMTP =localhost sendmail_from = [EMAIL PROTECTED] Those are _her_ settings, doesn't necessarily work for you as well. So that's what I did -using localhost - and I get: I think Julie is sure glad you didn't use her email address as well ;-) failed to connect. I'm at a loss. Others have already pointed out, only use localhost IF AND ONLY IF you have an SMTP server running on the same machine as your webserver. Otherwise try using whatever SMTP server you're using to send mail from your mail client. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* You can tell how far we have to go, when FORTRAN is the language of supercomputers. -- Steven Feiner */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
--- Anthony Ritter [EMAIL PROTECTED] wrote: If you're using PHP4 on Windows, look for the following lines in your php.ini file: [mail function] SMTP =; for Win32 only sendmail_from = ;for Win32 only You'll need to modify the last two lines so that the mail function works properly. 1. For the SMTP entry, use 'localhost or the name of the outgoing mailserver you use in your e-mail client. 2. For the sendmail_from entry, enter your e-mail address. For example in my php.ini file on Windows contains this: [mail function] SMTP =localhost sendmail_from = [EMAIL PROTECTED] So that's what I did -using localhost - and I get: failed to connect. Right. Unlike Linux, I doubt Windows has a mail server running locally without you having to buy and/or install some extra software. I have very little experience with Windows, but this is most likely your problem. Take the author's advice and use whatever mail server your mail client is using. It is probably a remote server of some sort. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
DL, Sorry to be a pain... but using either: the address of my outgoing mail server or localhost still gives me: Warning: Failed to Connect in c:\program files\apache group\apache\htdocs\send_simpleform.php on line 14 Thanks again for your time. TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
To all who assisted me today. I finally managed to get the mail () funtion to work. Thank you and happy holidays to you all... TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() problems...
On Saturday 07 December 2002 12:16, Anthony Ritter wrote: To all who assisted me today. I finally managed to get the mail () funtion to work. Would you mind disclosing what you did to make it work? Those searching the archives in generations to come would appreciate what the conclusion was. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Reply hazy, ask again later. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail problems
I can't get mail to work on my system. It always tries to send mail as the user 'nobody' which my Apache 1.3.26 runs as. phpinfo() reports I have the correct path to the php.ini file which specifies it is supposed to send as the user 'bob'. I have sendmail 8.12.5 and PHP 4.2.2 on the same RedHat Linux machine? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail problems
On Fri, Aug 02, 2002 at 09:34:20PM -0400, Bob Lockie wrote: I can't get mail to work on my system. It always tries to send mail as the user 'nobody' which my Apache 1.3.26 runs as. phpinfo() reports I have the correct path to the php.ini file which specifies it is supposed to send as the user 'bob'. I have sendmail 8.12.5 and PHP 4.2.2 on the same RedHat Linux machine? I'm not sure how sendmail works, but I think exim has a setting that you have to set so it will allow you to send email as a different user. Maybe there is something like that you need to set for sendmail also. -- Jason Stechschulte [EMAIL PROTECTED] http://www.ypisco.com -- Do you think that illiterate people get the full effect of alphabet soup? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP mail() problems FIXED
John Williams wrote: I'm having a problem getting the mail() function working on php 4.2.2. I get the error message: Warning: mail() is not supported in this PHP build I'm running Solaris 8 and have set the symlink for sendmail. I have recompiled PHP, set the php.ini to point to sendmail and restarted the web server. ; For Unix only. ;You may supply arguments as well (default: 'sendmail -t -i'). sendmail_path = /usr/sbin/sendmail -t -i (I've tried it with and without quotes) Still no luck... Any ideas? Thanks! John Solved it by removing the PHP directory and untarring it again. When I rebuilt it the 1st time there was no config.cache so I assumed there was no cache from the previous configure. I think this was because I had to rm configure and do a ./buildconf and it named the cache file something else. Oh well, long story short. Make a symlink so sendmail is in the path (otherwise PHP will disable sendmail support), and with the cache removed recompile PHP. After that it works fine. Tks to all who sent advice! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() problems
I'm having provblems with the following script... mail([EMAIL PROTECTED], www form submission, $message, From: $email); ...the variables are being POSTed from a form, which does make it to sendmail. sendmail logs the following... Jul 31 19:32:47 mars sendmail[20605]: g711Wlu20605: from=nobody, size=81, class=0, nrcpts=0, msgid=[EMAIL PROTECTED], relay=nobody@localhost the nrcpts=0 is obviously a concern here. This sendmail does handle mail for a few domains and does accept mail for localhost. Any ideas where I've gone wrong? All this was wokring with php 4.2.1 until a hard drive died. I rebuild the machine and installed php 4.2.2 and this is where I'm at. I'm using the same sendmail configuration. dan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP mail() problems
I'm having a problem getting the mail() function working on php 4.2.2. I get the error message: Warning: mail() is not supported in this PHP build I'm running Solaris 8 and have set the symlink for sendmail. I have recompiled PHP, set the php.ini to point to sendmail and restarted the web server. ; For Unix only. ;You may supply arguments as well (default: 'sendmail -t -i'). sendmail_path = /usr/sbin/sendmail -t -i (I've tried it with and without quotes) Still no luck... Any ideas? Thanks! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP mail() problems
Try rm config.cache, re-configure and try again On Tue, 30 Jul 2002, John Williams wrote: I'm having a problem getting the mail() function working on php 4.2.2. I get the error message: Warning: mail() is not supported in this PHP build I'm running Solaris 8 and have set the symlink for sendmail. I have recompiled PHP, set the php.ini to point to sendmail and restarted the web server. ; For Unix only. ;You may supply arguments as well (default: 'sendmail -t -i'). sendmail_path = /usr/sbin/sendmail -t -i (I've tried it with and without quotes) Still no luck... Any ideas? Thanks! John -- 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
[PHP] Mail problems on Mac
Hi folks! When I send mail (using the mail-function) and the subject line contains non-english letters like å, ä, ö the special caracters turns into strange symbols. This only happens on Mac OS, wich is pretty strange. Have anyone else encounter this problem? Does anyone have a solution for it, or do I just have to accept it? Cheers! Anders Henke -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail () problems - Need help!
I''ve a php script that gets e-mail addresses from a MySQL db and then using the mail() sends the same message to 100+ recipients. I tested the script twice. FIRST TEST. (1) I commented out the mail() routine. (2) I looped to get the e-mail addresses. (3) I echoed the e-mail addresses on the screen. It worked fine (displayed 136 e-mail addresses) and fast! SECOND TEST. (1) I uncommented out the mail() routine. (2) I used my own e-mail address as the recipient in the mail(). It was supposed to loop to get the e-mail addresses, display them on the screen, and send me an e-mail every time (136 times). It loaded very slow (loading indicator). Finally it displayed url not found with the name of the script file. And, I got no e-mails. Is there a conflict between php mail() and the mail server when multiple e-mails are involved? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail () problems - Need help!
Your browser probably timed out. Try using flush() after the echo in the loop. You may also encounter PHP timeout - take a look at set_time_limit() if you bump into that. What I don't understand is why you received no mail - are you sure your mail() syntax is correct? You should try a third test: (1) Change the loop condition so it only loops once; (2) Use the uncommented mail() version; See if you get any mail / error messages... HTH Bogdan Anthony Rodriguez wrote: I''ve a php script that gets e-mail addresses from a MySQL db and then using the mail() sends the same message to 100+ recipients. I tested the script twice. FIRST TEST. (1) I commented out the mail() routine. (2) I looped to get the e-mail addresses. (3) I echoed the e-mail addresses on the screen. It worked fine (displayed 136 e-mail addresses) and fast! SECOND TEST. (1) I uncommented out the mail() routine. (2) I used my own e-mail address as the recipient in the mail(). It was supposed to loop to get the e-mail addresses, display them on the screen, and send me an e-mail every time (136 times). It loaded very slow (loading indicator). Finally it displayed url not found with the name of the script file. And, I got no e-mails. Is there a conflict between php mail() and the mail server when multiple e-mails are involved? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail () problems - Need help!
Anthony, A common issue. Pertinent info required: 1 Win or *nix? 2 able to send a single msg to a single email addr? 3 does loop get address and send msg to that address, 136 times; or does loop collect 136 addresses and then after closing the loop a single msg is sent to 136 recipients in the To: field? Might also be helpful if you post the pertinent piece(s) of code, and the Email para from the php.ini file. Please advise, =dn I''ve a php script that gets e-mail addresses from a MySQL db and then using the mail() sends the same message to 100+ recipients. I tested the script twice. FIRST TEST. (1) I commented out the mail() routine. (2) I looped to get the e-mail addresses. (3) I echoed the e-mail addresses on the screen. It worked fine (displayed 136 e-mail addresses) and fast! SECOND TEST. (1) I uncommented out the mail() routine. (2) I used my own e-mail address as the recipient in the mail(). It was supposed to loop to get the e-mail addresses, display them on the screen, and send me an e-mail every time (136 times). It loaded very slow (loading indicator). Finally it displayed url not found with the name of the script file. And, I got no e-mails. Is there a conflict between php mail() and the mail server when multiple e-mails are involved? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- 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
[PHP] php mail problems
Hello, Using a Solaris box with php 4.0.6 I am having a problem sending mail using mail(). Sendmail is installed and works. Php.ini points to sendmail. What do the -t and -i options do? Are they required? Any ideas what could be wrong? Here is my code: if( mail( myemailaddresshere, Test, test, From: myemailaddresshere ) == FALSE ) { print( 'Error sending email 1.' ); } Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Mail() Problems in a heterogenous network
Ok. Here's the situation: I'm running PHP on a Unix (SGI) box with Apache as a module running an Intranet web server (call it inside.mydomain.com). Sendmail is running on the machine. I'm on a network with a windows Mail server (MS. Exchange 5.5) with (I'm told) appropriate SMTP services running (call it mail.mydomain.com). I'm using a mail class I downloaded from somewhere, which basically calls PHP's mail funciton. The behaviour is this: When I send mail from the webserver (running as [EMAIL PROTECTED]) to an inside address (same domain, i.e. [EMAIL PROTECTED]) I get everything just fine. I can even use the from feature in the mail class to make the mail appear to come from a real (or not so real, I've tried [EMAIL PROTECTED] and it takes it just fine) address. However, when I send mail to an outside address, i.e. [EMAIL PROTECTED], it gets dropped somewhere. Unfortunately those running the mailserver are unable/unwilling to help me track this down, so I've got to come to you guys with limited information and hope you have an answer. If it helps, here's the header of a message sent from inside.mydomain.com to an inside address. Thanks in advance. Received: from sneasv02.omniquip.textron.com (insidesnorkel.omniquip.textron.com [10.220.15.149]) by oqamapw1ab.omniquip.textron.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 14MPSVVH; Sat, 24 Feb 2001 11:18:24 -0600 Received: (from nobody@localhost) by sneasv02.omniquip.textron.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA42386; Sat, 24 Feb 2001 11:13:51 -0600 (CST) Date: Sat, 24 Feb 2001 11:13:51 -0600 (CST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: You\'ve been very good From: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary = b0c7d5a8cfe35ac094237730d7b4e46d6 ... ... .. John Parker --- John Parker, Senior Design Engineer Ph: 816/676-6419 Fax: 785/989-3556 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Mail() Problems in a heterogenous network
Sounds like they have relay disabled on their SMTP server and the IP that your PHP is running on is not on an included network address. As them to verify that your ip address is ok. The mail server will accept locally destined mail but anything else is seen as a relay attempt (Spam) and blocked. In most cases ISPs and admins reject with complaint (which would help considerably in your case), in others they reject transparently by routing to /dev/null. On Mon, 26 Feb 2001, Parker, John (Snorkel) wrote: Date: Mon, 26 Feb 2001 16:02:32 -0600 From: "Parker, John (Snorkel)" [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] Subject: [PHP] Mail() Problems in a heterogenous network Ok. Here's the situation: I'm running PHP on a Unix (SGI) box with Apache as a module running an Intranet web server (call it inside.mydomain.com). Sendmail is running on the machine. I'm on a network with a windows Mail server (MS. Exchange 5.5) with (I'm told) appropriate SMTP services running (call it mail.mydomain.com). I'm using a mail class I downloaded from somewhere, which basically calls PHP's mail funciton. The behaviour is this: When I send mail from the webserver (running as [EMAIL PROTECTED]) to an inside address (same domain, i.e. [EMAIL PROTECTED]) I get everything just fine. I can even use the from feature in the mail class to make the mail appear to come from a real (or not so real, I've tried [EMAIL PROTECTED] and it takes it just fine) address. However, when I send mail to an outside address, i.e. [EMAIL PROTECTED], it gets dropped somewhere. Unfortunately those running the mailserver are unable/unwilling to help me track this down, so I've got to come to you guys with limited information and hope you have an answer. If it helps, here's the header of a message sent from inside.mydomain.com to an inside address. Thanks in advance. Received: from sneasv02.omniquip.textron.com (insidesnorkel.omniquip.textron.com [10.220.15.149]) by oqamapw1ab.omniquip.textron.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 14MPSVVH; Sat, 24 Feb 2001 11:18:24 -0600 Received: (from nobody@localhost) by sneasv02.omniquip.textron.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA42386; Sat, 24 Feb 2001 11:13:51 -0600 (CST) Date: Sat, 24 Feb 2001 11:13:51 -0600 (CST) Message-Id: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: You\'ve been very good From: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary = b0c7d5a8cfe35ac094237730d7b4e46d6 ... ... .. John Parker --- John Parker, Senior Design Engineer Ph: 816/676-6419 Fax: 785/989-3556 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] Kelly 303-444-1671 Boulder, Colorado -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Mail() Problems in a heterogenous network
Addressed to: "Parker, John (Snorkel)" [EMAIL PROTECTED] "'[EMAIL PROTECTED]'" [EMAIL PROTECTED] ** Reply to note from "Parker, John (Snorkel)" [EMAIL PROTECTED] Mon, 26 Feb 2001 16:02:32 -0600 The behaviour is this: When I send mail from the webserver (running as [EMAIL PROTECTED]) to an inside address (same domain, i.e. [EMAIL PROTECTED]) I get everything just fine. I can even use the from feature in the mail class to make the mail appear to come from a real (or not so real, I've tried [EMAIL PROTECTED] and it takes it just fine) address. However, when I send mail to an outside address, i.e. [EMAIL PROTECTED], it gets dropped somewhere. What gets dropped? The entire message - See the message from Kelly Corkill Just the From info - read on. Unfortunately those running the mailserver are unable/unwilling to help me track this down, Probably unable. Windows is Easy, that means you don't have to know anything to admin it. At least till something unusual happens. Received: from sneasv02.omniquip.textron.com (insidesnorkel.omniquip.textron.com [10.220.15.149]) by oqamapw1ab.omniquip.textron.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id 14MPSVVH; Sat, 24 Feb 2001 11:18:24 -0600 Received: (from nobody@localhost) by sneasv02.omniquip.textron.com (980427.SGI.8.8.8/970903.SGI.AUTOCF) id LAA42386; Sat, 24 Feb 2001 11:13:51 -0600 (CST) Take a look at the headers on an internal message. I bet you find some additional headers like: From: and Reply To: that are being stripped by the mail server. Can you load sendmail or qmail on your UNIX box and bypass them. You don't have to handle incoming email, and you don't want the machine listening on port 25, but you may be able to have your own machine handle mail connections and bypass them entirely. Rick Widmer Internet Marketing Specialists http://www.developersdesk.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] mail problems in windows2000
Hello everyone~ I'm a Korean(in ASIA) PHPer. I have some problems with 'mail()' function in windows2000 and PHP4.0 first I met a error message like this Warning: Failed to Connect in d:\apache\htdocs\mail2.php on line 3 OOps ~ so I installed my SMTP services then configured my PHP.ini file like this [mail function] SMTP = localhost ;for win32 only sendmail_from = [EMAIL PROTECTED] ;for win32 only ;sendmail_path = ;for unix only, may supply arguments as well (default is 'sendmail -t -i') then I retried mail function. mail("[EMAIL PROTECTED]", "My Subject", "Line 1\nLine 2\nLine 3"); but this time I met an another error message ~! Warning: Server Error in d:\apache\htdocs/test/test.php on line 3 OOPs ~! I'm very sorry about this. Does anyone have a clear answer ?
[PHP] Mail problems
Hello I am doing a job for a client who has a host that just installed php4 on a WinNT system. He can not get the mail program to work properly. The server that php is on and the mail server are different computers. He, the host, asked me to try and by-pass the the mail utility and send directly to the mail server. He gave me the ip address. Is it possible? If so how? Thanks Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]