Thanks for that information. I was suspecting that I needed something else, but I didn't know what. I found the QSECO.FR repositories and installed msmtp and got it working.
In that vein, is there a list of repositories that can be added to yum for the IBMi open source? I currently have:
On 1/6/21, 12:19 PM, "OpenSource on behalf of Calvin Buckley" <opensource-bounces@xxxxxxxxxxxxxxxxxx on behalf of calvin@xxxxxxxxxx> wrote:
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
The mail() function in PHP needs a program that implements sendmail,
since it delegates the actual mail sending part to it. I assume you'd
just want SMTP, then msmtp provides a sendmail implementation that
works with PHP without being an entire mail server in of itself. I
think others might have packaged things like Dovecot if that's not
enough. You can grab them from repositories like QSECOFR. They need
configuration so they know where to send mail.
Shameless self-promotion: I work at Seiden Group and we offer a
commercially-supported version of community PHP. Among the things it
includes, there's a sendmail program (msmtp) packaged plus
documentation and expert guidance on how to use it.
On Wed, 2021-01-06 at 15:36 +0000, Hopkins, Matt wrote:
> Good morning….
> I have the open source PHP installed on my development box and have
> successfully implemented SimpleSamlPhp that gets me logged into a
> clients web portal. I am trying to add some error handling that will
> send an email when something goes wrong. I have in my php.ini file
> the SMTP, sendmail_from, and smtp_port set. Everything seems to work
> fine, except I don’t get the email. I get an entry in the email log
> that an email was sent, but in the error log I get:
> sh: -t: not found
> I have searched the web but nothing specific to the IBMi comes up.
> The one thing that seems to come up most for other platforms is to
> add a sendmail_path entry in the php.ini file. I have searched for a
> file called sendmail in the /QOpenSys area but none was found, so I
> don’t know what to put in the sendmail_path setting.
> Does anyone have an idea on what I need to do to fix it?
> Matt Hopkins
This is the IBMi Open Source Roundtable (OpenSource) mailing list
To post a message email: OpenSource@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: OpenSource-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
Help support midrange.com by shopping at amazon.com with our affiliate
As an Amazon Associate we earn from qualifying purchases.