1

Topic: Sending mails using PHP scripts

What is the best way to send email from php scripts in iredmail setup.


I have a virtual domain hosted on my iredmail server. This domain is only in apache and not in POSTFIX.

On this website I have a contact form which need to send an email to some domain

What is the best way? and I see following two files .. when they are used?

/usr/sbin/sendmail
/usr/sbin/sendmail.postfix

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Sending mails using PHP scripts

Normally, you should use php smtp module instead of calling command line tool directly.