# NOT RUN {
# Create a credentials file to
# send via Gmail (this will be named
# `.bls_smtp_gmail_com`)
create_email_creds_file(
user = "username@gmail.com",
password = "*************",
provider = "gmail",
sender = "Sender Name")
# Send oneself a test message to
# test these new SMTP settings
send_email_out(
message = prepare_test_message(),
sender = "Sender Name",
subject = "test 2",
from = "username@gmail.com",
to = "username@gmail.com",
creds_file = ".bls_smtp_gmail_com")
# }
Run the code above in your browser using DataLab