dear john,

for sending mail you do  something like this

mail from : [EMAIL PROTECTED]
rcpt to :       [EMAIL PROTECTED]
data :  message goes here


Now for CC's and BCC's

What are the SMTP commands equivalent to the BCC and CC fields of your email
client? Well, this question has only one simply answer: none. The following
few lines will tell us why.
To understand the answer to the above question, let us first understand how
exactly does an email client handle a CC or a BCC. How does it do what we
are supposed to do with the CC and BCC features?

Now, when you hit the Send button, then your email client connects to Port
25 of the mail server that you specified during the configuration time. Then
it will issue SMTP commands to the remote mail server and send it the
required information. And in this process your email is sent. The order in
which the various SMTP commands are given is same as described earlier.
Normally, when you have only a single recipient, then your email client
issues only a single 'RCPT TO:' command, to the mail server. However, when
there is more than a single recipient, then the email client issues multiple
instances of  'RCPT TO:' Or in other words, when the CC field of your email
client is not empty then multiple RCPT commands are issued.

You see the Simple Mail Transfer Protocol does not provide any special
command for CC'ing an email to someone. The entire concept of CC relies on
the issue of multiple RCPT commands to the mail server. The same is the case
when you have multiple recipients in the 'To:' field of the email client. So
basically this means that it really doesn't matter whether you add a
recipient's email address to the CC field or to the 'To:' field. The SMTP
command issued and the headers created will remain the same.

so email client write some thing like
rcpt to :       [EMAIL PROTECTED]
rcpt to :       [EMAIL PROTECTED]
rcpt to :       [EMAIL PROTECTED]

instead of only one rcpt command lot of go.

Now, when you CC a single email to multiple recipients (Say 3) then the
following procedure takes place:
Email Client Starts Session at remote mail server.
It introduces itself and the sender.
It uses multiple RCPT commands to send the same email to multiple
recipients.
The email client disconnects.
As the email addresses of all the recipients are mentioned in the same
session at the remote mail server, they constitute the same email headers.
Thus all the recipients are able to view the email addresses to which this
email was sent.
Now, in a situation, when we BCC the same email to multiple recipients (Say
2) then the following procedure takes place:
Email Client Starts Session at remote mail server.
It introduces itself and the sender.
It uses a single RCPT commands to send the same email to the first email
address in the BCC list.
The email client disconnects.
It again starts a new session at the remote server.
It again introduces itself and the sender.
It uses a single RCPT commands to send the same email to the second email
address in the BCC list.
The email client disconnects, once again.

In this case, each recipient was sent an email through a unique session at
the remote mail server, thus each recipient received unique email headers
and the identity of none of the other recipients in the BCC list was not
given away.

The above description of the usage of CC and BCC is based on how Outlook
Express works. However, actually Sendmail does provide a manner in which the
CC recipients can be specified. After giving the DATA command, one can give
the CC list by giving the following command:
CC:Recipient List
However, giving the BCC command instead of CC does not produce the desired
result.

cheers!!
Raj


-----Original Message-----
From: John Ninan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 10:46 AM
To: Rajinder Sandhu
Subject: Re: regarding java mail


for a portal i am doing the java mail. in this i am able to send mail. I
also want to send attachment of different file extension(like
.jpg,.htm,.txt). what i have to do for sending attachment with java mail.
John Ninan
Software Engineer
Questech India Ltd.,"Questech Towers",
410, 100ft Road,IV Block, Koramangala,
Bangalore 560 034.
Ph: +91-80-5524771 ext:206

Email: [EMAIL PROTECTED]
Website:www.questech.net
----- Original Message -----
From: "Rajinder Sandhu" <[EMAIL PROTECTED]>
To: "'John Ninan'" <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 10:42 AM
Subject: RE: regarding java mail


> i didnt get you ??
>
> -----Original Message-----
> From: John Ninan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 24, 2001 10:34 AM
> To: [EMAIL PROTECTED]
> Subject: Fw: regarding java mail
>
>
> > mr raj
> > for sending attachment what i have to use. and how i have to use it give
> me
> > a idea.
> > john
> > ----- Original Message -----
> > From: "Rajinder Sandhu" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 24, 2001 10:10 AM
> > Subject: Re: I don't see my JSPs - Urgent
> >
> >
> > > if you are working in NT environment
> > >
> > > simply give the ip address of the your machine in the URL or you
machine
> > > name
> > > for eg. - http://john:8080/examples/test.jsp
> > >
> > > or if ip address of your machine (john) is 164.23.34.55 than
> > > http://164.23.34.55:8080/examples/test.jsp
> > >
> > > it will work.
> > >
> > > Cheers!!
> > > raj
> > >
> > > -----Original Message-----
> > > From: John Ninan [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, July 24, 2001 9:45 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: I don't see my JSPs - Urgent
> > >
> > >
> > > for this use the IP address of the other machine in ur system with
port
> > > number 8080
> > > for ex: other system's IP address is http://164.16.1.12:8080/
> > > ----- Original Message -----
> > > From: "Henry Ortiz" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, July 24, 2001 4:15 AM
> > > Subject: I don't see my JSPs - Urgent
> > >
> > >
> > > > I see my JSPs in local mode perfectly
> > > > but when I try from of other PC I can not look it,
> > > > simply not found the server.
> > > >
> > > > Please Help me.
> > > >
> > > > I'm using Tomcat latest version.
> > > >
> > > >
> > > > Henry Ortiz
> > > >
> > > >
> > >
> >
>
===========================================================================
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > > For digest: mailto [EMAIL PROTECTED] with body: "set
JSP-INTEREST
> > > DIGEST".
> > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > >
> > > >  http://java.sun.com/products/jsp/faq.html
> > > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > > >
> > > >
> > >
> > >
> >
>
===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> > >
> >
>
===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> > >
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to