php-windows Digest 23 Apr 2004 05:01:04 -0000 Issue 2221
Topics (messages 23518 through 23520):
Re: Problems with mail on Windows
23518 by: Gabe
23519 by: Jordi Canals
[PHP-NIX] File upload
23520 by: Ragnar
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Jordi Canals wrote:
Hi all,
I'm having some trouble using mail() on Windows. This is working for me
on some LINUX servers with no problems (sendmail, qmail and exim), but
cannot make it to work on windows.
I'd like to send a message with name and address on the TO field, not
just the address. To get that, I tried that formats:
$to = 'SomeOne Name <[EMAIL PROTECTED]>'
$to = '"SomeOne Name" <[EMAIL PROTECTED]>'
And then I tried to send the message with:
mail($to, $subject, $text);
The received error is:
Warning: mail(): SMTP server response: 501 <SomeOne Name
<[EMAIL PROTECTED]>>: "@" or "." expected after "SomeOne" in
mail.class.php on line 333
Note that the mail() function puts the To field inside <>, and that
makes the SMTP error. If I write just the email address, there is NO
problem for sending (even if there are more than one recipient):
mail('[EMAIL PROTECTED]', $subject, $text); // WORKS
Same with additionals headers CC or BCC with that format: "name" <address>.
As I said, I have it working on Linux with no problems. This problem
only apears on a Windows Server I'm testing. I'm using an SMTP server on
other computer because this Windows does not have it installed and
cannot have it.
My server info:
Windows XP HE
Apache 2.0.49 (Win32)
PHP 4.3.6 (Tested also with 4.3.4)
My PHP.INI:
SMTP = smtp.example.com
[EMAIL PROTECTED]
Any help to solve this issue will be welcome ... I've been searching on
lists and manuals with no success. Hope not have to write my own SMTP
function ...
Regards,
Jordi.
maybe try this in forming your string....
$to = "\"SomeOne Name\" <[EMAIL PROTECTED]>";
--- End Message ---
--- Begin Message ---
Gabe wrote:
Jordi Canals wrote:
Hi all,
I'm having some trouble using mail() on Windows. This is working for
me on some LINUX servers with no problems (sendmail, qmail and exim),
but cannot make it to work on windows.
maybe try this in forming your string....
$to = "\"SomeOne Name\" <[EMAIL PROTECTED]>";
Thanks Gabe, but it looks like it's a bug of the mail layer. Take o look
at: http://bugs.php.net/bug.php?id=28038
Regards,
Jordi.
--- End Message ---
--- Begin Message ---
Hi guys/girls,
I am having some major pain here with a php script handling file uploads.
It's part of an CMS and the file in question takes a PDF, makes a thumbnail
of it and then moves it to it's proper location on the server.
All this works fine with smaller files < ~ 2 MB.
I am having a file that needs to be uploaded to the server though, that is
2.3MB and the script just doesn't handle it.
I have already increased all the PHP.ini setting (i.e. max_file_size,
max_input_time, max_execution_time etc.) but to no avail.
All the setting are well beyond of what the actual process takes, and the
script itself doesn't seem to timeout, it just comes back with:
"Warning: Unable to open 'none' for reading: No such file or directory in
..."
which is pointing to the line where the file is copied from it's temp
location on the server /tmp/ to it's proper folder.
It seems to me, the file (temporary) never actually ends up on the server in
the first place.
As I said above, for smaller files everything works fine.
All this is running on:
Apache, PHP 4.1.2, Linux
The increase for the php.ini variables is only made for one of
the domains hosted on that machine via entries in the virtual host part
of the httpd.conf and I checked with phpinfo() wether the variables that
increased via those setting are actually changing accordingly.
All that looked fine.
Does anyone have an idea what could be going on?
I'd appreciate any help on this, as the client is expecting this to
be fixed ASAP.
cheers,
Ben
--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
--- End Message ---