Git Product home page Git Product logo

Comments (4)

jimhester avatar jimhester commented on July 28, 2024

I can reproduce this. Strangely if I send email to myself the email shows up correctly in my sent and inbox, but I also get two bounce emails. This was not happening a few weeks ago, perhaps the API has been changed slightly. I will try and figure it out, thank you for reporting the issue, and your MWE is close enough to one for me.

from gmailr.

ctbrown avatar ctbrown commented on July 28, 2024

I can confirm this bug as well. It seems to result from the multipart messages. If you do it in standard R format the way JennyBC did in her send-mail-with-r tutorial, it does not seem to have a problem. This works:

test_email <- mime(
    To = "PUT_A_VALID_EMAIL_ADDRESS_HERE",
    From = "PUT_YOUR_EMAIL_ADDRESS_HERE",
    Subject = "this is just a gmailr test",
    body = "Can you hear me now?")
ret_val <- send_message(test_email)
ret_val$status_code 

This does not:

mime() %>% text_body("some message")

It is interesting to note supplying an empty string also works:

 mime() %>% text_body("") 

But as soon as any non-empty string to text_body, send_message fails.

For whatever reason, gmail is not handling multipart messages in a way that google likes. It is exceedingly hard to debug because g@#gle! does provide informative messages for why it is refusing to the message. (In all cases I get a response code 200.)

Any ideas?

from gmailr.

ctbrown avatar ctbrown commented on July 28, 2024

Also, this appears to be related to issue #11. You probably get two-for-one here.

from gmailr.

jimhester avatar jimhester commented on July 28, 2024

I think this is fixed now, I no longer have this issue.

from gmailr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.