Skip to content

Commit 1ea0d1c

Browse files
authored
Merge pull request tasmota#673 from barbudor/sendmail
fix angle brackets typo in sendmail
2 parents c57f718 + f5885c2 commit 1ea0d1c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/Scripting-Language.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -657,11 +657,15 @@ Enabling this feature also enables [Tasmota TLS](TLS) as `sendmail` uses SSL.
657657

658658
!!! example
659659
```
660-
sendmail [smtp.gmail.com:465:user:passwd:sender@gmail.com:<rec@gmail.com:alarm] %string%
660+
sendmail [smtp.gmail.com:465:user:passwd:<sender@gmail.com>:<rec@gmail.com>:alarm] %string%
661661
```
662662

663663
Remark:
664-
A number of e-mail servers (such as Gmail) require the receiver's e-mail address to be enclosed by `< ... ` as in example above. Most other e-mail servers also accept this format. While ESP8266 sendmail needs brackets, ESP32 sendmail inserts brackets itself so you should not specify brackets here.
664+
A number of e-mail servers (such as Gmail) require the receiver's e-mail address to be enclosed by angle brackets `< ... >` as in example above. Most other e-mail servers also accept this format. While ESP8266 sendmail needs brackets, ESP32 sendmail inserts brackets itself so you should not specify brackets here.
665+
666+
!!! warning
667+
Don't use your Google account password with GMAIL SMTP server.<br>
668+
You must create an [Application specific password](https://support.google.com/accounts/answer/185833)
665669

666670
The following parameters can be specified during compilation via `#define` directives in `user_config_override.h`:
667671
* `EMAIL_SERVER`
@@ -672,7 +676,7 @@ The following parameters can be specified during compilation via `#define` direc
672676

673677
To use any of these values, pass an `*` as its corresponding argument placeholder.
674678

675-
!!! example "`sendmail [*:*:*:*:*:<rec@gmail.com:theSubject] theMessage` "
679+
!!! example "`sendmail [*:*:*:*:*:<rec@gmail.com>:theSubject] theMessage` "
676680

677681
Instead of passing the `msg` as a string constant, the body of the e-mail message may also be composed using the script `m` _(note lower case)_ section. The specified text in this script section must end with an `#` character. `sendmail` will use the `m` section if `*` is passed as the `msg` parameter. in this >m section you may also specify email attachments.
678682
@/filename specifies a file to be attached (if file system is present)

0 commit comments

Comments
 (0)