[PHP] mail program
Hi all (B (Bi want to send more than 1000 mails from php program at a time.how can i send it and (Bwill the execution of program become slow. (B (Bpls reply to the above ASAP (B (Bsyed
[PHP] mail sent but not received?!
Hi, I've been pulling my hair out over this problem for a while... ?php $msg = Hi, this is a test; $to = [EMAIL PROTECTED]; $sbj = test message from my.edu; $rev = mail($to,$sbj,$msg); echo mail from my.edu result is $rev; ? -- Since the result of the mail() returned is 1, the message should have been delivered fine. but I did not get anything. Where can I look for more clues of what the problem might be, like possible log, or turn on some debug level in php? I've also tried mail($to,$sbj,$msg, -f [EMAIL PROTECTED]), no workie either. Any help would be greatly appreciated! Bing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail sent but not received?!
On Fri, 25 Jun 2004 11:08:26 -0500 (CDT), Bing Du [EMAIL PROTECTED] wrote: Since the result of the mail() returned is 1, the message should have been delivered fine. but I did not get anything. Where can I look for more clues of what the problem might be, like possible log, or turn on some debug level in php? I've also tried mail($to,$sbj,$msg, -f [EMAIL PROTECTED]), no workie either. Can you send email to that address from that server? On unixy systems the mail log is usually in (shocker) /var/log/maillog. For a Windows system make sure you have the mail settings in php.ini setup correctly (see http://php.net/mail for full info). -- Stuttle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail sent but not received?!
Your message could have bounced or been rejected for some other reason, in which case you wouldn't have recieved it, but it'll look like it's sent fine. -Josh -Original Message- From: Bing Du [mailto:[EMAIL PROTECTED] Sent: Friday, June 25, 2004 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] mail sent but not received?! Hi, I've been pulling my hair out over this problem for a while... ?php $msg = Hi, this is a test; $to = [EMAIL PROTECTED]; $sbj = test message from my.edu; $rev = mail($to,$sbj,$msg); echo mail from my.edu result is $rev; ? -- Since the result of the mail() returned is 1, the message should have been delivered fine. but I did not get anything. Where can I look for more clues of what the problem might be, like possible log, or turn on some debug level in php? I've also tried mail($to,$sbj,$msg, -f [EMAIL PROTECTED]), no workie either. Any help would be greatly appreciated! Bing -- 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 sent but not received?!
* Thus wrote Bing Du: $rev = mail($to,$sbj,$msg); echo mail from my.edu result is $rev; ? -- Since the result of the mail() returned is 1, the message should have been delivered fine. but I did not get anything. Where can I look for more Negative! $rev will simply let you know that your MTA (mail transfer agent) accepted your message. The MTA will attempt to deliver the message at its own will. clues of what the problem might be, like possible log, or turn on some debug level in php? I've also tried mail($to,$sbj,$msg, -f [EMAIL PROTECTED]), no workie either. if the mail was unsucessfully delivered, and [EMAIL PROTECTED] is a valid email then the email will get returned to [EMAIL PROTECTED] it gets more complicated than that but thats the jest of it. Any help would be greatly appreciated! If you have access to you're maillog's then view those. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail
I have upgraded from SUSE 9.0 to 9.1 and now having problems with the mail function. First I was getting an unknown function mail. An suse update fixed that. Now the mail function seems to execute fine but no message ever gets to where I sent it. I looked at the mail log from the postfix program and it seems to be saying that there were no recipients, but the exact same code works fine on another machine with suse 9.0 and the same config file for postfix. Anyone have any ideas? Just in case, here are the log entries from postfix Jun 15 14:58:09 WebServer postfix/pickup[2220]: C6EDA23A2F: uid=30 from=wwwrun Jun 15 14:58:09 WebServer postfix/cleanup[2617]: C6EDA23A2F: message-id=[EMAIL PROTECTED] Jun 15 14:58:09 WebServer postfix/cleanup[2617]: C6EDA23A2F: to=unknown, relay=none, delay=0, status=bounced (No recipients specified) -- Chris W Bring Back the HP 15C http://hp15c.org Not getting the gifts you want? The Wish Zone can help. http://thewishzone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail
[EMAIL PROTECTED] wrote: have you debugged your php code to confirm that a recipient is really getting put on the message? e.g., print out the to: line, or better yet, hard-code a recipient in the code. based on what you find, you'll have a better sense as to whether the issue is on the mta side or your php (and i assume database) code side. the only change I made was move the code from a suse 9.0 machine to an suse 9.1 machine at a different location. The code I am uisng to test is very simple ?php $message = This is a Test Message ; mail('[EMAIL PROTECTED]', test message, $message); ? -- Chris W Bring Back the HP 15C http://hp15c.org Not getting the gifts you want? The Wish Zone can help. http://thewishzone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() problem
Hi All, Does anyone know a good format for sending email using the mail() function that doesnt get stopped by antispam software? I need to send and email from my sever when a new member creates an account, this ive done but my email gets binned straight away? must be the headers? Regards Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() problem
Sounds like a problem for the maintainers of the spam blocking software? You can't correct the problem with the headers if you don't know what the spam software is objecting to. It may be objecting to the fact that the source is 127.0.0.1? -Original Message- From: Rick [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 8:35 PM To: [EMAIL PROTECTED] Subject: [PHP] mail() problem Hi All, Does anyone know a good format for sending email using the mail() function that doesnt get stopped by antispam software? I need to send and email from my sever when a new member creates an account, this ive done but my email gets binned straight away? must be the headers? Regards Rick -- 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 command with PHP 4.3.4-1.1 and Fedora Core 1
Hello all, I have updated an old system to Fedora 1 and php php-4.3.4-1.1. However the mail comand does not work anymore. The php.ini of the original system did not have anything special. Sendmail is not being run locally in this machine. What might be causing it? Thanks in advance, C.F. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php mail() scaleability
Using mail($to, $subject, $content, $headers) takes way too long when attempting to mail to 30k people. This seems to be a result of a socket being opened for each send. Is there a better way to approach this situation via php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: php mail() scaleability
Hello, On 04/25/2004 04:18 PM, Josh Klobe wrote: Using mail($to, $subject, $content, $headers) takes way too long when attempting to mail to 30k people. This seems to be a result of a socket being opened for each send. Is there a better way to approach this situation via php? Under Unix/Linux, PHP itself does not open any sockets to queue messages with the mail function. If you are using Unix/Linux with sendmail there are some options that can be tweaked to make it just queue the message instead of trying to deliver the message immediately. -- 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] Re: php mail() scaleability
Manuel Lemos wrote: Hello, On 04/25/2004 04:18 PM, Josh Klobe wrote: Using mail($to, $subject, $content, $headers) takes way too long when attempting to mail to 30k people. This seems to be a result of a socket being opened for each send. Is there a better way to approach this situation via php? Under Unix/Linux, PHP itself does not open any sockets to queue messages with the mail function. If you are using Unix/Linux with sendmail there are some options that can be tweaked to make it just queue the message instead of trying to deliver the message immediately. Okay, I'll bite. What options? cheers, Travis -- Travis Low mailto:[EMAIL PROTECTED] http://www.dawnstar.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: php mail() scaleability
Hello, On 04/25/2004 05:43 PM, Travis Low wrote: Using mail($to, $subject, $content, $headers) takes way too long when attempting to mail to 30k people. This seems to be a result of a socket being opened for each send. Is there a better way to approach this situation via php? Under Unix/Linux, PHP itself does not open any sockets to queue messages with the mail function. If you are using Unix/Linux with sendmail there are some options that can be tweaked to make it just queue the message instead of trying to deliver the message immediately. Okay, I'll bite. What options? There are several options that may suite you. Check sendmail man page for DeliveryMode option. You may also want to take a look at this class that comes with a sub-class specialized in deliverying messages with sendmail. It provide a delivery_mode class variable that lets you override the sendmail default delivery mode. If you want to try this class but do not want to change your scripts much, you can also use a wrapper function that comes with this class named sendmail_mail(). It emulates the mail() function except that you can change these options. You just need to include the class files and change the mail() calls to sendmail_mail() calls without any need to change parameters. http://www.phpclasses.org/mimemessage -- 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] Re: php mail() scaleability
Take a look at the Mail Queue class from PEAR, it enables you to put mail in the Queue instead of real time delivery. http://pear.php.net/packages.php?catpid=14catname=Mail Jason -Original Message- From: Travis Low [mailto:[EMAIL PROTECTED] Sent: Sunday, April 25, 2004 2:43 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Re: php mail() scaleability Manuel Lemos wrote: Hello, On 04/25/2004 04:18 PM, Josh Klobe wrote: Using mail($to, $subject, $content, $headers) takes way too long when attempting to mail to 30k people. This seems to be a result of a socket being opened for each send. Is there a better way to approach this situation via php? Under Unix/Linux, PHP itself does not open any sockets to queue messages with the mail function. If you are using Unix/Linux with sendmail there are some options that can be tweaked to make it just queue the message instead of trying to deliver the message immediately. Okay, I'll bite. What options? cheers, Travis -- Travis Low mailto:[EMAIL PROTECTED] http://www.dawnstar.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] Re: php mail() scaleability
Hello, On 04/25/2004 06:03 PM, Jason Sheets wrote: Take a look at the Mail Queue class from PEAR, it enables you to put mail in the Queue instead of real time delivery. http://pear.php.net/packages.php?catpid=14catname=Mail This is a bit of an overkill as it attempts to provide an inefficient solution replicate the dedicated solution built-in sendmail for queueing messages that can be called with a few lines of code, thus without needing a large PHP package. -- 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
[PHP] Mail Functions on File
Hello all, Is it possible to use the imap functions on a file instead of opening a mail box via imap_open? I have create virtual users and am having a large amount of difficulty getting authentication to work. Since they will be checking their email through our software, and have already authenticated to use it, I would like to just open the file then use the imap_* functions to process it. TIA, Daryl Meese -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail header problem
Hello all, When I use the PHP mail function to send emails, with a header of From:[EMAIL PROTECTED]; bounced and otherwise undeliverable messages come back to the user www, not the user I indicated the mail was from. Is this a PHP or MTA issue? Is there something I can do about it? TIA, Daryl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail header problem
* Thus wrote Daryl Meese ([EMAIL PROTECTED]): Hello all, When I use the PHP mail function to send emails, with a header of From:[EMAIL PROTECTED]; bounced and otherwise undeliverable messages come back to the user www, not the user I indicated the mail was from. Is this a PHP or MTA issue? Is there something I can do about it? You want to check the fifth parameter to mail(). If you add -f [EMAIL PROTECTED] If you're using sendmail (or equiv) that will set the envelope (aka return path) for the emails, as long as safe_mode is not enabled. 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
[PHP] Mail sending from nobody to nobody...
For some reason mail is being sent from nobody to nobody every time. I have tried hardcoding the sendmail path, which is the default anyway, and it still doesn't work? Has anyone encountered this before? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail sending from nobody to nobody...
Details? How are you calling the mail function? At 11:59 PM 4/4/2004, Jonathan Villa wrote: For some reason mail is being sent from nobody to nobody every time. I have tried hardcoding the sendmail path, which is the default anyway, and it still doesn't work? Has anyone encountered this before? -- 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 sending from nobody to nobody...
$from = From: .$email.\n; $from .= Reply-to: .$email.\n; $message = The following person has been added to the Mailing List.\n\n; $message .= $name. (.$email.) from .$city. has been added to the mailing list.; if(mail([EMAIL PROTECTED],Added To Mailing List,stripslashes($message),$from) == false) die('failed'); On Mon, 2004-04-05 at 02:13, hitek wrote: Details? How are you calling the mail function? At 11:59 PM 4/4/2004, Jonathan Villa wrote: For some reason mail is being sent from nobody to nobody every time. I have tried hardcoding the sendmail path, which is the default anyway, and it still doesn't work? Has anyone encountered this before? -- 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 sending from nobody to nobody...
Try getting rid of the stripslashes, or if you need to remove them, add an additional \n to the message after the strip slashes, like so: if(mail([EMAIL PROTECTED],Added To Mailing List,stripslashes($message).\n,$from) == false) die('failed'); Also, see http://www.php.net/manual/en/function.mail.php if you haven't checked there yet. There are some good examples. At 12:17 AM 4/5/2004, Jonathan Villa wrote: $from = From: .$email.\n; $from .= Reply-to: .$email.\n; $message = The following person has been added to the Mailing List.\n\n; $message .= $name. (.$email.) from .$city. has been added to the mailing list.; if(mail([EMAIL PROTECTED],Added To Mailing List,stripslashes($message),$from) == false) die('failed'); On Mon, 2004-04-05 at 02:13, hitek wrote: Details? How are you calling the mail function? At 11:59 PM 4/4/2004, Jonathan Villa wrote: For some reason mail is being sent from nobody to nobody every time. I have tried hardcoding the sendmail path, which is the default anyway, and it still doesn't work? Has anyone encountered this before? -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() question
It's quite easy to remove access to the mail function, simply put mail in your php.ini under disable_functions Hernan Marino [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] sorry. lazy me. there is auto_prepend_file in php.ini I'll see if it works. Thanks! On Fri, 2 Apr 2004 03:51:18 -0300, Hernan Marino wrote: Thanks for your answer. Don't you know if there is a way to redefine the mail() function in the php.ini file without touching the source code. Something like prepending a file for every script parsed in the server and redefine there several functions or something like that. Thanks! On Fri, 2 Apr 2004 07:46:48 +0100, Duncan Hill wrote: On Friday 02 April 2004 07:39, Hernan Marino wrote: Hello. My users can send email from their web pages using mail(). But the email is sent from [EMAIL PROTECTED], I dont want them to attempt to send bulk, so I wonder if there is any way to identify the Consider removing the mail() function, and requiring they they use SMTP connections. I believe one of the external mail classes supports authenticated SMTP, so with that you could tell who was sending the mail. -- 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() question
Hello. My users can send email from their web pages using mail(). But the email is sent from [EMAIL PROTECTED], I dont want them to attempt to send bulk, so I wonder if there is any way to identify the system user sending the email. I use postfix, and I know that postfix gets connected from user apache, but is there anyway to pass an argument to postfix, for example, some $_SERVER var to identify the script location, or something like that. Any help will be greatly appreciated. Thanks in advamce. H Marino -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() question
Thanks for your answer. Don't you know if there is a way to redefine the mail() function in the php.ini file without touching the source code. Something like prepending a file for every script parsed in the server and redefine there several functions or something like that. Thanks! On Fri, 2 Apr 2004 07:46:48 +0100, Duncan Hill wrote: On Friday 02 April 2004 07:39, Hernan Marino wrote: Hello. My users can send email from their web pages using mail(). But the email is sent from [EMAIL PROTECTED], I dont want them to attempt to send bulk, so I wonder if there is any way to identify the Consider removing the mail() function, and requiring they they use SMTP connections. I believe one of the external mail classes supports authenticated SMTP, so with that you could tell who was sending the mail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() question
sorry. lazy me. there is auto_prepend_file in php.ini I'll see if it works. Thanks! On Fri, 2 Apr 2004 03:51:18 -0300, Hernan Marino wrote: Thanks for your answer. Don't you know if there is a way to redefine the mail() function in the php.ini file without touching the source code. Something like prepending a file for every script parsed in the server and redefine there several functions or something like that. Thanks! On Fri, 2 Apr 2004 07:46:48 +0100, Duncan Hill wrote: On Friday 02 April 2004 07:39, Hernan Marino wrote: Hello. My users can send email from their web pages using mail(). But the email is sent from [EMAIL PROTECTED], I dont want them to attempt to send bulk, so I wonder if there is any way to identify the Consider removing the mail() function, and requiring they they use SMTP connections. I believe one of the external mail classes supports authenticated SMTP, so with that you could tell who was sending the mail. -- 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 Delivery (failure php-general@lists.php.net)
If the message will not displayed automatically, follow the link to read the delivered message. Received message is available at: www.lists.php.net/inbox/php-general/read.php?sessionid-27800
[PHP] Mail a PHP
Hello... I reclently upgraded the OpenSSL to stay ahead of some new vulnerabilities dicovered in 0.9.7c, the new installation (0.9.7d) replaced the libssl.so and libcrypto.so files. Aftes the upgrade I restarted Apahce (and PHP) but the phpinfo function still shows the old versión of openssl in the corresponding section. My question is: PHP is running the new o the old one? OpenSSL support enabled OpenSSL Version OpenSSL 0.9.7c 30 Sep 2003 PHP was compilled with: ./configure --with-mysql --with-gd --with-apxs2=/apache2/bin/apxs --with-ldap --sharedstatedir=/tmp --enable-memory-limit=yes --enable-debug=no --with-zlib --with-kerberos=no --prefix=/usr/local/chroot/www/usr/local --with-gettext --with-xml --with-imap=../imap-2002e --without-imap-ssl --with-openssl=/usr/local/ssl --with-jpeg-dir=/usr/local --with-config-file-path=/apache2/conf --enable-ftp=shared that mean use OpenSSL as dymanic librarys, isn't it? Thank you... -- Federico Petronio [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail headers
Hello all, I searched for this but did not find what I was looking for. I want to send a file from a directory, i know how to do that in txt but I would like to send a doc or rtf document. Is the header like this: $headers = Content-Type: multipart/mixed; Thanks, ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() to own domain not working
i found the problem thanks. even though the MX records were pointing to a different server, since there is an inactive mail server (qmail) installed on the server for local mail delivery it would route it to the local server. i disabled the mail server on localhost completely and now all mail gets routed to the correct host according to the mx records on the DNS :) - Original Message - From: Raditha Dissanayake [EMAIL PROTECTED] To: Gerard L Petersen [EMAIL PROTECTED] Cc: Php-General [EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 6:52 PM Subject: Re: [PHP] mail() to own domain not working Gerard L Petersen wrote: Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this? If you are getting any php related error messages please post those error messages to the list. If you are not getting any PHP errors please look at your mail server log file for details on what's happening. It could be purely a server configuration issue in which case you will have to post the message to a mailing list/newsgroup related your mail server. -- Raditha Dissanayake. --- http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single transfer. (HTTP or FTP) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() to own domain not working
Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this?
Re: [PHP] mail() to own domain not working
Ooo, I had this recently when we moved to beamhost.co.uk I'll mail them and ask them what they did to fix it... I'll be back... Gerard L Petersen [EMAIL PROTECTED] 17/03/2004 14:59 To Php-General [EMAIL PROTECTED] cc Subject [PHP] mail() to own domain not working Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this? * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() to own domain not working
Well, they replied: Do you mean the email is not working at the moment or you\'re asking for the solution we did last time? We modified your code and changed @ to \\@ within the mail header. Any use? [EMAIL PROTECTED] 17/03/2004 15:21 To Gerard L Petersen [EMAIL PROTECTED] cc Php-General [EMAIL PROTECTED] Subject Re: [PHP] mail() to own domain not working Ooo, I had this recently when we moved to beamhost.co.uk I'll mail them and ask them what they did to fix it... I'll be back... Gerard L Petersen [EMAIL PROTECTED] 17/03/2004 14:59 To Php-General [EMAIL PROTECTED] cc Subject [PHP] mail() to own domain not working Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this? * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() to own domain not working
Sorry, had an extra \ == Do you mean the email is not working at the moment or you're asking for the solution we did last time? We modified your code and changed @ to \@ within the mail header. Tristan Pretty/Infinity 17/03/2004 15:37 To [EMAIL PROTECTED] cc Gerard L Petersen [EMAIL PROTECTED], Php-General [EMAIL PROTECTED] Subject Re: [PHP] mail() to own domain not working Well, they replied: Do you mean the email is not working at the moment or you\'re asking for the solution we did last time? We modified your code and changed @ to \\@ within the mail header. Any use? [EMAIL PROTECTED] 17/03/2004 15:21 To Gerard L Petersen [EMAIL PROTECTED] cc Php-General [EMAIL PROTECTED] Subject Re: [PHP] mail() to own domain not working Ooo, I had this recently when we moved to beamhost.co.uk I'll mail them and ask them what they did to fix it... I'll be back... Gerard L Petersen [EMAIL PROTECTED] 17/03/2004 14:59 To Php-General [EMAIL PROTECTED] cc Subject [PHP] mail() to own domain not working Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this? * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() to own domain not working
Gerard L Petersen wrote: Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this? If you are getting any php related error messages please post those error messages to the list. If you are not getting any PHP errors please look at your mail server log file for details on what's happening. It could be purely a server configuration issue in which case you will have to post the message to a mailing list/newsgroup related your mail server. -- Raditha Dissanayake. --- http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single transfer. (HTTP or FTP) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail() to own domain not working
Just read your email properly, there was no need for me to ask that question :) Right, I think you had pretty much the same problem as I had. Your webserver also doubled as the email server, so whenever mail was sent to [EMAIL PROTECTED], the local mail server was handling it rather than the server specified by your domain's MX. Cheers, Jason -Original Message- From: Gerard L Petersen [mailto:[EMAIL PROTECTED] Sent: 17 March 2004 16:07 To: Jason Merrique Subject: Re: [PHP] mail() to own domain not working No thats a different server. - Original Message - From: Jason Merrique [EMAIL PROTECTED] To: Gerard L Petersen [EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 5:55 PM Subject: RE: [PHP] mail() to own domain not working Does the webserver handle DNS aswell? -Original Message- From: Gerard L Petersen [mailto:[EMAIL PROTECTED] Sent: 17 March 2004 15:51 To: Jason Merrique Subject: Re: [PHP] mail() to own domain not working Hey Jason Yes it does, afaik. Just disabled email functionality on the server works perfectly thanks. - Gerard - Original Message - From: Jason Merrique [EMAIL PROTECTED] To: Gerard L Petersen [EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 5:32 PM Subject: RE: [PHP] mail() to own domain not working Hey Gerard, Does your web server also handle mail? Cheers Jason -Original Message- From: Gerard L Petersen [mailto:[EMAIL PROTECTED] Sent: 17 March 2004 15:00 To: Php-General Subject: [PHP] mail() to own domain not working Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail
Hello All, I am having a problem with sending a reply from a form. It is giving me a 550 error: There is no valid sender in any header line. My form is: ? include (inc/setup.php); // Mail reply to Orginial poster $recipient .= [EMAIL PROTECTED], $_POST[email]\n; $mailheaders .= To: $_POST[email]\n; $mailheaders .= From: $_POST[email]\n; $subject .= $_POST[subject]; $msg .= Please do not reply to this email!!!\n\n; $msg .= Here is our answer: \r$_POST[message]\n\n; $msg .= Please use your username/password that was assigned to you.\n\n; mail($recipient, $mailheaders, $subject, $msg); $add_reply = INSERT into $table_name25 values ('', now(), '$_POST[subject]', '$_POST[name]', '$_POST[email]', '$_POST[message]'); mysql_query($add_reply,$conn) or die(mysql_error()); header(Location: support_archive.php); exit; ? And when I recieive the one email there are no from and reply to in the email client. Plus it is in the subject line!!! What the heck am I doing wrong??? Thanks in advance, ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail
Check the manual to be sure, but it appears that you have the arguments for the mail function in the wrong order . mail(to, subject, msg, headers) ... i beleive is the correct order. Jason Will [EMAIL PROTECTED] wrote: Hello All, I am having a problem with sending a reply from a form. It is giving me a 550 error: There is no valid sender in any header line. My form is: ? include (inc/setup.php); // Mail reply to Orginial poster $recipient .= [EMAIL PROTECTED], $_POST[email]\n; $mailheaders .= To: $_POST[email]\n; $mailheaders .= From: $_POST[email]\n; $subject .= $_POST[subject]; $msg .= Please do not reply to this email!!!\n\n; $msg .= Here is our answer: \r$_POST[message]\n\n; $msg .= Please use your username/password that was assigned to you.\n\n; mail($recipient, $mailheaders, $subject, $msg); $add_reply = INSERT into $table_name25 values ('', now(), '$_POST[subject]', '$_POST[name]', '$_POST[email]', '$_POST[message]'); mysql_query($add_reply,$conn) or die(mysql_error()); header(Location: support_archive.php); exit; ? And when I recieive the one email there are no from and reply to in the email client. Plus it is in the subject line!!! What the heck am I doing wrong??? Thanks in advance, ~WILL~ -- 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
Thank you very much!!! That was it ~WILL~ -Original Message- From: Jason Davidson [mailto:[EMAIL PROTECTED] Sent: Sunday, March 14, 2004 2:40 PM To: Will Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Mail Check the manual to be sure, but it appears that you have the arguments for the mail function in the wrong order . mail(to, subject, msg, headers) ... i beleive is the correct order. Jason Will [EMAIL PROTECTED] wrote: Hello All, I am having a problem with sending a reply from a form. It is giving me a 550 error: There is no valid sender in any header line. My form is: ? include (inc/setup.php); // Mail reply to Orginial poster $recipient .= [EMAIL PROTECTED], $_POST[email]\n; $mailheaders .= To: $_POST[email]\n; $mailheaders .= From: $_POST[email]\n; $subject .= $_POST[subject]; $msg .= Please do not reply to this email!!!\n\n; $msg .= Here is our answer: \r$_POST[message]\n\n; $msg .= Please use your username/password that was assigned to you.\n\n; mail($recipient, $mailheaders, $subject, $msg); $add_reply = INSERT into $table_name25 values ('', now(), '$_POST[subject]', '$_POST[name]', '$_POST[email]', '$_POST[message]'); mysql_query($add_reply,$conn) or die(mysql_error()); header(Location: support_archive.php); exit; ? And when I recieive the one email there are no from and reply to in the email client. Plus it is in the subject line!!! What the heck am I doing wrong??? Thanks in advance, ~WILL~ -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Trke php mail grup...
SELAMLAR Trke php mail grubumuza katlmak isteyen arkadalar aadaki mail adresine bo bir mail gndererek ye olabilirler, gelen confirm mesajn hibir ey yazmadan direkt olarak reply ediniz... [EMAIL PROTECTED] veya webden kayt olmak isterseniz http://groups.yahoo.com/group/turkphp/ adresine gelerek giri yapabilirsiniz... SEVGILER -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() and passwords
How do I modify the following to except a password for the SMTP server? [mail function] SMTP = localhost sendmail_from = [EMAIL PROTECTED] Please help!! Thanks in advance! ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() and passwords
I mean the only way is to use existing classes for sending emails via smtp socket or to write your own one. tom On Tue, 9 Mar 2004 03:37:33 -0500 Will [EMAIL PROTECTED] wrote: How do I modify the following to except a password for the SMTP server? [mail function] SMTP = localhost sendmail_from = [EMAIL PROTECTED] Please help!! Thanks in advance! ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- == Tomas Meinlschmidt, SBN3, MCT, MCP, MCP+I, MCSE, NetApp Filer NetCache gPG fp: CB78 76D9 210F 256A ADF4 0B02 BECA D462 66AB 6F56 / $ID: 66AB6F56 GCS d-(?) s: a- C++ ULHISC*$ P+++ L+++$ E--- W+++$ N++(+) !o !K w(---) !O !M V PS+ PE Y+ PGP++ t+@ !5 X? R tv b+ !DI D+ G e+++ h r+++ z+++@ == -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail Headers
You can view the source from an email message with Outlook or Thunderbird, and it will show headers and all that stuff... --- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) [EMAIL PROTECTED] TLFNO. 955036800 ext. 111 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail fifth parameter
Hi, I am no expert on sendmail configuration but my little knowledge tells me sendmail shouldn't change any headers that are passed to it if it is configured properly. joel boonstra wrote: On Sun, Mar 07, 2004 at 09:51:28AM +0600, Raditha Dissanayake wrote: It's an often overlooked fact that you can pass additional headers in the fourth parameter. I do belive you should use \n and not \r\n then your code will look like mail([EMAIL PROTECTED], object, $message, From: [EMAIL PROTECTED] . Reply-To:[EMAIL PROTECTED]. Return-Path: [EMAIL PROTECTED]); As mentioned in another post, the Return-Path header can and usually is overwritten by sendmail when it does the actual sending. In addition to a previous suggestion, one way to reliably set that header is to use phpmailer (http://phpmailer.sourceforge.net/) which has the option of using an smtp server rather than sendmail directly. joel -- Raditha Dissanayake. --- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Function
Hello All, I have a question. I installed PHP on a windows XP machine. When I try to send a form it says: Warning: mail(): sendmail_from not set in php.ini or custom From: header. My header are as follows: ? require (admin/inc/setup.php); $subject = FeedBack From Site; $msg = Senders Name: $_POST[name]\n; $msg .= Senders Email: $_POST[email]\n; $msg .= Message: \r$_POST[message]\n; $mailheader .= From: $_POST[email]\n; $mailheader .= A message has been sent from Domain; mail($recipient, $subject, $msg, $mailheader); require (tmpl/send_form.htm); ? The recipient is in the setup.php file, just to let you know. My sendmail_from is as follows: sendmail_from = [EMAIL PROTECTED] Please help :) ~WILL~ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail fifth parameter
I have to send a email to a server where is very important the Return-Path to match the identity. If I use mail([EMAIL PROTECTED], object, $message,From: [EMAIL PROTECTED]. Reply-To:[EMAIL PROTECTED] .Return-Path: [EMAIL PROTECTED]); I see in the received message that return-path Is not that I want. I try to use the fifth parameter ( [EMAIL PROTECTED]) but I am in safe mode then I see the warning : the fifth parameter is disabled in safe mode. There is a workaround for this problem ? safe_mode = on is impossible for this server ! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail fifth parameter
Enrico Comini wrote: I have to send a email to a server where is very important the Return-Path to match the identity. If I use mail([EMAIL PROTECTED], object, $message,From: [EMAIL PROTECTED]. Reply-To:[EMAIL PROTECTED] .Return-Path: [EMAIL PROTECTED]); I see in the received message that return-path Is not that I want. I try to use the fifth parameter ( [EMAIL PROTECTED]) but I am in safe mode then I see the warning : the fifth parameter is disabled in safe mode. There is a workaround for this problem ? safe_mode = on is impossible for this server ! You need to connect to smtp server (port 25) and send the mail this way. There are classes that will help you, e.g. smtp_mail class from http://phpclasses.org/mimemessage -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail fifth parameter
It's an often overlooked fact that you can pass additional headers in the fourth parameter. I do belive you should use \n and not \r\n then your code will look like mail([EMAIL PROTECTED], object, $message, From: [EMAIL PROTECTED] . Reply-To:[EMAIL PROTECTED]. Return-Path: [EMAIL PROTECTED]); Enrico Comini wrote: I have to send a email to a server where is very important the Return-Path to match the identity. If I use mail([EMAIL PROTECTED], object, $message,From: [EMAIL PROTECTED]. Reply-To:[EMAIL PROTECTED] .Return-Path: [EMAIL PROTECTED]); I see in the received message that return-path Is not that I want. I try to use the fifth parameter ( [EMAIL PROTECTED]) but I am in safe mode then I see the warning : the fifth parameter is disabled in safe mode. There is a workaround for this problem ? safe_mode = on is impossible for this server ! -- Raditha Dissanayake. --- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail fifth parameter
\r\n is good :) J Raditha Dissanayake [EMAIL PROTECTED] wrote: It's an often overlooked fact that you can pass additional headers in the fourth parameter. I do belive you should use \n and not \r\n then your code will look like mail([EMAIL PROTECTED], object, $message, From: [EMAIL PROTECTED] . Reply-To:[EMAIL PROTECTED]. Return-Path: [EMAIL PROTECTED]); Enrico Comini wrote: I have to send a email to a server where is very important the Return-Path to match the identity. If I use mail([EMAIL PROTECTED], object, $message,From: [EMAIL PROTECTED]. Reply-To:[EMAIL PROTECTED] .Return-Path: [EMAIL PROTECTED]); I see in the received message that return-path Is not that I want. I try to use the fifth parameter ( [EMAIL PROTECTED]) but I am in safe mode then I see the warning : the fifth parameter is disabled in safe mode. There is a workaround for this problem ? safe_mode = on is impossible for this server ! -- Raditha Dissanayake. --- http://www.radinks.net/ftp/applet/ An applet that breaks all the rules. Reads, Writes and Deletes files on your hard disk. Uploads what's left to a third party server. -- 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 class to send several e-mails within one smtp connection
Hello, does anybody know a simply mailing function, which does open a smtp connection to an mailserver, sends say 20 mails with different bodies to that mailserver and than closes the smtp connection again? As I understand the standard php mail() function, that it is doing quit that but of course sending only one mail. Thanks very much. Regards, Juergen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail class to send several e-mails within one smtp connection
-Original Message- From: Juergen Mueller pro.vider.de GmbH [mailto:[EMAIL PROTECTED] Sent: Sunday, February 29, 2004 12:02 PM To: [EMAIL PROTECTED] Subject: [PHP] Mail class to send several e-mails within one smtp connection Hello, does anybody know a simply mailing function, which does open a smtp connection to an mailserver, sends say 20 mails with different bodies to that mailserver and than closes the smtp connection again? As I understand the standard php mail() function, that it is doing quit that but of course sending only one mail. Thanks very much. Regards, Juergen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You could always run the mail() command several times in a row and have it include different $strings which contain different information for each unique e-mail. -Casey --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail()
Hi, I have a problem with mail() function. I'm using PHP with Windows 2000 Professional and Internet Information Server 5.0. My php code is: mail([EMAIL PROTECTED], Prueba Envio Email PHP, Linea 1\nLinea 2\nLinea 3); And my browser shows: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in c:\inetpub\wwwroot\projects_php\testing\email\default.php on line 21 Why? Can anybody help me? Thanks! Juan Torres. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail()
At 12:26 16-2-04, you wrote: Hi, I have a problem with mail() function. I'm using PHP with Windows 2000 Professional and Internet Information Server 5.0. My php code is: mail([EMAIL PROTECTED], Prueba Envio Email PHP, Linea 1\nLinea 2\nLinea 3); And my browser shows: Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in I'ld focus on the SMTP server. It probably is configured to prevent abuse by spammers. Spammers like to make fake From: addresses. Contact your Internet Service Provider if the SMTP server is on their machine. Ask them if they can allow PHP mail requests from your site number without this limitation. If you pay for the server, they should allow that. If your own computer is running all day, consider installing your own SMTP server (make sure to limit the IP addresses it accepts or you will be abused by spammers yourself). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail list/outbound email
Looking for suggestions/thoughts/comments about mail list/outbound email/newsletters. I just bought some software to help my wife's clients send outbound email campaigns (opt-in/opt-out) not spam. There have been several issues right off the hop. Can anyone think of components that can be used with php scripts to handle outbound email like those of responsys and other big boys? dan mccullough sr. engineer url: heathermccullough.com http://www.heathermccullough.com/ tf: 866.298.3991 w: 603.444.9808 There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity comes brilliantly disguised as bad news. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Transaction Failed
The message contains Unicode characters and has been sent as a binary attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Transaction Failed
The message contains Unicode characters and has been sent as a binary attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail Transaction Failed
Hi, Tuesday, January 27, 2004, 4:32:46 PM, you wrote: cho The message contains Unicode characters and has been sent as a binary attachment. Be careful this crap is a virus -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail function problem
Hi All, I have a big problem with the mail function in PHP. I have installed PHP 4.3.3. But no email where send With the mail function. If I run this script as root. There Is no problem.. What do I need to change?? Thanks, Rolf
[PHP] mail()
Using php/apache/mysql I am testing an mail script. The script has a .html form which receives the text input and then a .php script to execute the variables in a mail() function. When I publish both files - the .html and .php - to my ISP's server and enter the data and hit submit I receive an e-mail. In my php.ini file I have configured the SMTP to the name of the ISP's email server. However, when testing the same script out locally on Apache Server: I get the form box, enter the data but I do not receive an email. I only use one ISP. Is it possble they have two name servers and that is why I am not receiving an e-mail when testing on Apache Server? Thank you for any help. Best... Tony Ritter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MAIL doesn't work anymore
Shouldn't this work in PHP 4.3.2? ... mail('[EMAIL PROTECTED]', 'Subject', 'Body of email'); This very simple use of the mail command produces an error by Sendmail: dsn=5.6.0, stat=Data format error, which must mean there is a bug in this function. Does anyone know why this won't work anymore and if there is a fix?? I've been trying for two days to get this fixed, but, no luck at all. My setup: RedHat Linux ES 3.0, Apache 2.0.46, PHP 4.3.2, MySQL 3.23.58, and Sendmail 8.12.10. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MAIL doesn't work anymore
Monty wrote: Shouldn't this work in PHP 4.3.2? ... mail('[EMAIL PROTECTED]', 'Subject', 'Body of email'); This very simple use of the mail command produces an error by Sendmail: dsn=5.6.0, stat=Data format error, which must mean there is a bug in this function. Does anyone know why this won't work anymore and if there is a fix?? I've been trying for two days to get this fixed, but, no luck at all. My setup: RedHat Linux ES 3.0, Apache 2.0.46, PHP 4.3.2, MySQL 3.23.58, and Sendmail 8.12.10. Monty - have you tried using the mail command from the command line directly? If you look in your php.ini file, it should say what flags are being used with the mail command, it might be a possicility that the php.ini file is setup wrong in some way. -- Rolf Brusletto rolf[at]emailfeeds[dot]com http://www.emailfeeds.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail question (mime)
Thanks for your replies. Figured it out, just blind. The $headers were written correctly (except for \r\n at end of lines though \n seems to work in this case). The problem was in the call to the boundary, the boundary has to start with -- outside the quoted string definition of the boundary, and end same with -- at the end of the message. -- Bill -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail question (mime)
Greetings all. In an effort to understand more about mime mail with php, I'm writing a little function to send a multipart/alternative encoded mime mail from a browser interface. I know you guys have answered these types of questions many times, but I've googled and research til I'm blue. I'm still somewhat new to php so I apologize. I'm on a shared hosting environment running Apache 1.3.29 (Unix), magic_quotes_gpc = on, path to sendmail = /usr/sbin/sendmail -t -i, smtp is localhost on port 25 (and I don't know much about Unix permissions). My client platform is Mac, my email client is Outlook Express (might as well be testing to the lowest common denominator). I've found lots of php classes on mime mail but have not tried them because I want to understand the code. I can use this code to send plain text email or html email just fine, but not multipart/alternative or mixed. Here's the relevant code. Can someone point out the error of my ways? browser interface: 5 fields (3 input of type=text, 2 input of type=textarea) names: $from $to $subject $text_msg $html_msg On submit, I trim all and stripslashes on the textarea inputs (interesting that magic quotes seems to add slashes to textarea inputs automatically), then set my email headers: $headers =From: {$from}\n; $headers .=Reply-To: {$from}\n; $headers .=Return-Path: {$from}\n; $headers .=Subject: {$subject}\n; $headers .=X-Sender: {$from}\n; $headers .=X-Mailer: PHP\n; $headers .=X-MSMail-Priority: High\n; $headers .=MIME-Version: 1.0\n; $headers .=Content-Type: multipart/alternative; boundary=\--i0o9u8h7g65v\; $message =--i0o9u8h7g65v\n; $message .=Content-Type: text/plain; charset=iso-8859-1\n; $message .=Content-Transfer-Encoding: 7bit\n; $message .=Content-Disposition: inline\n; $message .=$text_msg.\n;//plain text message here $message .=--i0o9u8h7g65v\n; $message .=Content-Type: text/html; charset=iso-8859-1\n; $message .=Content-Transfer-Encoding: 7bit\n; $message .=Content-Disposition: inline\n; $message .=$html_msg.\n;//html message here $message .=--i0o9u8h7g65v; mail($to,$subject,$message,$headers); The email is sent successfully, but with no message in the message body. Looking at the message source I see that all of the headers are set and I see the boundaries and I see both versions of the messages as one would expect. It all looks correct, even as compared to other mime encoded email I receive and read just fine. I've tried many variations on these variables. FYI, if I change the $header = Content-Type: multipart/alternative; ; to $message = Content-Type: ...; then I see the raw code in the message body, but of course that does no good. Same results when message is viewed in a browser based hotmail or yahoo account. I simply do not understand what I don't understand, so I don't know how to ask my question. Is this a coding problem, sendmail, permissions, a server issue??? Thanks for your help. -- Bill -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail question (mime)
Greetings all. (hope this isn't a second post, first try seemed to fail) In an effort to understand more about mime mail, I'm writing a little function to send a multipart/alternative encoded mime mail from a browser interface. I know you guys have answered these types of questions many times, but I've googled and research til I'm blue. I'm still somewhat new to php so I apologize. I'm on a shared hosting environment running Apache 1.3.29 (Unix), magic_quotes_gpc = on, path to sendmail = /usr/sbin/sendmail -t -i, smtp is localhost on port 25 (and I don't know much about Unix permissions). My client platform is Mac, my email client is Outlook Express (might as well be testing to the lowest common denominator). I've found lots of php classes on mime mail but have not tried them because I want to understand the code. I can use this code to send plain text email or html email just fine, but not multipart/alternative or mixed. Here's the relevant code. Can someone point out the error of my ways? browser interface: 5 fields (3 input of type=text, 2 input of type=textarea) names: $from $to $subject $text_msg $html_msg On submit, I trim all and stripslashes on the textarea inputs (interesting that magic quotes seems to add slashes to textarea inputs automatically), then set my email headers: $headers =From: {$from}\n; $headers .=Reply-To: {$from}\n; $headers .=Return-Path: {$from}\n; $headers .=Subject: {$subject}\n; $headers .=X-Sender: {$from}\n; $headers .=X-Mailer: PHP\n; $headers .=X-MSMail-Priority: High\n; $headers .=MIME-Version: 1.0\n; $headers .=Content-Type: multipart/alternative; boundary=\--i0o9u8h7g65v\; $message =--i0o9u8h7g65v\n; $message .=Content-Type: text/plain; charset=iso-8859-1\n; $message .=Content-Transfer-Encoding: 7bit\n; $message .=Content-Disposition: inline\n; $message .=$text_msg.\n;//plain text message here $message .=--i0o9u8h7g65v\n; $message .=Content-Type: text/html; charset=iso-8859-1\n; $message .=Content-Transfer-Encoding: 7bit\n; $message .=Content-Disposition: inline\n; $message .=$html_msg.\n;//html message here $message .=--i0o9u8h7g65v; mail($to,$subject,$message,$headers); The email is sent successfully, but with no message in the message body. Looking at the message source I see that all of the headers are set and I see the boundaries and I see both versions of the messages as one would expect. It all looks correct, even as compared to other mime encoded email I receive and read just fine. I've tried many variations on these variables. FYI, if I change the $header = Content-Type: multipart/alternative; ; to $message = Content-Type: ...; then I see the raw code in the message body, but of course that does no good. Same results when message is viewed in a browser based hotmail or yahoo account. I simply do not understand what I don't understand, so I don't know how to ask my question. Is this a coding problem, sendmail, permissions, a server issue??? Thanks for your help. -- Bill -- -- Bill -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail question (mime)
I see 3 problems with your final output (though there still could be more) 1) Each header has to end in \r\n, \n usually works but it's supposed to be \r\n 2) This: $headers .=Content-Type: multipart/alternative; boundary=\--i0o9u8h7g65v\; should be this: $headers .=Content-Type: multipart/alternative; boundary=\--i0o9u8h7g65v\; or this: $headers .=Content-Type: multipart/alternative; boundary=\--i0o9u8h7g65v\; A header can continue on the next line for readability, but it has to start with whitespace (space or a tab), otherwise it trys to create the boundary as a new header. 3) The final boundary must end in -- as well as start with it so: $message .=--i0o9u8h7g65v; should be $message .=--i0o9u8h7g65v--; Chris -Original Message- From: Bill Green [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 8:19 AM To: [EMAIL PROTECTED] Subject: [PHP] mail question (mime) Greetings all. (hope this isn't a second post, first try seemed to fail) In an effort to understand more about mime mail, I'm writing a little function to send a multipart/alternative encoded mime mail from a browser interface. I know you guys have answered these types of questions many times, but I've googled and research til I'm blue. I'm still somewhat new to php so I apologize. I'm on a shared hosting environment running Apache 1.3.29 (Unix), magic_quotes_gpc = on, path to sendmail = /usr/sbin/sendmail -t -i, smtp is localhost on port 25 (and I don't know much about Unix permissions). My client platform is Mac, my email client is Outlook Express (might as well be testing to the lowest common denominator). I've found lots of php classes on mime mail but have not tried them because I want to understand the code. I can use this code to send plain text email or html email just fine, but not multipart/alternative or mixed. Here's the relevant code. Can someone point out the error of my ways? browser interface: 5 fields (3 input of type=text, 2 input of type=textarea) names: $from $to $subject $text_msg $html_msg On submit, I trim all and stripslashes on the textarea inputs (interesting that magic quotes seems to add slashes to textarea inputs automatically), then set my email headers: $headers =From: {$from}\n; $headers .=Reply-To: {$from}\n; $headers .=Return-Path: {$from}\n; $headers .=Subject: {$subject}\n; $headers .=X-Sender: {$from}\n; $headers .=X-Mailer: PHP\n; $headers .=X-MSMail-Priority: High\n; $headers .=MIME-Version: 1.0\n; $headers .=Content-Type: multipart/alternative; boundary=\--i0o9u8h7g65v\; $message =--i0o9u8h7g65v\n; $message .=Content-Type: text/plain; charset=iso-8859-1\n; $message .=Content-Transfer-Encoding: 7bit\n; $message .=Content-Disposition: inline\n; $message .=$text_msg.\n;//plain text message here $message .=--i0o9u8h7g65v\n; $message .=Content-Type: text/html; charset=iso-8859-1\n; $message .=Content-Transfer-Encoding: 7bit\n; $message .=Content-Disposition: inline\n; $message .=$html_msg.\n;//html message here $message .=--i0o9u8h7g65v; mail($to,$subject,$message,$headers); The email is sent successfully, but with no message in the message body. Looking at the message source I see that all of the headers are set and I see the boundaries and I see both versions of the messages as one would expect. It all looks correct, even as compared to other mime encoded email I receive and read just fine. I've tried many variations on these variables. FYI, if I change the $header = Content-Type: multipart/alternative; ; to $message = Content-Type: ...; then I see the raw code in the message body, but of course that does no good. Same results when message is viewed in a browser based hotmail or yahoo account. I simply do not understand what I don't understand, so I don't know how to ask my question. Is this a coding problem, sendmail, permissions, a server issue??? Thanks for your help. -- Bill -- -- Bill -- -- 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() issue
I have an odd issue with mail(). I was working on a project at my office for some time and we did everything with php and mysql. I stepped away from the project for a bit but when I left all my scripts, such as password retrieval and a few others that used the mail() function were working. Now when you run any PHP script using mail(), the script executes perfectly, however I do not see any activity in my maillog and the mail is never delivered. PHP does not return an error or any warnings. Can anyone give me some pointers on where to start looking to see why PHP and Exim aren't talking with each other anymore? I've been looking since the beginning of the week and I can't find it. Box= SuSE8.2/Apache1.3/Exim 4.2 TIA Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Mail handler?
Dear All Is there a mail function or object that I can use on my PHP sites that does the same as the CDONTS object in ASP? Where can I find some tutorials on this subject? Regards Jacques -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHP Mail handler?
[snip] Is there a mail function or object that I can use on my PHP sites that does the same as the CDONTS object in ASP? Where can I find some tutorials on this subject? [/snip] The manual works fine for most http://www.php.net/mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail -f option for removing nobody@localhost Return-Path
Here is the code I'm using trying to replace [EMAIL PROTECTED] with my email address when I use the PHP mail() function to send a message: $headers=From: Glenn Gasner [EMAIL PROTECTED]\r\n .Reply-To: Glenn Gasner [EMAIL PROTECTED]\r\n .Return-Path: Glenn Gasner [EMAIL PROTECTED]; mail([EMAIL PROTECTED],Website Comment,$comments,$headers,-f [EMAIL PROTECTED]); With all of that the Return-Path is always still [EMAIL PROTECTED], or in my case: Return-Path: [EMAIL PROTECTED] which is the shared server I'm on which doesn't return bounced messages to me. I've tried every variation of spaces, parenthesis and variables that I can think of and I can't get the return path to budge. I included my mail() command in an 'if' statement and it came out as true, so my understanding is that means my host isn't running in safe mode which might deactivate the -f option. Some posts alluded to an apache permission needing to be set, but there were no details and the Apache site didn't easily show what permission I need to request changed so that I can modify the Return-Path in outgoing email. Is there something I'm overlooking, or something I should change, or should I just abandon the mail() command altogether and try to use one of the more cryptic variations mentioned in some posts (someone refered to 'popen' for mailing). Thanks! Glenn Gasner [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP Mail handler?
Hello, On 11/19/2003 11:55 AM, Jacques Roux wrote: Is there a mail function or object that I can use on my PHP sites that does the same as the CDONTS object in ASP? Where can I find some tutorials on this subject? You may want to try this class to do what CDONTS does and more: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail -f option for removing nobody@localhost Return-Path
* Thus wrote Glenn Gasner ([EMAIL PROTECTED]): Here is the code I'm using trying to replace [EMAIL PROTECTED] with my email address when I use the PHP mail() function to send a message: $headers=From: Glenn Gasner [EMAIL PROTECTED]\r\n .Reply-To: Glenn Gasner [EMAIL PROTECTED]\r\n .Return-Path: Glenn Gasner [EMAIL PROTECTED]; mail([EMAIL PROTECTED],Website Comment,$comments,$headers,-f [EMAIL PROTECTED]); Observe the 5th parameter to mail() function http://php.net/mail Curt -- My PHP key is worn out PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() in windows (again!)
Hi, First of all, how can I send a message to this list as the first dealing with a subject, like a question (I guess this is called a thread)? Well, I wanted PHP to send an e-mail for me. I read in the documentation that the mail() functions uses the sendmail aplication. I've also heard this 'sendmail' won't work with windows (Windows rulez!(just to piss those linux guys off!)). There's a user comment in the documentation page recomending this argosoft program, but from what I saw in their site this makes the computer into a mail server, and all I wanna do is have some fun (but not right now), all I wanna do ist a command line program that will take my message and send it to my smtp server. Is it so hard to do? Thanx, Joao Penna Andrade Undergraduate, Mechanical Engineering UNICAMP, Brazil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() in windows (again!)
that the mail() functions uses the sendmail aplication. I've also heard this 'sendmail' won't work with windows (Windows rulez!(just to piss those linux guys off!)). If you were on linux you wouldn't have to send this mail. What you can do is to use your ISP's mail server. (which is most probably running linux :-) ) edit your php.ini file and set that as your smtp server. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail Delivery Acknowledgement
[EMAIL PROTECTED] wrote: Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that are responded to are handled in the order in which they are received. If you need more immediate information or assistance, call us on following telephone numbers +92 3009467711 mv imran /dev/null -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Delivery Acknowledgement
Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that are responded to are handled in the order in which they are received. If you need more immediate information or assistance, call us on following telephone numbers +92 3009467711 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Delivery Acknowledgement
Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that are responded to are handled in the order in which they are received. If you need more immediate information or assistance, call us on following telephone numbers +92 3009467711 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail Delivery Acknowledgement
Thank you for contacting me Your e-mail has been forwarded to the appropriate person Mr. Imran Asghar. We welcome all comments and suggestions. Due to the high volume of e-mails received, not all e-mails are responded to directly. All e-mails that are responded to are handled in the order in which they are received. If you need more immediate information or assistance, call us on following telephone numbers +92 3009467711 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() another example - error
This time your script is ok, the connection to the SMTP server is established, but because the host name of the machine that executes your php script is not a valid host name in the SMTP server's local network, the server refuses to accept your request for security reasons (smtp relaying blocked for external hosts). To avoid this you have (at least) 2 options: - to use the SMTP server of your provider, i.e. SMTP server for which you are a valid local network host. Keep in mind that the SMTP server does not care about the host name you provide in your code ('$senderFrom = [EMAIL PROTECTED];'), but just takes the real host name of machine executing the script. - to find and use an open relay SMTP server, that smells very much to a spamming activity, so I strongly suggest you to don't do that. Boyan -- [EMAIL PROTECTED] wrote: I use this script: ? /** in php.ini - localhost [mail function] SMTP = mail.serbis.com; only win32 sendmail_from = [EMAIL PROTECTED]; */ $msg = this is a test; $senderFrom = [EMAIL PROTECTED]; $receiverTo = [EMAIL PROTECTED]; $subject = test of the mail function; $mailHeaders = From: $senderFrom\n; $mailHeaders .= Reply-to: $senderFrom\n; $mailHeaders .= Message-Id: 16295644\n; mail($receiverTo, $subject, $msg, $mailHeaders); ? I got this error: Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19 thanks, for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail function error - win32
I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host. in my php.ini, I put: [mail function] ; For Win32 only. SMTP = mail.serbis.com I also put [mail function] ; For Win32 only. SMTP = mail.webdevfm.com I also put (the local mail server that I have): [mail function] ; For Win32 only. SMTP = ojpp.myftp.org the errors are the follow: ** First error - When the mailserver (ojpp.myftp.org - localhost) is deactivated Warning: mail(): Failed to connect to mailserver at ojpp.myftp.org port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Warning: mail(): Failed to connect to mailserver at ojpp.myftp.org port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 138 ** Code in line 118 $validar = mail('', $materia, $cuerpo, To: $para\n . From: test $email\n . MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); ** Code in line 138 $validar = mail('', $materia, $cuerpo, To: $para\n . From: Webdevfm $email\n . MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); ** Second error - When the mailserver (mail.webdevfm.com) is actived Warning: mail(): SMTP server response: 503 valid RCPT command must precede DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118 ** Third error - When the mailserver (mail.serbis.com) is actived Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Error enviando correo electrónico a [EMAIL PROTECTED] ** fourth error - When the mailserver (ojpp.myftp.org - localhost) is actived Warning: mail(): SMTP server response: 503 Bad sequence of commands in d:\htdocs\ojpp\ojppresume\contact.php on line 118 --- thanks, for the help.
[PHP] mail function error - win32
I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host. in my php.ini, I put: [mail function] ; For Win32 only. SMTP = mail.serbis.com I also put [mail function] ; For Win32 only. SMTP = mail.webdevfm.com I also put (the local mail server that I have): [mail function] ; For Win32 only. SMTP = ojpp.myftp.org the errors are the follow: ** First error - When the mailserver (ojpp.myftp.org - localhost) is deactivated Warning: mail(): Failed to connect to mailserver at ojpp.myftp.org port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Warning: mail(): Failed to connect to mailserver at ojpp.myftp.org port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 138 ** Code in line 118 $validar = mail('', $materia, $cuerpo, To: $para\n . From: test $email\n . MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); ** Code in line 138 $validar = mail('', $materia, $cuerpo, To: $para\n . From: Webdevfm $email\n . MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); ** Second error - When the mailserver (mail.webdevfm.com) is actived Warning: mail(): SMTP server response: 503 valid RCPT command must precede DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118 ** Third error - When the mailserver (mail.serbis.com) is actived Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Error enviando correo electrónico a [EMAIL PROTECTED] ** fourth error - When the mailserver (ojpp.myftp.org - localhost) is actived Warning: mail(): SMTP server response: 503 Bad sequence of commands in d:\htdocs\ojpp\ojppresume\contact.php on line 118 --- thanks, for the help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] mail function error - win32
When you use the mail function, you must give the first argument. The 'to' is not in the headers Try this, it should work -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : samedi 1 novembre 2003 22:11 À : [EMAIL PROTECTED] Objet : [PHP] mail function error - win32 I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host. in my php.ini, I put: [mail function] ; For Win32 only. SMTP = mail.serbis.com I also put [mail function] ; For Win32 only. SMTP = mail.webdevfm.com I also put (the local mail server that I have): [mail function] ; For Win32 only. SMTP = ojpp.myftp.org the errors are the follow: ** First error - When the mailserver (ojpp.myftp.org - localhost) is deactivated Warning: mail(): Failed to connect to mailserver at ojpp.myftp.org port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Warning: mail(): Failed to connect to mailserver at ojpp.myftp.org port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set() in d:\htdocs\ojpp\ojppresume\contact.php on line 138 ** Code in line 118 $validar = mail('', $materia, $cuerpo, To: $para\n . From: test $email\n . MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); ** Code in line 138 $validar = mail('', $materia, $cuerpo, To: $para\n . From: Webdevfm $email\n . MIME-Version: 1.0\n . Content-type: text/html; charset=iso-8859-1); ** Second error - When the mailserver (mail.webdevfm.com) is actived Warning: mail(): SMTP server response: 503 valid RCPT command must precede DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118 ** Third error - When the mailserver (mail.serbis.com) is actived Warning: mail(): SMTP server response: 503 must have sender and recipient first in d:\htdocs\ojpp\ojppresume\contact.php on line 118 Error enviando correo electrónico a [EMAIL PROTECTED] ** fourth error - When the mailserver (ojpp.myftp.org - localhost) is actived Warning: mail(): SMTP server response: 503 Bad sequence of commands in d:\htdocs\ojpp\ojppresume\contact.php on line 118 --- thanks, for the help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() another example - error
I use this script: ? /** in php.ini - localhost [mail function] SMTP = mail.serbis.com; only win32 sendmail_from = [EMAIL PROTECTED]; */ $msg = this is a test; $senderFrom = [EMAIL PROTECTED]; $receiverTo = [EMAIL PROTECTED]; $subject = test of the mail function; $mailHeaders = From: $senderFrom\n; $mailHeaders .= Reply-to: $senderFrom\n; $mailHeaders .= Message-Id: 16295644\n; mail($receiverTo, $subject, $msg, $mailHeaders); ? I got this error: Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19 thanks, for any help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() another example - error
I use this script: ? /** [mail function] ; For Win32 only. SMTP = ojpp.myftp.org ; For Win32 only. sendmail_from = [EMAIL PROTECTED] */ $msg = this is a test; $senderFrom = [EMAIL PROTECTED]; $receiverTo = [EMAIL PROTECTED]; $subject = test of the mail function; $mailHeaders = From: $senderFrom\n; $mailHeaders .= Reply-to: $senderFrom\n; $mailHeaders .= Message-Id: 16295644\n; mail($receiverTo, $subject, $msg, $mailHeaders); ? I got this error: Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19
[PHP] mail() another example - error
I use this script: ? /** [mail function] ; For Win32 only. SMTP = ojpp.myftp.org ; For Win32 only. sendmail_from = [EMAIL PROTECTED] */ $msg = this is a test; $senderFrom = [EMAIL PROTECTED]; $receiverTo = [EMAIL PROTECTED]; $subject = test of the mail function; $mailHeaders = From: $senderFrom\n; $mailHeaders .= Reply-to: $senderFrom\n; $mailHeaders .= Message-Id: 16295644\n; mail($receiverTo, $subject, $msg, $mailHeaders); ? I got this error: Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail() Function on Cobalt Raq 4
Using a Cobalt Raq 4 w/php 4.3.1. The sendmail_path is : /usr/sbin/sendmail -t -iThis seems to be right. Can't get mail to send. Script works on other servers without fail. PHP Info here: http://www.ncafp.com/cgi-bin/phpInfo.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail() Function on Cobalt Raq 4
Have you checked the mail logs (should be /var/log/mail.log or something similar) you could be getting errors from the mail server rather than the php side. I have had it where I thought that it was php but it turned out be a local relaying error )On 10/22/03 10:16 AM, Peter Graber [EMAIL PROTECTED] wrote: Using a Cobalt Raq 4 w/php 4.3.1. The sendmail_path is : /usr/sbin/sendmail -t -iThis seems to be right. Can't get mail to send. Script works on other servers without fail. PHP Info here: http://www.ncafp.com/cgi-bin/phpInfo.php -- Cheers Mike Morton * * Tel: 905-465-1263 * Email: [EMAIL PROTECTED] * Indeed, it would not be an exaggeration to describe the history of the computer industry for the past decade as a massive effort to keep up with Apple. - Byte Magazine Given infinite time, 100 monkeys could type out the complete works of Shakespeare. Win 98 source code? Eight monkeys, five minutes. -- NullGrey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Chris Hayes wrote: message of the mail. I know how the to put html in the message: $message = ' in stead of print td $gebruikerbooks /td; do $message .= td $gebruikerbooks /td; A little clarification: * Just instead of echoing it directly to the browser, add it to your variable $message. * $message.='bla'; is a shortcut for $message.=$message . 'bla'; * the . is the glue for strings. Thanx for your reaction. But I am not sure if I explained my problem the right way. Let me say it a little bit different: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the message off the mail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Hello, On 10/13/2003 05:02 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the message off the mail. To not have to change your PHP code, you may capture the HTML you want to mail by enclosing your PHP code between a ob_start() and a ob_get_clean() commands, like this: ob_start(); ... your code here: $message=ob_get_clean(); And then use the $message variable to compose an HTML message. Sending an HTML message properly requires that you compose a message according to the MIME standards. Just try this class that makes it easy: http://www.phpclasses.org/mimemessage -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Manuel Lemos wrote: Hello, On 10/13/2003 05:02 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the message off the mail. To not have to change your PHP code, you may capture the HTML you want to mail by enclosing your PHP code between a ob_start() and a ob_get_clean() commands, like this: ob_start(); ... your code here: $message=ob_get_clean(); And then use the $message variable to compose an HTML message. Sending an HTML message properly requires that you compose a message according to the MIME standards. Just try this class that makes it easy: http://www.phpclasses.org/mimemessage thanx a lot! I think this will help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Manuel Lemos wrote: Hello, On 10/13/2003 05:02 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the message off the mail. To not have to change your PHP code, you may capture the HTML you want to mail by enclosing your PHP code between a ob_start() and a ob_get_clean() commands, like this: ob_start(); ... your code here: $message=ob_get_clean(); And then use the $message variable to compose an HTML message. Sending an HTML message properly requires that you compose a message according to the MIME standards. Just try this class that makes it easy: http://www.phpclasses.org/mimemessage thanx a lot! I think this will help. . oops works only with PHP 4... and I ... euh PHP3.. Is there another method to do this before I even think of upgrading? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Onno Kuipers wrote: thanx a lot! I think this will help. . oops works only with PHP 4... and I ... euh PHP3.. Is there another method to do this before I even think of upgrading? You can write your own. But I would upgrade. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Hello, On 10/13/2003 06:13 AM, Onno Kuipers wrote: My server runs PHP and Mysql. Normaly I can put some php in my .php-files wich will create a html file for the clients. (you all know this of course). My question now is: How can I put that html (created with PHP) in the message off the mail. To not have to change your PHP code, you may capture the HTML you want to mail by enclosing your PHP code between a ob_start() and a ob_get_clean() commands, like this: ob_start(); ... your code here: $message=ob_get_clean(); And then use the $message variable to compose an HTML message. Sending an HTML message properly requires that you compose a message according to the MIME standards. Just try this class that makes it easy: http://www.phpclasses.org/mimemessage thanx a lot! I think this will help. . oops works only with PHP 4... and I ... euh PHP3.. Is there another method to do this before I even think of upgrading? No, there is no support for capturing output data in PHP 3. The MIME message class works in PHP 3, but to capture the output in PHP 3 you need to change your code to assign a variable with the output data instead of using output buffering functions. -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() php in message
Hi, is there a way to create a mail (with the mail() function) that contains php in the message. Like: ?php $to = [EMAIL PROTECTED]; $subject = a subject; $message = I WANT TO PUT SOME PHP IN HERE TO CREATE A TABLE IN THE MESSAGE: $columnbooks = mysql_list_fields($dbname,tmp,$mysql_link); $sqlbooks = select isbn,books.title, writer, publisher from tmp,books where tmp.user=books.user; $resultbooks = mysql_db_query($dbname,$sqlbooks); ? table cellpadding=2 cellspacing=2 border=1 style=text-align: left; width: 100%; ?php while ($valuebooks = mysql_fetch_array($resultbooks)) { print tr bgcolor=#ccf504; for($i=0; $i 4; $i++ ) { $gebruikerbooks=$valuebooks[$i]; print td $gebruikerbooks /td; } print /tr; } mysql_free_result($resultbooks); THIS SHOULD BE THE END OF THE MESSAGE HERE I WILL DO THE MAILING mail($to,$subject,$message); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Hallo Onno, am Sonntag, 12. Oktober 2003 um 20:07 hast Du Folgendes gekritzelt: OK Hi, OK is there a way to create a mail (with the mail() function) that contains OK php in the message. OK Like: OK ?php OK $to = [EMAIL PROTECTED]; OK $subject = a subject; OK $message = OK I WANT TO PUT SOME PHP IN HERE TO CREATE A TABLE IN THE MESSAGE: OK $columnbooks = mysql_list_fields($dbname,tmp,$mysql_link); OK $sqlbooks = select isbn,books.title, writer, publisher from tmp,books OK where tmp.user=books.user; OK $resultbooks = mysql_db_query($dbname,$sqlbooks); ? OK table cellpadding=2 cellspacing=2 border=1 style=text-align: left; width: 100%; OK ?php OK while ($valuebooks = mysql_fetch_array($resultbooks)) OK { print tr bgcolor=#ccf504; OK for($i=0; $i 4; $i++ ) OK { OK $gebruikerbooks=$valuebooks[$i]; OK print td $gebruikerbooks /td; OK } OK print /tr; OK } OK mysql_free_result($resultbooks); OK THIS SHOULD BE THE END OF THE MESSAGE OK HERE I WILL DO THE MAILING OK mail($to,$subject,$message); ? You should know that php runs on a server, not on the client machine. So what do you want to do with php-code in a mail? You could put html (generated by php for example), so that the mail-reader can display a table. SvT -- Who is the ennemy? mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
Matthias Wulkow wrote: Hallo Onno, am Sonntag, 12. Oktober 2003 um 20:07 hast Du Folgendes gekritzelt: OK Hi, OK is there a way to create a mail (with the mail() function) that contains OK php in the message. OK Like: OK ?php OK $to = [EMAIL PROTECTED]; OK $subject = a subject; OK $message = OK I WANT TO PUT SOME PHP IN HERE TO CREATE A TABLE IN THE MESSAGE: OK $columnbooks = mysql_list_fields($dbname,tmp,$mysql_link); OK $sqlbooks = select isbn,books.title, writer, publisher from tmp,books OK where tmp.user=books.user; OK $resultbooks = mysql_db_query($dbname,$sqlbooks); ? OK table cellpadding=2 cellspacing=2 border=1 style=text-align: left; width: 100%; OK ?php OK while ($valuebooks = mysql_fetch_array($resultbooks)) OK { print tr bgcolor=#ccf504; OK for($i=0; $i 4; $i++ ) OK { OK $gebruikerbooks=$valuebooks[$i]; OK print td $gebruikerbooks /td; OK } OK print /tr; OK } OK mysql_free_result($resultbooks); OK THIS SHOULD BE THE END OF THE MESSAGE OK HERE I WILL DO THE MAILING OK mail($to,$subject,$message); ? You should know that php runs on a server, not on the client machine. So what do you want to do with php-code in a mail? You could put html (generated by php for example), so that the mail-reader can display a table. That is exactly what I want to do. I've got a mysql database. I want to generate a table with data from the database into the message of the mail. I know how the to put html in the message: $message = ' html body pHere are the birthdays upcoming in August!/p table tr thPerson/ththDay/ththMonth/ththYear/th /tr tr tdJoe/tdtd3rd/tdtdAugust/tdtd1970/td /tr tr tdSally/tdtd17th/tdtdAugust/tdtd1973/td /tr /table /body /html '; but I want to know how to put html generated by php in the message. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() php in message
message of the mail. I know how the to put html in the message: $message = ' in stead of print td $gebruikerbooks /td; do $message .= td $gebruikerbooks /td; A little clarification: * Just instead of echoing it directly to the browser, add it to your variable $message. * $message.='bla'; is a shortcut for $message.=$message . 'bla'; * the . is the glue for strings. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail(): can it reply with quoted text?
I wrote an ultra basic mail interface as a part of my client's customer administration area to handle emails. Basically, the standard email form gets stored in a database, and when they respond to the help request, they fill out the form and PHP emails the message. Now, they want to have the original email appear as a part of their reply. I could use wordwrap() at around 70 characters and have every line appear with the traditional '' to indicate the replied text. It doesn't seem to be a very elegant solution for mail clients that reflow quoted text (not certain how to explain this, but Opera's mail client does it). Is there a way to for mail() to include quoted text like it was actually replying to an actual mail client would? -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() and Sender: field
Hi All I'm having a problem using the mail() function of PHP. It seems to vary between platforms (ie. this problem doesn't not occur on my Win32 development platform, but does on my Linux production server). I'm sending mail using the mail() function and including a From: and Reply-To: header. Usually this is sufficient to ensure that receipients will see that the mail is from the desired address I included in the From: header. However on my Linux server (PHP 4.3.2/Sendmail 8.11.6), something is automatically adding a Sender: field which is populated with the address of the apache user ([EMAIL PROTECTED]) -- so this appears to the e-mail recipient as From: [EMAIL PROTECTED] ON BEHALF OF [the name/address i specified in From] Any idea what is causing this, and how I might be able to disable it? Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail() and Sender: field
On Sunday 28 September 2003 14:26, Adam Whitehead wrote: I'm having a problem using the mail() function of PHP. It seems to vary between platforms (ie. this problem doesn't not occur on my Win32 development platform, but does on my Linux production server). I'm sending mail using the mail() function and including a From: and Reply-To: header. Usually this is sufficient to ensure that receipients will see that the mail is from the desired address I included in the From: header. However on my Linux server (PHP 4.3.2/Sendmail 8.11.6), something is automatically adding a Sender: field which is populated with the address of the apache user ([EMAIL PROTECTED]) -- so this appears to the e-mail recipient as From: [EMAIL PROTECTED] ON BEHALF OF [the name/address i specified in From] Any idea what is causing this, and how I might be able to disable it? manual mail() example 3 -- 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 -- /* The nozzle behind the sprayer tank will be the first one to plug -- The Law of Inverse Visibility */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php