E-mails landing in junk folder! FROM address not getting validated!

Hi,
I am designing an application which is going to send emails to a group of people in my office every month. I have been given a dedicated SMTP server for that.
The java code which I have written is sending mails to its recipients but the problem is that they are landing in their junk folder.
One thing I have found out is, the java code is not validating the FROM address. i.e even If I enter an invalid email id, It is being sent. The worst part is if I use a valid email id, it is not being recognized as a legitimate one.
The FROM address in the mail is literally a "String" in which u can put anything! (Eg. The emails are being sent if I put the FROM address as "1234567"!! )
One of the option is to make that mail as "not Junk" in the outlook. But I cant ask everyone to change their filter settings.
Is there any way in which the java code can first authenticate whether the FROM address is existing and then send the email if it is valid. (I am not talking about the SMTP authentication!)
I browsed a lot but couldn't find the answer for this. Please help me with this.
Regards,
harsha_t

Sorry, I guess I wasn't clear. I was suggesting using Thunderbird as a debugging tool,
not as a solution to your problem. Knowing whether or not it has the same problem
would tell us whether the problem is some error in your program, or some magic in
Outlook that allows it to work.
If the ultimate destination mailbox is on some other server, then there's the server that's
deciding whether the message you send is junk or not. It probably has nothing to do with
the way you talk to your mail server. It might be something related to the content of the
message you're sending. If you send a message with exactly the same content using
Outlook, does it get sent to the junk folder?
I've heard rumors that some spam filters will look at the Message-ID header and consider
any message with a JavaMail-style Message-ID to be spam. (Apparently some spammers
like to use JavaMail.) You might try overriding the default Message-ID with one of your own.
Subclass MimeMessage, override the updateMessageId method, and set a value for the
Message-ID header. Use something simple at first just to prove whether or not it makes a
difference.

