2 different addresses in from

Hi all,
In my organization it is mandatory to send a copy of any
mail each employee recieves- in his official capacity- to
our boss.
So I decided that instead of making other people type in 2
different addresses, one my address and another my boss's
address, why not send an email in which the from field
contains both addresses (my address and my boss's address)
so that the other person has just to click on the Reply
button, and 2 different addresses appear in the "To" field
seperated by a comma in his Compose page. Then he types in
the Subject and the message and clicks the Send button. The
message is delivered to two different persons.
So I developed a servlet (importing javax.mail.* and other
required packages) which accepts the to mail id, the
subject and the message from the user (of course I made a
HTML page for this purpose), set the from in MimeMessage.setFrom(new InternetAddress(from)) as:
"[email protected],[email protected]" and used Transport.send
But it seems JavaMail is smarter, it is giving me an
"AddressException: Illegal address in string
[email protected],[email protected]" message. I tried to
put a semicolon in place of a comma in between the 2
addresses in the from field, but this time
"AddressException: Illegal semicolon in string
[email protected],[email protected]" is displayed.
Any workarounds for this. We are using an SMTP server for
our JavaMail applications.
R.Srivatsan

RFC822, which specifies the format of Internet mail, requires the From address to be a single address. You can read about it here:
http://www.faqs.org/rfcs/rfc822.html
Anyway, your solution seems backwards to me. You can't control everybody who sends e-mail to you. Wouldn't it be better to configure your e-mail server to automatically forward a copy of any e-mail you get to your boss? Of course, then your boss would get copies of all your non-official-capacity e-mails too...

Similar Messages

  • How to use different mail address in "from" and "user" property?

    I'd like to use the user enter mail address as the "from" property and use my mail account to send it, but I got error: com.sun.mail.smtp.SMTPSendFailedException: 553 You are not authorized to send mail, authentication is required when set different mail address in "from" and "user" property, how to resolve this problem?

    Basically that's a bad idea. Suppose you used your server to send messages that claimed to come from "[email protected]"? Naturally enough people have tried that, either as a joke or as an attempt at fraud, so that servers will check to see if the message is coming from the server it claims to be coming from. And if it isn't -- as in that example -- it will consider it a forgery. Best case (for you) is that the server will flag it as spam or junk. Worst case is that your server will be blacklisted and other servers will ignore it.

  • How to receive mail on iPad from two different addresses

    how to receive e mail on iPad from two different addresses and using these same two addresses receive e mail on computer

    Go to mail in settings and add the new account
    User guides
    http://manuals.info.apple.com/MANUALS/1000/MA1595/en_US/ipad_user_guide.pdf

  • When I'm in a single story building that has alot of electronics , tvs , iphones cell phones ect- when I use find my iphone why does it show 3 different addresses as well as streets that are blocks from where I really am?

    When going to the gym and launching find my iphone- why does it show 3 different addresses and streets blocks away and then if I move in the building to another area it shows exactly where the phone is?

    Because the earth is large and you phone is getting your location from a satellite miles in the sky and you are under a roof.

  • Apple shipped my iPhone at a different address

    Hi,
    iPhone 6 problem
    I had connectivity issue (WiFi) with my iPhone 6 and I called Apple to setup repair. They were very nice in helping me out to resolving the issue. But when it didn't work, they setup a repair and sent me an empty box in which I shipped my faulty iPhone 6 back.
    Customer care and manager
    Everything was super fast, but I missed the email "We got your repair request" as it was just an email which states that they received the request. But later after shipping I was going through the repair emails and I saw that the name on the "We got your repair request" was wrong. I immediately called Apple support and told them that they have my name wrong in the repair request. Apple support personal was confused and she immediately handed the phone to her manager. The manager spoke with me for quite a few minutes trying to see what went wrong in that email. I thought that it was a small issue (just the name in email), but with managers involved I was a bit worried. The confusing was, the box I received had my name and address. But the email had some other guy's name.
    The biggest problem for me was that my repair iPhone may get shipped to the person on email. And I was traveling abroad in few weeks and wanted to make sure that the address issue is resolved before I leave on my vacation. I explained the issued and request Apple support manager to make sure that the product gets shipped at my address. Multiple times. And he assured me that everything looks good and I should relax.
    Repair
    Later the same night someone from Apple repair team sent me an email with questionnaire to fill about how to generate the issue and many other things. I explained them the issue and told them steps to follow to regenerate the same problem. Next morning I received an email that my they were able to get the same issued in their test and they will be sending me a replacement product. Following this email, maybe an hours later, I received another email stating my replacement product has been shipped.
    Replacement product shipment and the mess
    Once I saw that email, I was like wow! I was able to see the value in being an owner of Apple product. I was tracking the shipment as it was an expensive product and needed a signature confirmation. It was a next day Fedex shipment and the wait wasn't long. I was checking the status time to time and suddenly on the next check it showed that the product was delivered. I went back running to my mailbox and found nothing. I checked it everywhere and there was nothing. I immediately called Fedex and explained the issue. But when they assured me that the shipment was delivered with signature confirmations, I was like what!!! I said I didn't sign!!! They said can you please repeat your address? I did, and they said, this is not the address that Apple shipped the product to! We have a different address on file. I asked, what is the address? They said, we can't give you the address, only shipper (Apple) can ask details on that.
    Post mess communication with Apple (current situation)
    When ever it comes to Apple, I am assured that the problem with be solved. Atleast that is my experience after using Apple products (MacBook, iPhone, iPad) from last 7 years. So I was assured that the issue with be solved and I will receive my iPhone 6!. But till now, the issues is not looking good. The manager on call says that there file shows that the product was shipped to my address and I should contact Fedex. But Fedex says they won't disclosed the detail address as only shipper can do that. They were only willing to tell me if the address I am telling is the address on file or not. On repeating my address to Fedex (which was the same return shipment address I had on them email received from Apple) Fedex confirmed that Apple didn't ship to that address.
    Fedex is not willing to give me the address. Apple is not willing to help me and want me to check with Fedex. The Manager looking at my case at Apple is assuring that the product was shipped at the same address that was in the email. I was frustrated and even called Apple personal as a liar. Which I think I was not professional, and will apology. But it is a $700 phone, I am a student and I don't know what to do as no one is helping me. I am totally screwed. I am thinking to further this issue by contacting some of the logistic/service/customer care executives of Apple on LinkedIn if they can help. Or anyone have any better idea?
    I have attached a picture of my email with Apple. Not including the name of the managers on online forum as I believe it is not the right thing to do on public forum.

    Apple is not here.
    We can't help you here because we are users just as you are.
    You are going to have to escalate this with Fedex. Call and ask to speak to manager.

  • Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.

    Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.
    Solutions?

    No, I never really found an easy solution.  I believe it is an issue with some corruption in the iTunes database on the specific device.  In my case, both my iPad and iPhone now show duplicate stream songs if viewed through iTunes on my Mac, but they show different songs.  A couple years ago I had a similar issue on my iPhone, and Apple support suggested I back up the phone, completely reset it, and then restore it from the backup.  It did work, so I imagine it would probably work for my current issues with the iPhone and iPad.  But resetting and restoring an iPad or iPhone always makes me a little nervous that something will get lost.  When I did reset/restore the iPhone, I do have to say, the restore process was 100% perfect and I did not lose any data at all even though Apple support said I might.  If you try to go that route, I would suggest backing the device up both to a computer through iTunes, and to the iCloud so that you have a double backup.
    None of this really resolves the issue with how the iTunes databases are becoming corrupted on the apple devices though, so it is very likely to happen again until they fix it.  I have been unable to determine if there were any specific actions or conditions which caused the corruption to happen in the first place.
    Might be worth another call to Apple support, or dropping in the local Apple store if you have one near by.

  • Can I access my email account on a second computer at a different address?

    The email account is used for a company which trades from my home address. Someone who lives at a different address will shortly need access to the email account as well. Is this possible?

    As you have not stated what type of mail account you are using - I've given info on both:
    '''POP mail accounts:'''
    by default POP mail accounts can only get access to the webmail Inbox and download from that Inbox to the pop mail account in Thunderbird.
    Usually, it downloads and deletes off the server, so if you want to create POP mail account for the new user, you would need to mke sure the settings are to 'leave messages on server' on both your computer and the new user.
    Tools > Account Settings > Server Settings for pop mail account
    The main issue here is that the Inbox should not be used as a general store, so you create folders to store emails. Unfortunately, this would mean constant monitoring to make sure both computers actually were using the same folders, as the user can manually create folders, you could end up with emails stored differently on each computer.
    '''IMAP mail accounts:'''
    see a remote view of the folders on the server.
    So, you could enable IMAP forwarding via the webmail account and then in Thunderbird create IMAP mail account.
    If you currently have a POP mail account in Thunderbird on your computer, consider creating an IMAP mail account, which can be set up on both computers, then each can see folders on server.
    Move all emails from POP mail account into Local Folders first.
    When you are certain all Pop emails are stored in Local Folders:
    Then remove the POP mail account.
    Tools > Account Settings
    select pop mail account
    click on 'Account Actions'
    Select ' Remove account'
    click on OK
    Then create an IMAP mail account.
    Subscribe to see folders. Synchronise subscribed folders to get a copy of folders in your Profile folder.
    Make sure you create regular backups regardless of whether POP or IMAP mail account.
    Info on Backups:
    * http://kb.mozillazine.org/Profile_backup
    * http://kb.mozillazine.org/IMAP_backup

  • How to use a .Mac alias in the outgoing address field from iPhone?

    I do not want my .Mac Apple ID showing up in the outgoing address field from my iPhone. I want to use an alias instead, just like I use in Mail. How can I use the same alias in iPhone?
    The iPhone has been great once I finally got it activated...no problems synching from Outlook on my PC and Address Book and iCal on my Mac. Now all of my PC and Mac data are finally merged on my iPhone and on both computers...wish I would have saved the money I spent on two versions of MissingSync! Looking forward to some software updates...
    Mac Mini   Mac OS X (10.4.10)   iPhone

    If you want to setup a different REPLY TO, you have to use the OTHER shortcut when creating the mail account on the iPhone. It allows you to specify an address in the Account Information box different from your incoming and outgoing server login IDs.

  • Need to pull vendor address information from PO

    Hi Friends..
    I am creating a shipper instructions smartform and need to display shippers address in the form.. For that purpose i need to pull the vendor address information from the PO...
    Can some one tell me the data extraction logic involved here like what tables i need to access to get the required vendor address and flow of it...
    Here the client is creating the PO and also sending the shippers instruction form when PO is created as far as i my understanding...
    Thanks,
    Kanthi..

    Hi
    When a PO is created, at that time you need to enter vendor number (LIFNR).
    The details of different vendors are maintained in table LFA1.
    The tables for PO are EKKO (header table) and EKPO (line item table).
    But, if you want to capture the vendor address for printing, you only need to know the PO number (EBELN field). And, then you can proceed like:
    Select LIFNR from EKKO into <yourDefinedVAR> where EBELN = XYZ.
    Select <requiredAddressFields> from LFA1 into (....) where LIFNR = <yourDefinedVAR>.
    So, finally, if you know the PO number, you can find rest of the things.
    Regards
    Ashish

  • When I order 4 Aperture photo books can they be sent to 4 different addresses?

    I am using Apple Aperture on an iMac. I plan to order soon at least 4 photo books and more later. Can 4 printed books be shipped to 4 different addresses in one order, or do I have to make 4 separate orders? If Apple has filled an order to print a photo book can I make another order without having to upload the book again, since Apple has the book from the previous order?

    All parts of an order have to be delivered to the same delivery address. And for additional copies you have to place a new order and upload the book again.
    See the information on the Apple Print Products page for your country:
      Print Services Support - Apple Store (U.S.)
    Regards
    Léonie

  • Two CS4's produce different published .swf from the same fileset

    Hello, I'm a novice at Flash, but an experienced troubleshooter, I've spent days on this intriguing problem:
    *Can two CS4's produce different published .swf from the same fileset?
    I have a flash suite written by a young man in China.
    When I test the .swf file in the suite it works fine.
    However I need to make some minor redesigns so I need to change the .fla file - but before I do I found that when I publish a new .swf from the .fla file (with all the necessary action scripts/xml etc in the right place) it doesn't produce the same outcome. Instead the navigation (next page, items per page etc) is missing.
    When he does the same thing (I trust his integrity) he gets the new .swf with the navigation in tact.
    You can see the two outcomes at the web address below (mock data).
    There are no code changes, no library changes that I can find.
    So I thought maybe there is something about different settings or 'environments' that can affect the outcome?
    You can see at   >> http://www.zaphmann.com/source/source.html << the correct navigation.
    Then merely republishing the source.fla (and a rename of .swf) NOW The navigation is gone.  >>>> http://www.zaphmann.com/source/sourcetoFromFLAswf.html <<<<<
    Any ideas???
    Thank you - a free book to anyone who has the answer.

    Hello Ned, I
    definitely have the very latest version, I will ask Mr. Chen to confirm his version. If his version were, say, 6 months old could that be of any significance?
    The software suite appears to have authored produced a while ago as it uses actionscript 2, or maybe he just prefers that.
    Basically the suite worked until he added a custom 'deeplink' (basically id tags in a few AS) and after which it still works at his end (compiled with CS3 or CS4), but not when I do likewise from the fla.
    I have trawled through the AS code changes and see no errors or changes that would affect the navigation portion of the code which remains the same, so I hypothesized that there may some settings that could affect the publishing.
    Young Mr. Chen in China seems to be a bright young man but not sto be so keen on deep troubleshooting...
    Any ideas you have, however wild are welcomed, I can also send source files if that would help.

  • E-Mail address change from location to location while traveling?

    Been using Airport extreme as a local network for a eMac and a steady G4. I read, in MacHome I think, a traveling couple was not receiving responses to sent E-Mails from various locations while on the road. Reponse was that because each location they log on gave a different address not recogized by recipents that they were probably trashing them unopened not knowing who they were from. Solution was to purchase a router, such as Airport, and log on through it at each location. This would always assure that the same address would be sent that friends would recognize. Is there something to this? We"re going to start traveling, retired, and plan to use the email to communicate with family and friends so would be helpful to know something about this address thing.
    G4, Sawtooth, 1G mem, airport   Mac OS X (10.3.7)  

    Thanks for the response Duane. Would your answer be the same when moving from wireless network to wireless network and our home service providers email server not recognizing the different IP addresses. I may be mixing apples and oranges here. Our problem is not knowing what we're mixing, apples or oranges.

  • I want to move my address contacts from a backup copy of Thunderbird (on an external HD) to Thunderbird on my new PC, e.g import the .csv files

    I connected an external HDD to my new Windows 8.1 Laptop that contains an old back-up of my old PC and tried the 'import' method, in Thunderbird, thinking it would extract my address book from the old backup copy. However, the only thing that appears in my Thunderbird contacts is an address book icon (with the same name as the back-up file on my HDD), but there are no addresses in it - should I be doing something differently?

    ''bill5000 [[#question-1052023|said]]''
    <blockquote>
    I connected an external HDD to my new Windows 8.1 Laptop that contains an old back-up of my old PC and tried the 'import' method, in Thunderbird, thinking it would extract my address book from the old backup copy. However, the only thing that appears in my Thunderbird contacts is an address book icon (with the same name as the back-up file on my HDD), but there are no addresses in it - should I be doing something differently?
    </blockquote>
    ''Gnospen [[#answer-703820|said]]''
    <blockquote>
    The backup is it a copy of your profile or how did you do that?
    </blockquote>
    Hi,
    Thanks for responding. The backup is a straightforward backup of all the files off my old hard drive. I guess it includes all my old Thunderbird files, so I thought I would probably be able to at least import the Contacts into my Laptop?

  • Different Address Books

    I would like to find out how to have different address/contact books.  I do have the contacts that comes with my iPad2 and Gcontact, but I want the information to be different without cross contamination of user info.  I am asking like can I have a Family Book, a Work Book, and Friend Book without the same information in each book.
    Thanks
    Michael

    If you sync your contacts from Outlook, you can assign all your personal contacts the Category of say..."Personal" then sync them to your phone. When you open your address book on your phone, press the menu key and select "Filter" and pick Personal or which ever word you chose to use.
    I hope this helps.

  • Transfer address book from other mac ?

    How do I transfer my address book from older mac to new macbook pro?

    I assume you means the contacts. The Address Book includes an export feature, which may be slightly different for an earlier version. At the menu bar, go to File > Export. If there is an Address Book Archive selection, use that.
    Transfer the exported archive to your new Mac. Use the import option with the Address Book on your new Mac to import the archive.

Maybe you are looking for

  • How do I copy music from ipod touch to new laptop (windows 7)

    My computer has broken and cannot be fixed, I have now got a new laptop with windows 7, unfortunately my music didnt have a back up, and I have managed to copy my apps to the new itunes but I just cant figure out how I copy over my music? Thank you v

  • Dead screen during calls

    has anyone ran into this problem? I made a phone call and talked for a very short time, but as i went to hang up the call my screen was still black, i couldnt get the phone to responed, i pressed every button and touched the screen, it wouldnt respon

  • Additional Fields of an infotype in a overview screen??

    Dear Alls, I have a question. I m using recruitment module, i have added field in previous employment infotype 0023 but i want to maintain multiple data in this infotype. but this addiotional field is not diaplay in overview screen while it is in inf

  • Subincacl tool with netapp cifs migration to new domain

    Hello I have DomainA (old) DomainB (new).  i am migrating services from DomainA. to DomainB.  i have a netapp filer running CIfS in DomainA.  i have two way trust between two doamins.  All the security groups have been migrated from DomainA to Domain

  • RGS queue time-out

    hi guys, deployment is OCS 2007 r2 with latest CU, receptionist client is Attendant with latest patch (March 2011). I've created test user and assigned to test RGS. Its Group consist of this test user only (define custom group of agents), policies ar