I am sending emails with emayili, a great package BTW.
I want to send replies to my previous emails.
For example, I send an email. Later, I want to reply to that specific email.
I know that the package has already provided two functions (which I can’t really know the difference between them): inreplyto and references.
These functions require a message ID (msgid
) as their argument to identify the message that they are replying to.
So my question is how to get that message ID? Does emayili return such an ID when sending an email?
My sample code is:
message_content <- envelope(
to = "[email protected]" %>% address(display = "MR. Reciever"),
from = "[email protected]" %>% address(display = "MR. Sender"),
subject = "email_subject",
importance = "high",
priority = "urgent"
) %>%
return_path("[email protected]" %>% address(display = "MR. Sender"))
message_content <- message_content %>%
text("Hello!")
smtp <- gmail(
username = "[email protected]",
password = "**********"
)
smtp(message_content, verbose = F)