Created
April 18, 2023 08:26
-
-
Save d-cryptic/34fcc371db02f13db801aa9d57102721 to your computer and use it in GitHub Desktop.
Curl send a file to gmail using smtp
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
# generate gmail app password and use that | |
curl --url 'smtps://smtp.gmail.com:465' --ssl-reqd --mail-from 'abc@example.com' --mail-rcpt 'xyz@example.com' --user 'abc@example.com:<password>' -F file='@./index.html' --insecure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment