Email notification not working

I am trying to setup email contact point. Whenever I try to test it out I get an error saying :

Failed to send test alert.: Failed to send notification to email addresses: ****: x509: certificate has expired or is not yet valid: current time 2022-08-12T12:31:49Z is after 2021-07-14T20:44:05Z

At first I thought it was the expired certificate but after I installed the newly renewed certificate it still shows me this error. Any idea on why this happens and how can I fix it ?
Thanks

version?

try increasing the verbosity of the Grafana server logs to debug and note any errors. For printing to console, set the console logs to debug as well.