Skip to content
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

send mail body as actual body instead of inline attachment #75

Closed
wants to merge 2 commits into from

Conversation

salim-b
Copy link
Contributor

@salim-b salim-b commented Oct 3, 2019

and rely on mailsend-go's auto-detection of the MIME type

This fixes #55

and rely on mailsend-go's auto-detection of the MIME type
@rich-iannone
Copy link
Member

Thanks for making this PR. The reason for my hesitance before was due to some earlier problems with supplying a long string directly to body. Also, echoing the command line input via echo = TRUE will produce a huge string (which could be truncated, just below https://github.com/rich-iannone/blastula/blob/master/R/smtp_send.R#L269).

With this change, were you able to successfully send test emails that looked as expected?

@salim-b
Copy link
Contributor Author

salim-b commented Oct 4, 2019

With this change, were you able to successfully send test emails that looked as expected?

Yes :)

(I'm using mailsend-go v1.04 on Ubuntu 16.04)

(...) some earlier problems with supplying a long string directly to body. Also, echoing the command line input via echo = TRUE will produce a huge string (which could be truncated (...)

Well, I pass the message to mailsend-go's body option as -file, so the string isn't any longer than it was before with the attach -file option.

When I use blastula::smtp_send(echo = TRUE) I get output like the following:

The command for sending the email message is:

/usr/local/bin/mailsend-go -sub Testing -***.***.ch -port 587 auth -user ***@***.ch -pass ***** -fname Salims MailBot 🤖 -from ***@***.ch -to ***@***.ch body -file /tmp/RtmpP8jiW5/file635241705813.html

The email message was sent successfully.

R/smtp_send.R Outdated Show resolved Hide resolved
Explicitly set MIME  type

Co-Authored-By: Richard Iannone <[email protected]>
@rich-iannone rich-iannone requested review from rich-iannone and removed request for rich-iannone October 7, 2019 22:27
@rich-iannone
Copy link
Member

@salim-b Thanks for your work on this. Sorry to say that we can't use this PR because mailsend-go is no longer used in blastula. Going to close.

@salim-b
Copy link
Contributor Author

salim-b commented Nov 26, 2019

@salim-b Thanks for your work on this. Sorry to say that we can't use this PR because mailsend-go is no longer used in blastula. Going to close.

Yeah, I noticed the switch to curl::send_mail(), which I think makes sense (though I haven't tested it yet).

I guess you're also going to abandon #86 then? Or would you still accept external dependencies if they're completely optional as it is the case with using minify()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E-mail is sent as "inline" attachment instead of regular mail body
3 participants