Sending email by scirpt failed because socket error :10060, connect timeout
I want to ask you one question about send email by script
|Required. The email address to which the message will be sent.
|Required. The host from which the message will be sent.
|Required. The "user-friendly" name of the email sender.
|Required. The email address from which the message will be sent.
|Required. The message subject.
|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.