datawookie / emayili

An R package for sending email messages.
https://datawookie.github.io/emayili/
179 stars 27 forks source link

[FEAT]: store SMTP setting in local file #132

Closed selesnow closed 2 years ago

selesnow commented 2 years ago

Description

Hi,

in README examples i was find:

smtp <- server(
  host = "smtp.gmail.com",
  port = 465,
  username = "bob@gmail.com",
  password = "bd40ef6d4a9413de9c1318a65cbae5d7"
)
smtp(email, verbose = TRUE)

But add and stored password in code is bad practice. Could you show example how stored SMTP settings in local file?

You can add a mechanism to store and read SMTP settings from a local file, if it exists.

datawookie commented 2 years ago

Thanks for the suggestion, @selesnow. Fixed in 4eb3009cea9e24f9f8bfa1a49382ff1becdd0b81.