Thanks; I see the problem with my code. I am not specifying
getAllRecipients() on the sendMessage() call. All fixed!
---Raymond
"Kari M. Scott" wrote:
>
> Hi Raymond,
>
> I'm using javamail to send "to" and "cc" messages and it works like a
> charm. Here's an excerpt of what I do; maybe it will be helpful:
>
> msg = new MimeMessage(session);
> Address senderEmailAddress = new InternetAddress(senderEmail);
> Address userEmailAddress = new InternetAddress(userID);
>
> msg.addRecipient(Message.RecipientType.TO, userEmailAddress);
> msg.addRecipient(Message.RecipientType.CC, senderEmailAddress);
>
> msg.setFrom(senderEmailAddress);
> msg.setSubject(subject);
> msg.setText(message);
> msg.setHeader("X-Mailer", "SimpleMail");
> msg.setSentDate(new Date());
>
> Transport.send(msg, msg.getAllRecipients())
>
> -Kari
>
> On Tue, 31 Jul 2001, Raymond Blum wrote:
>
> > Hi
> > I am running a Javamail application under JRun 3.0sp2 on Redhat Linux
> > 6.2
> > with Sendmail. I have been seeing that only To: recipients get messages
> > delivered. It looks like the javamail service is building the headers OK
> > as the "to" recipient gets a copy with "CC" headers intact but the "CC"
> > recipients never see a copy. It looks like javamail is calling sendmail
> > without the option to parse the headers for recipient info (at the unix
> > command line, this would be "sendmail" without the "-t" command line
> > option)
> > but I do not know much about how javamail is configured or how it
> > interfaces
> > with the OS.
> >
> > I am building a new MimeMessage and have tried using the addRecipients()
> > and setRecipients() methods that take arrays, with no luck on either
> > one.
> > In every case, the "to" gets a copy with "CC" headers as expected but
> > neither CC or BCC recipients get delivery.
> >
> > Any help or pointers are much appreciated.
> >
> >
>
> --
>
> Kari M. Scott
> Software Engineer
> Berbee
> 5520 Research Park Drive
> Madison, WI 53711-5377
> [EMAIL PROTECTED]
> 608.298.1223 Fax: 608.288.3037
>
> Berbee...putting the E in business
--
Cheers,
Raymond Blum
Chief Technical Officer, VP of System Architecture
Askit Systems
***********************************************
AskIt is Customer Support Management Magazine's
USERS' CHOICE GOLD AWARD WINNER. Recognized as
the easiest to use, quickest to implement, most
cost-effective solution for Web-based customer
service.
http://www.askit.com/
NEVER ANSWER THE SAME QUESTION TWICE!
************************************************
This e-mail is intended only for the use of the addressees.
Any copying, forwarding, printing or other use of this
e-mail by persons other than the addressees is not
authorized.
This e-mail may contain information that is privileged,
confidential and exempt from disclosure.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists