Re: Is there a difference in this?
| From: | Leif K-Brooks | Date: | Thu, 03 Oct 2002 18:36:09 +0000 |
| Subject: | Re: Is there a difference in this? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-118777@lists.php.net to get a copy of this message | ||
Try echoing those vars in the loop to see if their values are correct...
Roberto Ramírez wrote:
I dont get the difference between this two instructions... mail("mailto@mailto.com", "Subject", "Message") or die("It suck"); mail($mailto,$subject,$content) or die("It suck"); Im just getting a server error on the second instruction... I've checked the vars with the is_string() function and all are strings... Ive used this mail function many times... and it already worked in the script...but suddenly it didnt work. Im thinking about the smtp server, but i dont understand why the first instruction is sent by the server and when i use the second, i get a server error. I dont get it!!! why is that #"$%&% server error!!! Note: I cant chage the second instruction's vars to simple text, because its inside a for loop. Using: Apache/PHP 4.2.1 in Win2k The SMTP is a Unix Service in another Server. Any help would be appreciated...im gonna get bald if i stay like this... Roberto Ramírez..