Jump to content

Parmee

Retired Forum Member
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Parmee

  1. Hello, I'm currently retrieving emails including the email ID via my own custom API. If however I wanted to send an email, I understand there is an API function for this but it requires submitting all the extra as well which is not what I'm looking for, I simply want to resend an email sent previously as you can do in the admin panel. I was going to simply grab its contents by the email ID in the table and re-email it using the message/subject fields with no logging, but I am sure WHMCS has some type of logging for re-sending emails, right? What is the correct way of re-sending emails? Thanks, James Morris
  2. Hi, I wouldn't recommend using the above, there are 2 fundamental flaws I can see without looking in to it deeply. Firstly, if you provide an incorrect username or password, it will give you an error for using fetch array (unless you hide errors), in any case, you should atleast use a row check before fetching an array. Secondly, if I submitted the username as admin' --' followed by the password of test--, that would create the query: SELECT * FROM tbladmins WHERE username='admin' [i][size="1"]--' AND password='test--'[/size][/i] AND roleid='1' Not a SQL query I would like executing login authentication. Add some security to your queries, otherwise you may aswell give away your MySQL Login details than use an API. Best,
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated