Serge,

Thanks so much for writing about my question!   I am not completely sure
what you mean by "new InterAddress", but let me give you an example of what
I am trying to get done.

I am forwarding e-mails into our company through a gateway e-mail server.  I
want to keep the original senders personal name, but I also need to attach
the name of the proxy e-mail server.  So, from this e-mail, I see that the
sender is:  "Serge Knystautas" <[EMAIL PROTECTED]>.  I would like to
change that so a person in our company receiving e-mail from you would see
the following:

"Serge Knystautas" <[EMAIL PROTECTED]>

That is to say, the personal name would remain the original personal name,
but the e-mail address would be the recipent's own "outward-facing" email
address...the one which the original sender (in this example, yourself) used
to reach the company employee.

I am making headway with the required code and am somewhat close.  Tell me
what you think of this code snippet.

String prevPersonalName;

Mail myMail = new Mail();
prevPersonalName = origMail.getMessage().getFrom().getPersonal();
myMail.getMessage().setPersonal( prevPersonalName);

Many Thanks,

Hut


----- Original Message -----
From: "Serge Knystautas" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 9:17 PM
Subject: Re: How to Set InternetAddress Personal Name


> Hutson Carspecken wrote:
> > Hello,
> >
> > I am having a hard time setting the InternetAddress value of
PersonalName.  I have done a good deal of reading and have meet with plenty
of failure.  Is there a line of code that someone could share?
>
> Do you mean setting the PersonalName value of InternetAddress?  What
> about new InternetAddress("[EMAIL PROTECTED]", "Serge Knystautas");?
>
> --
> Serge Knystautas
> President
> Lokitech >>> software . strategy . design >> http://www.lokitech.com
> p. 301.656.5501
> e. [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to