We help IT Professionals succeed at work.
Get Started

Can CFEXECUTE wait for a response?

section25 asked
Last Modified: 2013-12-24
I am trying to test a mail server by sending an email via telnet. I know CF can send emails, but if it fails, the failure does not get sent back to my web page. I need a web page that will test sending an email and get the response back from the mail server so I can process the information that comes back.

So basically, I am trying to issue telnet commands through cfexecute to send a message to the mail server, but all of the commands get sent at once and I need them to wait until the mail server responds.

Is there any way I can delay the sending of each command?

For example, I need to the following to happen:

- send the command "telnet server.domain.com"
- wait for it to respond
- send the command "EHLO"
- wait for it to respond
- send the command "MAIL FROM:me@mydomain.com"
- wait for response

Watch Question
This problem has been solved!
Unlock 1 Answer and 8 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE