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?



Re: Sending mails using PHP scripts

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