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
package mongodbdemo.config; | |
import java.util.Locale; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.ComponentScan; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.support.ReloadableResourceBundleMessageSource; |
- Create your public key
- pub_key=encrypt.encrypt(pass_word)
- save pub_key to the file gmail.pub
- Replace 'sample@gmail.com' in mail.py with your own gmail address
- Run send_mail.py, here you have two choices:
$./send_mail.py
then type your password$ echo "your_password" | ./send_mail.py
for Unix-like system.
- Download as zip and extract