Roundcube Community Forum

Release Support => Pending Issues => Topic started by: chimumao on November 04, 2022, 05:41:04 AM

Title: How to send email via php scripts after install roundcubemail?
Post by: chimumao 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!
Title: Re: How to send email via php scripts after install roundcubemail?
Post by: chimumao 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