https://github.com/cycloidio/cy-smtp
smtp test for customers
https://github.com/cycloidio/cy-smtp
Last synced: 4 months ago
JSON representation
smtp test for customers
- Host: GitHub
- URL: https://github.com/cycloidio/cy-smtp
- Owner: cycloidio
- Created: 2024-04-30T07:23:52.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2025-01-06T15:19:28.000Z (over 1 year ago)
- Last Synced: 2025-09-18T04:47:14.902Z (9 months ago)
- Language: Go
- Homepage:
- Size: 8.22 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cy-smtp
This is a small binary to test the connection to a SMTP server.
If all works well, running `cy-smtp` will send to the specified recipient this test email:
```
Hello from cy-smtp!
This is a test message.
```
You can pass all the needed parameters on the command line, in this case check the help of the command, `cy-smtp --help`.
Or the `config.yaml` file to configure the behavior, the parameters in the YAML file are mostly compatible with the ones used by Cycloid.
There are two addition: `email-tls-skip-verify` and `email-addr-to`. If you are using the Cycloid config file these two parameters must be passed on the cmd line or added int the config file.
## Quick start
```
LATEST_RELEASE=$(curl -s https://api.github.com/repos/cycloidio/cy-smtp/releases/latest | jq -r '.tag_name')
wget https://github.com/cycloidio/cy-smtp/releases/download/$LATEST_RELEASE/cy-smtp-$LATEST_RELEASE-linux-amd64.tar.gz
tar xf cy-smtp-v*-linux-amd64.tar.gz
export SMTP_TO=your@email.com
export SMTP_FROM=$(grep email-addr-from /opt/config.yml | sed 's@"@@g;s@<@@g;s@>@@g' | sed -E 's/.* ([^ ]+@[^ ]+)/\1/')
./cy-smtp --config-file /opt/config.yml -f $SMTP_FROM -t $SMTP_TO
```