Author Topic: How to send email via php scripts after install roundcubemail?  (Read 163 times)

Offline chimumao

  • Newbie
  • *
  • Posts: 2
How to send email via php scripts after install roundcubemail?
« on: November 04, 2022, 05:41:04 AM »
Hello, how to send email via php scripts after install roundcubemail?

I just installed iRedMail and roundcubemail works via UI. When I tried to send emails via php scripts, it seems hard to find the right function and params to use.

I found self::send_mdn($uid, $smtp_error) in sendmdn.php and deliver_message() in rcmail_sendmail.php, but the params seems too complex to mimic.

Is there any example for send email via php scripts?

Thank you!

Offline chimumao

  • Newbie
  • *
  • Posts: 2
Re: How to send email via php scripts after install roundcubemail?
« Reply #1 on: November 05, 2022, 04:05:27 AM »
problem fixed by using phpmailer and modified the /etc/postfix/main.cf by adding new self-signed ssl certificates. Thank you