#29933 [Opn->Bgs]: Certain subject Line characters cause mail() to fail

From: Date: Thu, 02 Sep 2004 06:14:49 +0000
Subject: #29933 [Opn->Bgs]: Certain subject Line characters cause mail() to fail
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65610@lists.php.net to get a copy of this message
ID: 29933 Updated by: derick@php.net Reported By: b dot parish at arts dot ac dot uk -Status: Open +Status: Bogus Bug Type: Mail related Operating System: Windows 2000 SP 4 PHP Version: 4.3.8 New Comment: As PHP doesn't mangle addresses anyway, I don't believe this can't be a bug in PHP and such I'm marking it as bogus. Of your little investigation brings any new evidence, feel free to reopen. Previous Comments: ------------------------------------------------------------------------ [2004-09-01 19:11:40] b dot parish at arts dot ac dot uk I am investigating the possibility that it is a problem with our mail relay software. The problem can be replicated using a standard email client and therefore it is very unlikely to be PHP related. I will report back once we have done more diagnostics. ------------------------------------------------------------------------ [2004-09-01 18:50:49] b dot parish at arts dot ac dot uk Description: ------------ The mail function cannot send the email has certain characters. For instance the following will not work $subject = "Joe bloggs edited the Personnel Record of Joe bloggs"; If I strip out the 'd's, it does work: $subject = "Joe bloggs edite the Personnel Recor of Joe bloggs"; mail("j.bloggs@arts.ac.uk", $subject, "test", ""); My php.ini has the following values: [mail function] ; For Win32 only. SMTP = mail.arts.ac.uk ; For Win32 only. sendmail_from = j.bloggs@arts.ac.uk The problem also occurs on Linux running PHP Version 4.3.2 Looking in /var/log/maillog: Sep 1 17:41:57 www-b sendmail[27241]: i81GfvD27241: from=nobody, size=92, class=0, nrcpts=1, msgid=<200409011641.i81GfvD27241@www-b.linst.ac.uk>, relay=nobody@localhost Sep 1 17:41:57 www-b sendmail[27244]: i81GfvD27241: to=j.bloggs@arts.ac.uk, ctladdr=nobody (99/99), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30092, relay=mail.linst.ac.uk [195.195.78.11], dsn=2.0.0, stat=Sent (OK id=1C2YBJ-0002Nd-00) Reproduce code: --------------- $subject = "Joe bloggs edited the Personnel Record of Joe bloggs"; mail("j.bloggs@arts.ac.uk", $subject, "test", ""); Expected result: ---------------- An email is sent with: to/from: j.bloggs@arts.ac.uk subject: 'Joe bloggs edited the Personnel Record of Joe bloggs' body: 'test' Actual result: -------------- No email is sent at all. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29933&edit=1

« previous php.bugs (#65610) next »