Winsock & SMTP: mult. msgs w/ single connect/HELO?

Posted on 1999-07-12
Medium Priority
Last Modified: 2013-12-25
When using winsock and  the SMTP protocol, if I wish to send multiple email messages in succession,

1. Do I need to issue a separate connect for each msg or can I use a single connect for the entire sequence, and

2. Do I need to issue a separate HELO for each msg or can I issue a single HELO for the entire sequence?
Question by:lennyh
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

Torus earned 400 total points
ID: 1495254
1.   You can use just a single connect for the entire sequence.

2.   You just need to send a HELO message at the first time you connected.

You can test it by yourself through command line.

1.   Telnet to your smtp server with smtp port. i.e
      telnet <your smtp> 25

2.   enter HELO <Your hostname>

3.   enter MAIL FROM: <Sender>

4.   enter RCPT TO : <Recipient>

5.   enter DATA and then type your message.  enter dot when end

After you send a message, you can repeat from step 3 to send another message
and no need to connect or send HELO again.

P.S the above is just for an example. So I haven't included any CC, subject ,etc to       it.  Surely, you can test it by yourself also.

Author Comment

ID: 1495255
Thank you for your very clear and complete response.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question