<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — php8 and emailing PSA]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9889&amp;type=atom" />
	<updated>2022-12-20T11:23:43Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9889</id>
		<entry>
			<title type="html"><![CDATA[Re: php8 and emailing PSA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41868#p41868" />
			<content type="html"><![CDATA[<p>I found a solution. Check this post:</p><p>https://frontaccounting.com/punbb/viewtopic.php?id=9899</p>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2022-12-20T11:23:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41868#p41868</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[php8 and emailing PSA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41211#p41211" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[bobloblian]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19664</uri>
			</author>
			<updated>2022-06-24T23:17:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41211#p41211</id>
		</entry>
</feed>
