I got a strange behavior. I am using xampp installed on Win7 and PHPMailer class. When I run a simple .php script to send a mail from the browser, all goes well but if I run the same script using command prompt with php sufix (c:..... php c:\xampp\htdocs......script.php) i got the following error message "Helo command rejected: need fully-qualified hostname" Any ideea why?
I can see in ECHLO that when run from browser i got the right server address (my hostname) but when i access the script from command promt i got as a host name the machine name. Can this be changed or set-up to run like from the browser? I guess this is the issue, the hostname.
Thank you