• Post Reply Bookmark Topic Watch Topic
  • New Topic

Multiple email recepients

 
Sundeep Malali
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using sockets to send email from my application. When the 'To' list has only one address, then the email is delivered properly. But in case of multiple recipients, the email does not reach any of them. I have tried delimiting the addresses using both , and ; . But nothing works. Is there something extra I need to do in case of multiple recipients.
Thanks in advance.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean you're opening a socket to port 25 and sending SMTP commands, what you should do is to put each recipient on a separate RCPT TO: line.
 
Van Glass
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The To: and Cc: headers are really for display purposes by the email client. For each recipient you must issue a RCPT TO command to the SMTP server.
e.g.
RCPT TO <user@domain.com>
RCPT TO <user2@domain.com>
RCPT TO <user3@domain.com>
hope this helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!