-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying multiple attachments duplicates files... #9
Comments
@peter-bastian Thank you for issue. I notice that is bug about content_id and fixed with 3a335fa. plz try. |
Not sure what you may be planning, but an alternative and more compact syntax would be something like this, if you can code it this way: mail() %>% |
Oh, I undersrand.
Just now, you can and more attachs like this.
mail() %>%
***@***.***") %>%
***@***.***") %>%
subject("See attached files...") %>%
body("Please find attached the files you requested") %>%
attachments("File1.docx") %>%
attachments("file2.txt") %>%
send()
2021년 4월 30일 (금) 오후 10:02, peter-bastian ***@***.***>님이 작성:
… Not sure what you may be planning, but an alternative and more compact
syntax would be something like this, if you can code it this way:
mail() %>%
***@***.***") %>%
***@***.***") %>%
subject("See attached files...") %>%
body("Please find attached the files you requested") %>%
attachments("File1.docx", "File2.xlsx", "File3.pptx") %>%
send()
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPETOZS4AQ6QDS4VA6SGCLTLKS7PANCNFSM432VWY2A>
.
|
Thank you very much for the quick fix...I can confirm that this syntax works now... I have found another bug that I will report in a separate issue. |
@peter-bastian Thank you. Plz help me :) |
@all-contributors please add @peter-bastian for bug |
I've put up a pull request to add @peter-bastian! 🎉 |
@all-contributors please add @peter-bastian for bug |
I've put up a pull request to add @peter-bastian! 🎉 |
I like what your sendgridr package does and very easily allows me to send mail via sendgridr. However, it appears that attachments() has a bug when I attempt to send multiple attachments.
For example, this works as expected, and I get one file in my email:
mail() %>%
from("someone@somewhere.com") %>%
to("me@gmail.com") %>%
subject("See attached files...") %>%
body("Please find attached the files you requested") %>%
attachments("File1.docx") %>%
send()
However, if I want to send multiple attachments, I use this:
mail() %>%
from("someone@somewhere.com") %>%
to("me@gmail.com") %>%
subject("See attached files...") %>%
body("Please find attached the files you requested") %>%
attachments("File1.docx") %>%
attachments("File2.xlsx") %>%
attachments("File3.pptx") %>%
send()
It does send the email, but I get two copies of each attachment.
The text was updated successfully, but these errors were encountered: