Skip to content

Commit

Permalink
Merge pull request #64 from duocang/modulization
Browse files Browse the repository at this point in the history
email configure hide
  • Loading branch information
duocang authored Dec 11, 2023
2 parents 3fd3efe + c2ee8e4 commit a5b6c19
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/utils/send_mail.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ SendResultMail <- function(recipient = NULL, result_link = NULL) {
email_credential <- readLines("data/email_credential.txt")
EMAIL_USERNAME <- email_credential[1]
EMAIL_PASSWORD <- email_credential[2]
EMAIL_ADDRESS <- email_credential[3]
EMAIL_SERVER <- email_credential[4]
EMAIL_PORT <- email_credential[5]

sender <- "[email protected]"
sender <- EMAIL_ADDRESS

subject <- "PMET result is ready!"
body <- paste(
Expand All @@ -58,8 +61,8 @@ SendResultMail <- function(recipient = NULL, result_link = NULL) {
)

smtp <- server(
host = "v095996.kasserver.com",
port = 587,
host = EMAIL_SERVER,
port = EMAIL_PORT,
username = EMAIL_USERNAME,
password = EMAIL_PASSWORD,
use_ssl = TRUE
Expand Down

0 comments on commit a5b6c19

Please sign in to comment.