With cdoConfig.Fields
.Item(cdoURL & "sendusing") = 1 ' <-- this switches from TCP/IP mode to the pickup mode
' .Item(cdoURL & "smtpserver") = "east.xxx.xxx.net"
.Item(cdoURL & "smtpserverpickupdirectory")="d:\temp\"
.Item(cdoURL & "smtpserverport") = 25
.Item(cdoURL & "smtpauthenticate") = 1
.Item(cdoURL & "sendusername") = "dummyaccount@xxxxx.com"
.Item(cdoURL & "sendpassword") = "xxxxxxxxx"
.Item(cdoURL & "smtpusessl") = 1
.Item(cdoURL & "smtpconnectiontimeout") = 60
.Update
End With
.Item(cdoURL & "smtpserverpickupdirectory")="C:\inetpub\mailroot\pickup\"
Is there a problem with doing it that wayAs I said earlier, that's a way I would recommend. I use that approach in all my projects, no issues so far.
icacls C:\inetpub\mailroot\pickup /grant IIS_IUSRS:M
Turned out the emails sent from one address were being flagged as spam by my email provider.If these are only ever going to you, it will be fine. If you are going to be sending anything to clients/visitor using CDO you will really be better off using a 3rd party smtp service like sendgrid to increase deliverable rates.
BTW, I'd recommend to use the pickup service instead of TCP/IP connection to the SMTP service. So you could visually inspect the formed email and try to analyze what's wrong with it. It could bee too beg (bigger that the server's limit) or exceeds some other limitations.