Javamail using incorrect FROM (return) address

Hi, we implemented a fancy DNS delegation scheme and now our java apps are sending out emails with FROM addresses that are confusing our users.
Basically it looks like javamail is looking up the from address and deriving it from the delegated A record canonical name - we want the FROM (return) addresses to be something else.
Anyone know how this is done?
thanks

I compiled up the sample from http://www.vipan.com/htdocs/javamail.html and ran it alongside the misbehaving app and I can not reproduce the issue with the sample code..
One difference I noticed in the developers "problem" code it calls her sendEmail()
routine via a wrapper Emailer( ):
new Emailer("mymail.stanford.edu").sendEmail(to, from, subject, body);
And the props.put("mail.smtp.host", smtpHost); call is outside the
sendEmail’s scope

Similar Messages

  • Uses incorrect from address

    Using Thunderbird mailer on laptop with M1217nfw wireless hp printer. 
    Eprint is picking up the "received from" field from the header file instead of the "From" address hence it will not print the attachments being sent. As you know the received from field is a long list of all the hops the messages take thru the network.
    How can I get Eprint to use the From address for security comparison?

    The thing is the ePrint spam filters don't just read the from section to check for spam, it also checks the suject line, so, if there are forward or reply tags in the subject line, ePrint see the message as spam.  You'll need to remove all those tags before the messages will get through.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • On the shipping label for repairs to them, what does Apple uses as the return address?

    I lost the tracking number and FedEx needs the orgin location that the package was sent from. It was a return label from Apple and I guess it wasn't my home address.

    Out of Warranty iPhone will have 90 day warranty.
    How was your current iPhone unlocked? Replacement
    iPhone will be the same locked/unlocked status as your
    current iPhone was when originally sold.

  • I would like to make a directory using groups from my address book.

    How do you merge information from contacts in the address book with a document?

    With the current version of iOS on an iPhone there is no way to have a full screen contact picture. You can make a suggestion to Apple at http://www.apple.com/feedback/

  • Add new return addresses

    When I print envelopes I don't always use the same return address. How can I program "Address Book" with more than one return address?

    When I print envelopes I don't always use the same
    return address. How can I program "Address Book"
    with more than one return address?
    I assume you want the same name but but be able to choose between different addresses, eg. Home, Work etc.
    In the Print dialog (Style=Envelopes) click `Label' and check the box `Print my address'. Then you'll be able to choose which of your own addresses are printed.
    AL Power Book   Mac OS X (10.4.3)  

  • Need help creating return address labels

    Which application do I use to create return address labels?

    That's kind of a vague question.
    Do you mean you just want to print a sheet of address labels? or you want to print entire envelopes with recipient and sender addresses intact?
    If the former, then Address Book will happily print a sheet of address labels and has presets for many common label sizes (e.g. Avery and Dymo). If the latter then any word processing app such as Pages or Word can do that.

  • You can use the same email address that you used to set up the old Sync? , before bookmarks can return, if I registered success?

    for my old email address account( @qq.com)
    july 2014 I install new windows xp, but I can't log in before account 44*******@qq.com, its always give me enjoyful when I was easy open bookmark url from different computer.
    but there is no any notice or email to me firefox will have new sync system, if there, I could backup before bookmarks from 28 vision ( or some june's vision), but this big browser group is quiet, now, I can't log in again old account,
    achieve process:
    1st, normal account and right password, its show me unknown account.
    2nd, Password Reset, " An email has been sent to the requested account with further information. If you do not receive an email then please confirm you have entered the same email address used during account registration.", I couldn't receive any mail(or in spam) :(
    3rd, How to update to the new Firefox Sync ...
    "You can use the same email address that you used to set up the old Sync." , before bookmarks can return, if I registered success?
    I really feel disappointment with firefox( although used for many years), much text, but couldn't resolve clear simple path. answers more hidden link to read, I just use it explore internet, I am not technology engineer, don't care what so much b***t.
    thanks, back me old bookmarks only, thanks.

    Hi eddinchina,
    You should have no need to use the Old Sync account.
    As long as device or devices are Firefox 29 or later (They should all be Firefox 30 now) you should use the New Sync.
    You may use the same email address with both accounts.

  • The incorrect iCloud email (in the from field)address is appearing

    The incorrect iCloud email (in the from field) address is appearing on my iPod touch, but not on my MacBook Pro. The I Pod's ICloud email account is using my account for Itunes etc., not the icloud email address, how can I reset the "from" address?

    ok thanks, so if I do nothing straight away, they won't free the address up and give it to someone else, correct?

  • Trying to print Return Address labels using Avery stock 5195

    Using a MacBook Pro - trying to print return address labels from my Contacts.  Where do I look for help?

    Maybe:
    http://www.podfeet.com/blog/tutorials-5/how-to-create-return-address-labelsl-usi ng-apple-contacts/

  • HT2584 HOW DO I PRINT RETURN ADDRESS LABELS FROM MY ADRESS BOOK?

    HOW DO I PRINT RETURN ADDRESS LABELS FROM MY ADRESS BOOK?

    Mail & Address Book Mac OS X v10.7 Lion
    pss: considereed bad form to use CAPS

  • HT204053 I setup an apple id using my gmail email address from my iphone and then I decided to change my email to icloud.  So I setup an icloud email account. Now I want to change my apple id to my icloud email account, but it wont let me.  How can I merg

    I just got an iphone recently and I started my apple id using my gmail email address. I decided to change email from gmail to icloud so I setup an icloud email account and now I have two apple id accounts.  All my primary information is in the gmail apple id account and i just want to merge the two together.  I've tried changing the apple id on the main account to the icloud email, but it says it already exists.  How can I merge these two accounts without deleting one or the other?
    Thanks
    pallhues

    You can't merge iCloud accounts.
    You could move all your calendars contacts etc over from the account you don't want to the one you do, it's not simple but about all I can suggest.

  • I am using Mail with OS 10.9.1...I used to be able to drag and drop contact addresses from my address book to an e-mail header.  Now I have to type all the names and can't drag and drop.  Is there a setting for this?  Thanks!

    I am using Mail with OS 10.9.1.  I used to be able drag and drop names from my address book into the address header, but can no longer do that.  I now have to type each name in.  Does anyone know if there is a setting for this or is it a feature of the updated software?  Thanks for any info!

    Yes, that appears how Mavericks works right now. However, you can open the Address Panel, select all your contacts, then click the To (or CC, or Bcc) buttons to move the selection to the address field.
    If it is not already in the Toolbar, right-click on the Toolbar and select Customize Toolbar…
    Then, drag the address panel up to wherever you want it.
    You may also want to add it to the New Message window in the same way.

  • For some reason my app store email is incorrect on my ipad 1 how do i change the email address? please help me as this is most frustrating. i want to use the same email address i use on my Iphone and I mac

    Please help.
    for some odd reason my app store email address on my Ipad 1 is incorrect. How do i change it?
    i would like to use the same email address i use on my I Phone and I Mac
    Please help as i find this situation most frustrating.
    many thanks
    Joao

    Do you perhaps have more than one Apple ID?  If your response is "No," are you absolutely positive?

  • How do I reply to a forwarded email using the 'To' email address in 'From'

    Let me explain, as this might sound odd:
    I now have what will be a rarely used email address, say [email protected], provided for me by a company I am occasionally contracted to work for. Any email sent to that address is automatically forwarded to my personal account. There will be the odd occasion that I will need to send email from that address, or reply to emails sent to that address.
    The problem is, as far as I can see, I can only send email from the address I have set up my account with on Mail, say [email protected] For confidentiality reasons I'm not allowed, nor do I wish, to have recipients know this address. Though I'm self employed, the company I am occasionally contacted to, say +Bloggs LLP+, want me to appear as an employee, hence the [email protected] email address.
    Using 'Reply To' is not an option, since my personal 'From' email address is still visible.
    Yes, I know I can set up another POP/IMAP account in Mail, have all the [email protected] email go to that inbox, and then when I reply it will have come from [email protected], but I can't set up such an account in Mail since the emails are forwarded automatically and as such I do not have - nor do I wish to have - POP/IMAP access to the [email protected] email account.
    In other software, I have been able to simply enter a 'from' email address into a 'From' field, but this doesn't seem possible with Mail.
    Anybody got any ideas? I'm using Leopard, so is Mail any different on Snow Leopard?

    Sorry, you can't do this in Mail, and I'd love to know which email client you say you've used that does allow this; I've never seen one yet.
    If you want to use that email address and send mail from that account, you need to set it up in Mail. There is no difference in basic features between Mail in Leopard or Snow Leopard, so upgrading to Snow Leopard will not help you in any way.

  • HT1918 i can not change the address from USA to Canada so i live in Canada now How can i do that? or if i can not change How can i delete an account and make the new account by use the same email address?

    because i can not use the Canadian card to redeem in my account from USA. should i delete an account and create the new one that should valid in Canada by using the same email address? or what should i do? (i really want to use my recent email)

    Hi Kazmania89,
    Welcome to the Support Communities!
    If you require additional assistance with this, click on the link below for guidance:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Once you are able to gain access to the old Apple ID, this article may be helpful:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?

    First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with. For more information on how to move your content, see these articles:
    Mac:  iTunes for Mac: How to copy purchases between computers
    PC:  iTunes for Windows: How to copy purchases between computers
    Next, authorize your computer to play content with each Apple ID in iTunes. Once your computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch. 
    Cheers,
    - Judy

Maybe you are looking for

  • Can't link a style to text on a page; text keeps changing to black instead of blue

    I have links to the web pages I'm working on at the bottom. I am trying to make the text and color consistent on two pages on the website I am working on. One page is a printer friendly version of the other. [I have looked and looked under Dreamweave

  • Data Mapping from HPM to HSF

    This is my problem. we have an application in HPM version 9.3 and a replication of it in version 11.2. These days all work done in 9.3 application is being migrated to 11.2 application. But the problem in mapping the data to HSF. When I try to map th

  • Address book exporter with Lion

    Address book exporter does not work with the new Lion operating software.  How do I now export my address book into a csv file?

  • VAT REGISTER

    Hi How VAT IS captured in CIN in purchasing? How the credits are taken? How vat register maintained?Like excise register maintainenece How vat utilized aganist the out going materials?During selling How the vat is payed to the government at the month

  • Business package for master reference data

    Hi,   can anyone know is there any business package for master reference data.i.e any standard iviews are there for MRD with workflow. Thanks, vinay