I have spent hours trying to send secure emails via CURLEmailMBS using both my own application and MBS’ example programs. I have been successful in sending emails as:
unsecured port 25 and port 2525 via my host
secured via iCloud’s application-specific password on port 587
but I couldn’t get it to work with my host’s secured port 465. I tied every combination of URL (appending ‘:465’) and setting on/off dozens of options. The only way I know of forcing the SMTP port number is:
tempUploadCURLSMTP.OptionPort = 465
Nothing was working. Out of frustration I commented out this line and the ‘:465’ in the URL and to my surprise it worked! I’m not sure how, since it doesn’t know the SMTP port number. Does CURL guess it, or somehow determine it? Just thought you’d like to know!