Skip to content

Commit 8cde55f

Browse files
authored
Update Scripting-Language.md
I propose to change the example and ad a comment to the sendmail section. I found the example not working giving me "Wrong Parameter" status when using smtp.gemail.com. My own e-mail server (on Synology) accepted this format Further investigations I found that smtp.gmail,com will need the reciever adres to be between <>. Most other servers accept this format also. Some servers (not gmail!) accept also a friendly name in the receiver adress format: FriendlyName<rec@somemail.com> but I think that this extra comment is not needed. > [!EXAMPLE] ``` sendmail [smtp.gmail.com:465:user:passwd:sender@gmail.com:<rec@gmail.com>:alarm] %string% ``` Note: A number of e-mail servers (like gmail) require the receiver address to be between <> as in above example. Most other e-mail servers accept this format also.
1 parent dd1cff6 commit 8cde55f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Scripting-Language.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ Enabling this feature also enables [Tasmota TLS](TLS) as `sendmail` uses SSL.
373373
374374
> [!EXAMPLE]
375375
```
376-
sendmail [smtp.gmail.com:465:user:passwd:sender@gmail.com:rec@gmail.com:alarm] %string%
376+
sendmail [smtp.gmail.com:465:user:passwd:sender@gmail.com:<rec@gmail.com>:alarm] %string%
377377
```
378+
Remark:
379+
A number of e-mail servers (like gmail) require the receiver address to be between <> as in above example. Most other e-mail servers accept this format also.
378380
379381
The following parameters can be specified during compilation via `#define` directives in `user_config_override.h`:
380382
* `EMAIL_SERVER`

0 commit comments

Comments
 (0)