SMTP_Send with multiple addresses

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown SMTP_Send with multiple addresses

by bob.miller :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Hi Everyone,

I'm scratching my head at this one; from the NUG archives it seems that
others have been able to send email to multiple addresses using SMTP_SEND.
This doesn't work for me; if I send email using this command with email
addresses separated by commas (no spaces), I get a SMTP 501 syntax error.
If I send to each email address separately, it works fine, so it isn't a
syntax error with one of the email addresses.  Also, when I call SMTP_To
with an address list before calling SMTP_Send, there is no error returned.

I send hundreds of emails, each to a single recipient, using SMTP_To and
SMTP_Send commands and have not had problems.

Interestingly, I can send email to multiple addresses using the same syntax
of separating by commas with no spaces, using SMTP_QuickSend without
problems.

Is there a difference between SMTP_Send and SMTP_QuickSend in regards to
the format needed for the email address list?

4D 2004.4 Windows, 4D Internet Commands

- Bob Miller
Parker Hannifin Corp.



-----------------------------------------
"PLEASE NOTE: The preceding information may be confidential or
privileged. It only should be used or disseminated for the purpose
of conducting business with Parker. If you are not an intended
recipient, please notify the sender by replying to this message and
then delete the information from your system. Thank you for your
cooperation."
**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: SMTP_Send with multiple addresses

by Bernadette McMahon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I use SMTP_Send with multiple addresses with no problem.

Try putting spaces in the multiple addresses. My code concatenates  
the email addresses from selected records, using ", " [comma and  
space] between each (and the final comma and space stripped off).

Some other things to check:

  - does your ISP limit the number of email addresses you can have in  
one message? I ran into this at one point. If I recall correctly, it  
didn't cause an error, but the message was only delivered to some of  
the addresses.

  - what level of authentication is required by your ISP for sending  
email? As I read the docs, SMTP_Auth has five different levels. I  
struggled a long time with making this work properly.

Bernadette McMahon
Objective Systems of VA LLC

On Jul 9, 2008, at 11:48 AM, bob.miller@... wrote:

>
>
> Hi Everyone,
>
> I'm scratching my head at this one; from the NUG archives it seems  
> that
> others have been able to send email to multiple addresses using  
> SMTP_SEND.
> This doesn't work for me; if I send email using this command with  
> email
> addresses separated by commas (no spaces), I get a SMTP 501 syntax  
> error.
> If I send to each email address separately, it works fine, so it  
> isn't a
> syntax error with one of the email addresses.  Also, when I call  
> SMTP_To
> with an address list before calling SMTP_Send, there is no error  
> returned.
>
> I send hundreds of emails, each to a single recipient, using  
> SMTP_To and
> SMTP_Send commands and have not had problems.
>
> Interestingly, I can send email to multiple addresses using the  
> same syntax
> of separating by commas with no spaces, using SMTP_QuickSend without
> problems.
>
> Is there a difference between SMTP_Send and SMTP_QuickSend in  
> regards to
> the format needed for the email address list?
>
> 4D 2004.4 Windows, 4D Internet Commands
>
> - Bob Miller
> Parker Hannifin Corp.
>
>
>
> -----------------------------------------
> "PLEASE NOTE: The preceding information may be confidential or
> privileged. It only should be used or disseminated for the purpose
> of conducting business with Parker. If you are not an intended
> recipient, please notify the sender by replying to this message and
> then delete the information from your system. Thank you for your
> cooperation."
> **********************************************************************
> 4D Server v11 SQL has arrived!
> Buy it NOW at http://store.4ddepot.com
>
> 4th Dimension Internet Users Group (4D iNUG)
> FAQ:  http://www.4d.com/support/faqnug.html
> Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> Post: mailto:4d_tech@...
> Options: https://lists.4d.com/mailman/listinfo/4d_tech
> **********************************************************************

**********************************************************************
4D Server v11 SQL has arrived!
Buy it NOW at http://store.4ddepot.com

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************
LightInTheBox - Buy quality products at wholesale price