Similar Messages

  • Mail Going to Junk Folder that is Not Junk

    I have mail that is going to my junk folder that is not junk.  When I look at the "thumb" symbol for the mail, the thumb is down, meaning that it doesn't think it is junk either.  Even when I turn my "Enable Junk Mail Filtering" off in Preferences, the mail still goes to junk.  No idea how to fix this.  It seems like a glitch!

    Thank you Nubz N. and BobHarris for your feedback on the issue.  I had actually already tried resetting my junk settings in Apple Mail and had no success, and trust me BobHarris, I was not using the Junk key as the delete key.
    It turned out that I had to go directly to the email source's website, which in this case was Gmail, and change my junk settings there.  Apple Mail was perceiving the incoming mail as "Not Junk", but because Gmail was viewing it as junk, it was still going to my Apple Mail junk folder.  I'm not sure why Gmail was viewing it as junk, as I had never clicked junk before.  Anyway, after changing the junk settings there at Gmail, the filter has now been working properly again.

  • I have mail going to junk folder, that is not marked as junk

    I have been using mac for almost a year and I starte dusing the mail app that comes with the os, I have sevral email accounts on it, some mail that has never been marked as junk is going to the junk folder and when i click on the junk icon it markes it as junk click on it again and unmarks it as junk then i transfer it to inbox but the next email will go to junk, this is happaning with some email from people i dont have in my adress book, and emails from twitter and facebook. is there a way i can mark certain senders as safe? for it to go into the inbox instead of junk?
    please let me know
    many thanks
    Jason

    Can't you turn it off completely?
    I ave not much experience with spam/junk handling in Mail. I am not sure whether marking a mail as spam/junk it will be remembered always. There are third party spamfilters that you can install. I do not use them.
    Lex

  • Mail going into junk folder that's not junk

    I have tons of emails suddenly going into my junk folder, but they are not even being marked as junk email. These are emails that used to always come in fine. It's happening to all my accounts, so I don't think it's to do with the provider, especially since one is my Mac account. Any idea what's going on?

    Mail>Preferences>Junk Mail
    Uncheck the 2 boxes marked below.

  • Good mail going to Junk folder -- even Apple mail

    I know there are other threads on this, but no one seems to have a resolve for it.
    Mac OS X 10.6.8
    Just got my computer repaired at Apple, new harddrive, new video card.  So it's starting anew.
    However, even my MacBookAir is putting my GOOD MAIL in my JUNK FOLDER.  So it's universal on all my devices.
    Why is my mail going to my junk folder.  It's annoying to have to check every single piece of mail with "this is not junk" and then drag it to the IN box.  And then even that doesn't work.  I'll still receive the email from the same sender back into my Junk Folder.
    I see a LOT, hundreds, of VIEWS for this issue, but no one is yet to resolve it.
    Hope someone can solve it.  Thanks

    Well, let's put it this way, it was never a problem before.  A new harddrive was installed on my computer so I'm starting from scratch.  I have no "rules" set yet.  My mail supplier is MAC --.mac, .icloud -- mail.  So my provider is MAC or APPLE I guess.  It's mac mail.
    Everything is set to "default" right now. I followed someone else's instructions to RESET the Junk Mail.  Did that.
    But I don't know any other proceedures to take to stop ALL MY MAIL from going into the JUNK EMAIL BOX.
    Never did that before, so there must be some setting, or not, that is causing it to do that.
    I have "enable junk mail filtering" checked.  The following types of messages are EXEMPT, my address book, previous recipients, messages using my full name, all checked.
    Certainly "previous recipients" should not be sent to the junk folder if that option is checked to be exempt.
    What's left?

  • E-mail that received in outlook from the Notes address error code:0x80070005-00000000-00000000 occurs

    When reply to the e-mail that received in outlook from the Notes address, error with an error code:0x80070005-00000000-00000000
    occurs (please refer to attachment),
    and we could not send mail. (Error details: Your message did not reach to the intended recipients, below email could not be delivered, please inquire to Network manager) When Created new
    and sent, e-mail sent became possible. Also, there was no mistake of e-mail address.
    Is there an alternative that avoids the current problem?
    If I perform a new email, it is possible to send.

    Hi,
    Which type of email account are you using?
    Have you checked this issue from web access?
    If the email address is saved as a contact in your Outlook, please try to delete it and then try to reply to the email to test if the problem persists.
    If you are connected to an Exchange server, please have a look at this KB article and check if it helps:
    http://support.microsoft.com/kb/195671/en-us
    Best Regards,
    Steve Fan
    TechNet Community Support

  • How to send an email with from address not as a SAP user id

    Hi,
    sender = cl_sapuser_bcs=>create ( pv_user ).
    I am using the above piece of code to send an email.
    In the method "CREATE" , I CAN PASS ONLY THE SAP USER ID.
    But i want to pass the email address (user) which does not  a SAP user id?
    how to do this.

    Hi Brad Bohn,
    I have coded  like below. I could see the mail in SOST, in that from address is as 'myname'.
    But the mail does not reaches to the recipient.
    Can you tell me where the problem is?
          DAta:: from_addr TYPE REF TO CL_CAM_ADDRESS_BCS,
                     lo_bcs_recipient  TYPE REF TO if_sender_bcs,
                     send_request TYPE REF TO cl_bcs.
          CALL METHOD cl_cam_address_bcs=>create_internet_address
            EXPORTING
              i_address_string   = 'myname at the rate of domain'
              i_address_name   = 'myname'
            RECEIVING
              result                    = from_addr.
                CALL METHOD send_request->set_sender
                  EXPORTING
                    i_sender = from_addr.
              CATCH cx_send_req_bcs .
                IF sy-subrc <> 0.
                  CLEAR sy-subrc.   " added to hide warnings.
                ENDIF.

  • I updated to iOS5 weeks ago; but suddenly I can't open the mail, contacts, calendar settings and I am not getting any email to my iPad2 AND it keeps trying to connect and it is runnijng the battery down...any help?

    I updated to iOS5 weeks ago; but suddenly I can't open the mail, contacts, calendar settings and I am not getting any email to my iPad2 AND it keeps trying to connect and it is runnijng the battery down...any help?
    I already tried rebooting, and I tried hooking it up to itunes as well, no luck there either.

    Try to reset all settings.
    Settings > General > Reset > Reset all Settings.  It won't delete your data.
    When you say reboot, do you mean you pressed the home and sleep button at the same time until it restarted? 

  • Voice mail going to junk folder

    CUCM 8.6
    Unity 8.6
    Outlook 2010
    I have a user that is having her voice mail go to her junk folder and not her inbox like we have set up for her. Does anyone know the solution?
    Thanks in advance!
    Bob

    Add the from address to safe senders list or disable the client-side junk folder.
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Valid mail goes to Junk folder

    Apple's Mail has developed a serious flaw with Junk Mail filtering for
    .Mac addresses ([email protected]). When Junk Mail filtering is enabled with
    Junk Mail being automatically moved to the Junk Mail folder, messages
    addressed to the old .Mac addresses ([email protected]) are being
    automatically routed to the Junk mail folder without being marked as
    spam or coloured brown, despite sender being in the Address Book or in
    Previous Recipients. This does not happen to mail addressed to MobileMe
    (i.e. [email protected]).
    When MobileMe was introduced Apple assured the users of the old .Mac
    service that nothing would change. This does not appear to be the case.
    Yes we still get our mail addressed to the old .Mac address but it is
    treated as spam., though not identified as such. There is no way to
    change it to not spam as it is not marked as spam. It just ends up in
    the Junk folder.
    This is particularly annoying on an iPhone. When you go to read a new
    message in the In box, it will suddenly disappear because it's been
    filtered to the Junk folder.
    Both my .Mac address and my MobileMe version of my address are in my
    Address Book. I have reset my Junk Mail a number of times now both on
    MobileMe website and in Mail and yet this problem still persists despite
    assistance from MobileMe customer service.
    Is there a solution to this problem?

    Vince
    I have looked at Mail's help menu briefly. You can 'teach' Mail what is/is not junk mail. Here's the help topic that could help:
    "Marking messages as junk or not junk
    Mail can analyze the content of incoming messages and identify which ones are likely to be junk mail. It highlights these messages in color (by default, in brown) in your Inbox.
    If you receive messages that have been highlighted as junk, or messages that are junk but weren’t highlighted, you can mark the messages as not junk or junk. When you mark messages, Mail updates the junk mail database accordingly. Over time, Mail will identify junk mail more accurately.
    To mark messages as junk or not junk:
    To identify one or more messages in your Inbox as junk mail, select the messages and then click Junk in the toolbar, or choose Message > Mark > As Junk Mail.
    To correct one or more messages that have been misclassified as junk and moved to the Junk mailbox, select the messages and click Not Junk in the toolbar, or choose Message > Mark > As Not Junk Mail."
    While this doesn't explain fully why the filter isn't working for you as you had hoped it might enable you to get it working as you want - hopefully learning over a short period of time. I still think you should communicate the problem to Apple so that their techs can try to replicate and resolve the problem.
    William, I'm somewhat disappointed with your obtuse replies, though I think I understand that you are saying it could be some issue with the specific settings Vince uses or perhaps some other software conflict.
    Neville
    Message was edited by: Neville Mayfield

  • All mail going in Junk folder

    Since upgrading to Mavericks all my mail is going straight into my Junk folder apart from a trial email I sent to myself. It seems that it is not recognising genuine mail sent from anyone other than people in my contacts.
    Has anyone any idea how I can change this from happening?

    Have you made any changes to the junk filter in Preferences > Junk Mail > Advanced? Try this:
    1. Go to Preferences > Junk Mail, disable junk mail filtering, then enable it again. This resets the rule that governs what the junk filter does.
    2. Choose either Training or Automatic mode (it doesn’t matter) and leave the other options checked. Click Advanced to see how the junk filter rule is defined now if you want, but don’t touch anything there.
    3. Reset the junk filter database (Preferences > Junk Mail > Reset).

  • "Good" mail going into Junk folder

    For the last 2-3 weeks I have started seeing my "good" mail, get delivered to my junk folder. This is mail that I've been receiving for months or even years. None of this mail is personal: some of it is from politicians, some are recipes, one was my place of employment, Macworld. Occasionally I'll send myself an email from my .mac account to my .mac account and it ends up in the junk folder. Almost everything that's going to my junk folder are emails that I have signed up for at one time or another. I'm getting "true junk" delivered there, too.
    Any ideas why this is happening and what I can do to reverse the trend? Yes, I'm hitting "Not Junk."
    Thanks.
    Chip

    Do you have two different accounts forwarded to one? That's not good.
    On your wife's account, your e-mail messages are junk because they aren't hers. The best thing to do is have separate e-mail accounts. You could also create a rule to send your email into a different folder before the junk filter sees it.
    In the future, please start your own discussion topic.

  • Mail: Yosemite 10.10.2 -- more iCloud mail sent to junk folder?

    I just upgraded to Yosemite 10.10.2 and noticed a lot of my iCloud account mail is now going to the junk folder, not my inbox. These are messages that I consider OK. In the past, my iCloud emails were generally sent to the correct folders ...
    Anyone else noticing this?

    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partitiion & use Disk Utility from there to Repair the Disk, then Permissions.
    Re-install if that doesn't work.

  • Mail going to junk folder is not marked as junk

    I have an automated email that I get occasionally. Without exception it ends up in the junk folder. However, even sitting in the junk folder, the message itself is not marked as junk.
    I've turned off all rules, and they still go to the junk folder. Any ideas?
    may be relevant: the email address is a google business apps email address.

    There are quite a few threads discussing this.
    Google is likely moving the items into it's spam folder which shows up as "Junk" in Mail.
    Since Mail did not put them there, it doesn't mark them as Junk as it has no idea why they were put there.
    As Gmail is IMAP-ish, your local copy matches what is on the server. Since it is in Spam on the server, it shows up in Junk in Mail.

  • When I mark a mail in the junk folder as 'not junk', is there a way to have it automatically move to the inbox?

    Apple Mail keeps putting good messages into the Junk folder. I mark them as 'not junk', but then they just sit there. It is really tedious to have to move them back to the inbox, and change the colour back to black. Is there any way to do this automatically?
    I originally placed this question on the Snow Leopard group, but since then I have updated to Lion. I was hoping that Lion would have provided a solution, but it seems not. In the Snow Leopard group, somebody posted a script which apparently works in Snow Leopard, but I have no idea if it works in Lion, as there doesn't seem to be any way to load scripts.
    This is the script, anyway.
    It was given to me by <Bernard Hills> but I don't know who wrote it.

    OK, I've discovered how to access the library.
    It's here: http://techheavy.com/2011/07/access-the-user-library-folder-in-lion/
    But I don't really want to try that script in case it screws something up. I know zero about scripting.

Maybe you are looking for

  • Once and for all

    Ok guys and girls, first let me apologize for starting yet another install link, but I am still confused after reading every link so far. I also am have the problem with itunes and quicktime opening for like a second and then closing. I don't have No

  • Import via firewire no longer working

    Hi, I'm using iMovie 10.0.2, and trying to import from a Sony DCR-TRV320E camcorder over firewire into my late 2010 13" Macbook Pro under Mavericks.  Everything is up to date software wise as of today. This setup worked fine under Lion (I skipped mou

  • So ios 6 will not be on ipad 1.

    On the basis the ios 6 will not be on the first generation ipad, does this mean that apple will not issue any updates or support for the product again. Just want to know if ipad 1 is now obselete or what?

  • File Open/Selection Dialague crashes my computer

    My Mac simply won't let me file -> open or file -> browse anything. I've tried CMD + O in photoshop, Word, iTunes, and Firefox and every time my Mac beachballs and then freezes. I can replicate this problem all the time without fail. However, it's no

  • IOS 8.0.2 can't play video on TV any longer?

    I used to play videos from my IPad on TV through a Cambridge ID100 dock but since IOS 8 update it does not work any longer although it still works using my IPhone 4 ... Any idea?