sandysang
2 years agoContributor
Sending email by scirpt failed because socket error :10060, connect timeout
Hi ,
I want to ask you one question about send email by script
ToAddress | Required. The email address to which the message will be sent. |
FromHost | Required. The host from which the message will be sent. |
FromName | Required. The "user-friendly" name of the email sender. |
FromAddress | Required. The email address from which the message will be sent. |
Subject | Required. The message subject. |
Body | Required. The message body. |
FileName1, FileName2 … FileNameN | Optional. The full paths to the files you want to send with the message. |
I following above parameters but test failed, and tell me connect timeout, and we use scirpt from other project need to config mailserver ,so I want to know , should we config mailserver by scirpts?
Follow the example shown here Sending Email From Scripts, fill in the appropriate parameters but ignore FileName1. Test the email to see if it works.
If it doesn't work, regardless of what parameters you use, then your SMTP Server is not configured to allow unauthenticated emails to be sent.