If you mail a check or money order to a charity, the contribution is considered to have been made on the date you mailed it. So, if your letter was postmarked 12/31/2018 then, unfortunately, you can only claim the contribution on your tax year 2018 return.