Sir, I installed osticket 1.17.3 on debian 11 with php8.1, nginx, and using local exim to sendout email. I tried to create ticket via sending a email to support@mydomain, then I got a New Ticket Alert email, as this:
Date: Sun, 16 Apr 2023 14:17:45 +0000
Message-ID: <BYDcR6V-gwuQX-AAAAAAIAAAACAAAATXEmTeBm-support@mydomain>
Return-Path: <support@mydomain>
In-Reply-To: tencent_7CC908AE4210F8311E862DE05D428EC42809@qq.com
References: tencent_7CC908AE4210F8311E862DE05D428EC42809@qq.com
X-Mailer: =?UTF-8?Q?osTicket=20Mailer?=
X-Auto-Response-Suppress: =?UTF-8?Q?OOF=2C=20AutoReply?=
Auto-Submitted: =?UTF-8?Q?auto-generated?=
From: =?utf-8?Q?Support?= <support@mydomain>
MIME-Version: 1.0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: base64
Message-Id: <E1po3CL-004D7D-Jx@iZj6ca6aiplsaeh7u4c1g7Z>
From: support@mydomain
LS0gcmVwbHkgYWJvdmUgdGhpcyBsaW5lIC0tCgoKSGkgQWRtaW4sIE5ldyB0aWNrZXQgIzgw
Mjk4MSBjcmVhdGVkIAogCiBGcm9tOiAg5Lic5bGxICAgRGVwYXJ0bWVudDogIFN1cHBvcnQg
ICAgIAog6IO95ZCm5ZGK6K+J5LiA5LiL77yfCiBUbyB2aWV3IG9yIHJlc3BvbmQgdG8gdGhl
IHRpY2tldCwgcGxlYXNlIGxvZ2luIHRvIHRoZSBzdXBwb3J0IHRpY2tldCBzeXN0ZW0KWW91
ciBmcmllbmRseSBDdXN0b21lciBTdXBwb3J0IFN5c3RlbQpSZWYtTWlkOiBCWURjUjZWLWd3
dVFYLUFBQUFBQUlBQUFBQ0FBQUFUWEVtVGVCbS1jc0BnZC5hbnF1bi5vcmcK
After search forum, Kevin adviced to use smtp instead of phpmail, so I enabled outgoing smtp using hostname 172.0.0.1 and port 25, it works. For example,
Date: Tue, 18 Apr 2023 04:04:25 +0000
Message-ID: <BYDcR6V-pQeap-AAAAAAAAAAAAAAAAPw10nV5Z-noreply@mydomain>
From: =?utf-8?Q?noreply?= <noreply@mydomain>
Subject: =?UTF-8?Q?osTicket=20test=20email?=
X-Mailer: =?UTF-8?Q?osTicket=20Mailer?=
To: dongshan3@gotdomain
MIME-Version: 1.0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: base64
aGksIHRlc3Qgb25seS4gdGhhbmtzLgpSZWYtTWlkOiBCWURjUjZWLXBRZWFwLUFBQUFBQUFB
QUFBQUFBQUFQdzEwblY1Wi1ub3JlcGx5QGdkLmFucXVuLm9yZwo=
Does it meant that php mail() is not working, but send out email using laminas-mail is okay?
But I tried to do a example test, email body is read-able.
<?phpmail("someone@example.com", "This is the subject", "This is the body");?>
To: dongshan3@gotdomain
Subject: This is the subject
Message-Id: <E1poaxp-004K1e-8X@iZj6ca6aiplsaeh7u4c1g7Z>
From: www-data <www-data@mydomain>
Date: Tue, 18 Apr 2023 10:21:01 +0800
This is the body
Is it possible using "Content-Transfer-Encoding: quoted-printable" or other instead of "Content-Transfer-Encoding: base64" when disalbe rich text and attachment?