Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

: I am getting the following error

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

while clicking a button to send some contents as mail using VBA form. I know that this error is related to the configuration problem of the mail client. But,the outlook installed in my machine can send and recieve mails without any errors.

I copied the mdb vba application to another computer, but while sending by clicking button,its not giving the error while i send using the same button in my computer.

I have also checked the profile in the control panel> mail in my computer and seen that default profile for outlook is selected.

There are two mail accounts configured in the one profile of my outlook. is this causing the issue?

share|improve this question
    
What is the SMTP server hostname configured as in the account setup in Outlook? –  brent Dec 16 '09 at 17:18
    
its configured properly...i could send and recieve mails in outlook mail client –  user17109 Dec 16 '09 at 17:27
    
Not what I asked, what's it configured as? Is it set to "smtp"? That is generally not going to be a valid hostname unless your /etc/hosts has it setup, or it is setup in your DNS server. If it's not "smtp" in your Outlook account then the VBA form is not working properly. –  brent Dec 16 '09 at 17:46
    
How to check this? –  user17109 Dec 16 '09 at 17:59
add comment

1 Answer 1

This is most likely a name resolution issue.

You have your SMTP server set in your script as: Server: 'smtp' is smtp really the name of your mail server? Is this the name that is in Outlook as your Outgoing (SMTP) server?

If it is then can you ping this server from your machine, is the name resolving correctly. If not then you have a DNS problem you need to fix.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.