Learn R Programming

blastula (version 0.2.1)

prepare_test_message: Prepare a email test message object

Description

Create an email test message object, which is helpful for sending a test message with the send_email_out() function.

Usage

prepare_test_message()

Arguments

Examples

Run this code
# 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