<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — php8 and emailing PSA]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=9889</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9889&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in php8 and emailing PSA.]]></description>
		<lastBuildDate>Tue, 20 Dec 2022 11:23:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: php8 and emailing PSA]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41868#p41868</link>
			<description><![CDATA[<p>I found a solution. Check this post:</p><p>https://frontaccounting.com/punbb/viewtopic.php?id=9899</p>]]></description>
			<author><![CDATA[null@example.com (seahawk)]]></author>
			<pubDate>Tue, 20 Dec 2022 11:23:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41868#p41868</guid>
		</item>
		<item>
			<title><![CDATA[php8 and emailing PSA]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41211#p41211</link>
			<description><![CDATA[<p>Hi Folks,</p><p>This week I upgraded my debian server so that now it has php8.1.&nbsp; Today I was going to do bookkeeping, but when I tried to email an invoice to a gmail address, I got a bounce back like this one:</p><p>Remote host said: 550-5.7.1 [69.60.111.174] Messages with multiple addresses in From: header are<br />550 5.7.1 not accepted. bs14-20020a05620a470e00b006a6c64ef202si3081371qkb.698 - gsmtp</p><p>So I instead ended up spending most of my afternoon tracking down the solution to this problem.&nbsp; As far as I can tell, this bounce only comes from gmail, I wasn&#039;t able to reproduce this issue with any microsoft-hosted accounts, or with any other email servers I sent test messages to.</p><p>It appears that php8(.1) has changed the way it handles line feeds, which is the source of the problem.&nbsp; The fix, or at least the one that worked for me, was to modify the following line in my php.ini file thusly:</p><p>sendmail_path =&nbsp; &quot;/usr/bin/dos2unix -u|/usr/sbin/sendmail -t -i&quot;</p><p>And of course make sure you have dos2unix installed <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>Hopefully this saves someone some time.</p><p>After traversing many dead-end rabbit holes, the answer was found here:</p><p>https://github.com/php/php-src/issues/8086</p><p>Many thanks to hansherlighed for the insight and solution.</p>]]></description>
			<author><![CDATA[null@example.com (bobloblian)]]></author>
			<pubDate>Fri, 24 Jun 2022 23:17:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41211#p41211</guid>
		</item>
	</channel>
</rss>
