1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Are there any pitfalls in connecting to the DB and making changes directly?

Discussion in 'XenForo Development Discussions' started by Razasharp, Feb 10, 2014.

  1. Razasharp

    Razasharp Well-Known Member

    I am thinking about creating a script that will check my inbox for any emails that have bounced, and then put the user's state into 'bounced' directly by connecting to the database (from my script).

    Are their any pitfalls to me doing this? Does XF need some sort of 'updated_at' columns updated too? Or will just changing the state to email bounce be ok?
     
  2. The Forum Heroes

    The Forum Heroes Well-Known Member

    Nope, should work just fine.
     
    DeltaHF and Razasharp like this.
  3. DeltaHF

    DeltaHF Well-Known Member

    I'm actually doing the same thing, only my script responds to "webhook events" from SendGrid, my email provider. They send a request to a URL when they attempt to deliver an email that has bounced, been rejected, or deferred (documentation here).

    So far, there have been no ill effects.
     
    Razasharp likes this.
  4. Digital Doctor

    Digital Doctor Well-Known Member

    Yes, there are Pitfalls !

    pitfall.jpg

    Directly changing the database is fine.
    But my arrow points to the pit where you can fall, in Pitfall(TM).
     
    Razasharp likes this.

Share This Page