בעיית דוא"ל SMTP Net::Timeout

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