SMTP email issue Net::Timeout

Have you tried commenting this line? I don’t think the port 465 supports STARTTLS