Question

I am getting the following error while sending mail by click of a button in MS access form

I am using sendObject to send mail using vba code.

The host 'smtp' could not be found. Please verify that you have entered the server name correctly. Account: 'pop3', Server: 'smtp', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 11001, Error Number: 0x800CCC0D

Points to note:

  • I am able to send and receive mails in my outlook; Problem is only when send mails through VBA access application.(Means it is not a outlook client configuration problem)

  • When i copy paste the Vba application to another PC, i could successfully send emails without any error. (means this is not a vba access application problem)

Please help.

Was it helpful?

Solution

Either the SMTP server "smtp" is available from your second machine and not the first, or else there is some change to the mail settings and/or security when moving between the two machines.

Is your SMTP server actually called 'smtp'?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top