Skip to content

Commit c918024

Browse files
committed
Add mailpit.ini to php container
1 parent 0207576 commit c918024

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

docker-compose.shared.yml.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ services:
22
php:
33
volumes:
44
- ../:/workspace:cached
5+
- ./magento2-devcontainer/mailpit/mailpit.ini.sample:/usr/local/etc/php/conf.d/mailpit.ini:ro
56
working_dir: /workspace
67

78
nginx:

mailpit/mailpit.ini.sample

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
2+
; https://php.net/sendmail-path
3+
sendmail_path="/usr/local/bin/mailpit sendmail -t --smtp-addr mailpit:1025"
4+
5+
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
6+
mail.add_x_header = On
7+
8+
; Use mixed LF and CRLF line separators to keep compatibility with some
9+
; RFC 2822 non conformant MTA.
10+
mail.mixed_lf_and_crlf = Off

0 commit comments

Comments
 (0)