8
8
[ Go Report Card ] : https://goreportcard.com/report/github.com/KostyaEsmukov/smtp_to_telegram
9
9
[ License ] : https://github.com/KostyaEsmukov/smtp_to_telegram/blob/master/LICENSE
10
10
11
- ` smtp_to_telegram ` is a small program which listens for SMTP and sends
11
+ ` smtp_to_telegram ` is a simple program that listens for SMTP and forwards
12
12
all incoming Email messages to Telegram.
13
13
14
- Say you have a software which can send Email notifications via SMTP.
15
- You may use ` smtp_to_telegram ` as an SMTP server so
14
+ Say you have a software that can send Email notifications via SMTP.
15
+ You can use ` smtp_to_telegram ` as an SMTP server so
16
16
the notification mail would be sent to the chosen Telegram chats.
17
17
18
18
## Getting started
19
19
20
20
1 . Create a new Telegram bot: https://core.telegram.org/bots#creating-a-new-bot .
21
- 2 . Open that bot account in the Telegram account which should receive
21
+ 2 . Open that bot account in the Telegram account that should receive
22
22
the messages, press ` /start ` .
23
23
3 . Retrieve a chat id with ` curl https://api.telegram.org/bot<BOT_TOKEN>/getUpdates ` .
24
- 4 . Repeat steps 2 and 3 for each Telegram account which should receive the messages.
24
+ 4 . Repeat steps 2 and 3 for each Telegram account that should receive the messages.
25
25
5 . Start a docker container:
26
26
27
27
```
@@ -33,7 +33,7 @@ docker run \
33
33
```
34
34
35
35
Assuming that your Email-sending software is running in docker as well,
36
- you may use ` smtp_to_telegram:2525 ` as the target SMTP address.
36
+ you can use ` smtp_to_telegram:2525 ` as the target SMTP address.
37
37
No TLS or authentication is required.
38
38
39
39
The default Telegram message format is:
@@ -42,7 +42,7 @@ The default Telegram message format is:
42
42
From: {from}\\nTo: {to}\\nSubject: {subject}\\n\\n{body}\\n\\n{attachments_details}
43
43
```
44
44
45
- A custom format might be specified as well:
45
+ A custom format can be specified as well:
46
46
47
47
```
48
48
docker run \
0 commit comments