Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73437 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77027 invoked from network); 26 Mar 2014 00:01:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Mar 2014 00:01:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 209.85.213.47 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 209.85.213.47 mail-yh0-f47.google.com Received: from [209.85.213.47] ([209.85.213.47:40818] helo=mail-yh0-f47.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/C0-07356-8C812335 for ; Tue, 25 Mar 2014 19:01:13 -0500 Received: by mail-yh0-f47.google.com with SMTP id 29so1378997yhl.34 for ; Tue, 25 Mar 2014 17:01:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=UuGU3Is+Q2wFEiEMZQvETJdhDiRNZLLthWHTgxYeSHI=; b=EyQUTQVLItjx2Kcs12KoHbOSxuLUK7/Fhbb+Dps1cbE4jGYWs1Dj5Z+QpJP+Y2PfKg Z4riUtNt5VQ+5EbW+VsfaHVi+JeaHeetbKmUuYchRUIA3l74eoCfSu075z99v7XfUpQ+ a2lwQvmpmuNBqGPEns2aFe+aRiCOb9kuOys53Hz9kpmCjwCWOY9Su9GZ9no9Eo/wlvjk 2JCSqoF08WwGMRMnOeeSGJK0nVk1wJKbECXimqV2Dq082NprjiVuouRtxlvaps0OMw+8 2q5dVcoohrC2Jy/HfeZ4QsKPpp3crF//oDNEIZm8XjEOGMC3T8zekpbovCYfJTzNXQc2 VCQQ== X-Gm-Message-State: ALoCoQkVYN58dVak9cU51LdYsT9DyRiJoLPRMwQEGV0f2g7oo0dQrgHSj60HUokFAI/GnZOoMMpJ X-Received: by 10.236.35.10 with SMTP id t10mr37275768yha.11.1395792069938; Tue, 25 Mar 2014 17:01:09 -0700 (PDT) Received: from [192.168.200.30] (c-50-131-44-225.hsd1.ca.comcast.net. [50.131.44.225]) by mx.google.com with ESMTPSA id u5sm14840254yhg.25.2014.03.25.17.01.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Mar 2014 17:01:08 -0700 (PDT) Message-ID: <533218C1.6010901@lerdorf.com> Date: Tue, 25 Mar 2014 17:01:05 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Gary Mort , "internals@lists.php.net" References: <5330E319.5060302@gmail.com> <5330F2B2.1030201@sugarcrm.com> <5331C238.6050409@gmail.com> <1395780660.9365.606.camel@guybrush> <53321455.7010907@gmail.com> In-Reply-To: <53321455.7010907@gmail.com> X-Enigmail-Version: 1.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="soTlCssBNX8xSb4gcQKHeJCrQNjcSWdP1" Subject: Re: [PHP-DEV] Proposal: Mail Handling, feedback requested From: rasmus@lerdorf.com (Rasmus Lerdorf) --soTlCssBNX8xSb4gcQKHeJCrQNjcSWdP1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 3/25/14, 4:42 PM, Gary Mort wrote: > At the moment the mail() function is almost useless because it cannot b= e > assumed work - on windows it is likely to generate an error. On Linux > it depends on if sendmail/postfix/etc are configured. Make it a > handler with a sane default setting and then it can be trusted. That's a pretty big leap there. In order combat spam, many places have pretty tight restrictions on who and what can send mail. Outbound port 25 is often blocked, for example, and the only way to send an email is through a local smarthost MTA relay. And how exactly you need to connect to that relay will vary from one environment to another. I don't see how we can provide a default stream handler that "can be trusted" since it needs the same level of local configuration attention as the current mail() function. -Rasmus --soTlCssBNX8xSb4gcQKHeJCrQNjcSWdP1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) Comment: GPGTools - https://gpgtools.org iEYEARECAAYFAlMyGMIACgkQlxayKTuqOuB3PQCgiUrK85UZyV8nFQgqMGacFMFg NsMAn3ws/oyl6l9v6ZH1VPXmGtXZTA+K =NWkQ -----END PGP SIGNATURE----- --soTlCssBNX8xSb4gcQKHeJCrQNjcSWdP1--