-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Sending e-mails | ||
To be able to use the `mail()` function in PHP you need to install a MTA (Mail Transfer Agent) in the container. | ||
|
||
The most simple approach is to install `ssmtp`. | ||
|
||
The `ssmtp.conf` file needs to be created based on the [documentation online](https://wiki.archlinux.org/title/SSMTP). | ||
|
||
```Dockerfile | ||
FROM trafex/php-nginx:latest | ||
|
||
# Install ssmtp | ||
RUN apk add --no-cache ssmtp | ||
|
||
# Add configuration | ||
COPY ssmtp.conf /etc/ssmtp/ssmtp.conf | ||
``` |