John Davidson

php - maildev not catching sendmail

0 comments
Message:


I have an Ubuntu with sendmail and maildev installed.
I'm running maildev :


$ maildev
MailDev webapp running at http://0.0.0.0:1080
MailDev SMTP Server running at 0.0.0.0:1025

I'm using PHP to send mail :


mail('[email protected]','test Mail ' . __FILE__,'test','From:me@my_domain.com');

with php.ini :


[mail function]
SMTP = localhost
smtp_port = 1025

However, the mail is not catched by maildev, sendmail is sending it and I got it on my real mail "[email protected]" (it does not appear on http://0.0.0.0:1080)


Any idea why?



My Answer:
protected]', 'Subject', 'Message');__But maildev is not catching the emails sent by PHP. How can I fix this issue?

Rate this post

5 of 5 based on 8203 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us