The Trying to access array offset on value of type null , It was working for me and sending an email, but suddenly this error appeared