WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

SMTP Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

smtpSendText and Multiple Addresses

Keywords: 	   smtpSendText

Question:

Is it possible to use smtpSendText to send to >1 address (To) at a time?

I've not been able to get this to work by putting a comma and space in To.

Answer:

Sorry no, Not with the Winsock extender, you have to do multiple SendMsgText functions. However, the Postie Extender can handle mulitple addresses in a single statement.

Hint.

  1. Add:
    wxParmSet(5,5)
    
    right after the addextender statement.

  2. Add:
    TimeDelay(8)
    
    After each smtpMsgText call.
It sets the socket timeout to 5 seconds. So when we issue a socket close and it does not close properly for an as-of-yet-unknown reason, it forces the socket to close in 5 seconds anyway.
Article ID:   W12684
Filename:   smtpSendText and Multiple Addresses.txt
File Created: 2001:01:03:14:05:38
Last Updated: 2001:01:03:14:05:38