JavaMail for receiving mail?

I've used JavaMail in the past, but always as a client sending SMTP messages. Now I have a need to write a specialized app for receiving mail, processing it, and then sending it as an SNMP trap.(using API's from something like Trap Console)
We have systems on our network that do not have the ability to send SNMP traps and that is our primary way of getting information about problems.
Anyway, can I use JavaMail to write a server that will listen on port 25 like a standard SMTP mail server and receive mail so I can process it another way?
Are there any code samples available anywhere for receiving mail?
Thanks,
James

I don't know if this will help but you might want to take a look at james. Here's more info:
http://james.apache.org/index.html

Similar Messages

  • How to use XML Anonymizer Module for receiver mail Adapter?

    Hi All,
             I would like to know how to use XML Anonymizer Module for receiver mail adapter so as to change the namespace to http://sap.com/xi/XI/Mail/30 from my original namespace? Thank you all in advance?

    Hi,
    This may help u:
    Replacing one namespace with another using XML Anonymizer Module
    Thanks
    Amit

  • How to keep same sender file name for receiver mail attachement

    Hi,
      i am working with File to Mail scanario. There i want to pick a flat file from native file system and then send it as email attachment. Now i am able to send the file but the flat is getting converted as an xml file. is there any method to keep the same sender file name and type for receiver mail attachment. i am not using any mail package. i am using XI payload and keep attachments.
    Thanks in advance.
    -Siva

    Hi,
    Yes,With out using the mail package u can send the Mail Attachments to the receiver side,
    In that case no need of Integration Repository objects.
    Chck this links.
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    /people/community.user/blog/2006/09/07/email-reporting
    /people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    If u dont get ur requirement then let me know ur Mail id i will send u a Doc.
    Regards,
    Phani
    Reward points if Helpful

  • Incorrect time for received mail.

    I am having a problem with mail, when an e-mail is received it is showing 5 hours ahead of time (if I receive mail at 10:00pm it will show as tomorrow 3:00am). I have checked the time zone setting, and the server, both are correct. I have setup another user account and have the same result. If I use Entourage the time will be correct. Any help would be appreciated.
    Thanks

    I have just switched to Mac Mail from Entourage and I'm having the same problem. I receive e-mail at 730a today showing I rec'd it at 230p today (and it's not even 230p yet). I've checked the time zones in my system preferences and tried changing to have the computer set its own time.
    I'd like to stay with the program if I can get this figured out.

  • How to setup XI (specifically for receiving mail+attachment)

    Hi,
    I am new to XI. After having had a training for 5 days I have my first assignment and immediately I face a lot of problems (as expected....:-))
    Situation is as follows. I have to connect 2 non-sap system via XI. External system 1 is a mailserver that sends a mailmessage + attachment to XI. XI has to read the message, convert it to a customer-specific XML and send it to external system 2. I already made the following entries:
    SLD:
    - 2 products (mailserver + external system);
    - 1 softwarecomponentversion (or should I have 2? 1 for mailserver and 1 for external system?)
    - 2 technical systems
    - 1 business system
    IR:
    - 1 integration scenario with 3 swimming lanes (first with activity SendMailMessage on mailserver, second with IntegrationProcess on external system with 2 activities (ReceiveAbstractMailMessage/SendAbstractXmlCustomerMessage), third with activity ReceiveXmlMessage on external system)
    - 1 datatype for target-structure
    - 1 messagetype for target-structure
    - 1 external definition (mail XML)
    - 4 message interfaces: MIIA for incoming mailmessage, 2 MIAA for abstract interface, MIOA for outgoing XMLmessage to customer)
    ID:
    - 1 business system
    - 2 communication channels
    - 1 interface determination
    - 1 receiver determination
    - 1 sender agreement
    Now...my questions...:
    - first of all...does the above makes some sence :-)?
    - do i have to create 1 or 2 software component versions? My idea is 1, but i am in doubt if I have to create a specific SCV for both products)
    - how do I configure the communication-channels?
    - General problem: I am facing problems configuring the ID and SLD so every help is welcome.
    Lot of questions, I really hope somebody can help me out here....
    Thanks in advance!

    Hi, JW:
    Do not worry, everyone in this forum has their own starting stage.
    Regarding your questions:
    - in the sender SMTP SCV, I also have to create a MT for the mailpackage?
      A: No, if you use mail package, you do not need create message type manually, the mail package already has message type level object defined.
    - do I create MIOA in sending SWCV, MIIA/MIOA in mapping SWCV and MIIA/MIOA in receiving SWCV? Or is it only needed to create MIIA/MIOA in receiving SWCV?
    A: Yes, for Message Interfaces, you need to create One MIOA in sending SWCV and One MIIA in receiving  SWCV
    - only 1 MI with 1 MM on the mapping SWCV, right?
    A: Depends.
         One Interface Mapping for sure need to be created.
         MM: depends, if you use XSLT Mapping, you might not need create MM anymore.
         In your interface mapping (IM), when you choose mapping program, you choose XSL type, then, select your     
         imported XSLT package (make sure your *.xsl file is saved, zipped and imported into IR)
         If you use Java Mapping, make sure, you exported your project into Jar file from your IDE, eg, NWDS, and 
         imported into IR, In your interface mapping, you choose Jave type and select your imported Java package.
    - I think I cannot use the graphical mappingtool to map the mail-xml to the customer-xml. I will need an XSLT or java. So the message itself is not simple. Does this mean I need a third swimminglane for the busuinessprocess afterall in between the 2 that you mentioned? Or can I still manage this by using just 2 swimminglanes?
    A: Yes, I think you need XSLT or Java mapping. But do not confuse it with the Integration Scenario.
        If you do not create Integration Scenario in IR, your interface will be still working.
        The purpose to create Integration scenario is to graphically representing your interface design, your message   
        flow, and also can be used in ID to import, or use wizard to create Configuration Scenario. If you do not
        create Integration Scenario, you can still be able to manually create configuration scenario in ID.
        If you still need to create Integration Scenario in IR, two swimming lanes are enough to representing your sending application component and receiving application component. There is no need to have third one except you have BPM involved in your process.
    If you have some detailed questions, you might need to search this forum, or marketplace to search OSS notes
    You are going to have a lot of details to explore, enjoy your practice !
    Liang

  • Confirmation for received mail?

    Hi everyone, I have a big question: is out there any option for Mail that confirms or send a confirmation when a mail is received?
    I have seen this in the old MaxBulk program. And for work, I NEED to know when my email is being read or trashed, or even not readed at all.
    I found some options for the windows world (sorry for me, still on the PowerPC side), like MSGTag, or online services like http://www.readnotify.com or http://support.hubris.net/email/email_confirmation.html
    But I will be much relaxed if all happens in my computer, than over third party services, becouse the info I have to send sometimes have confidential, and criticall data, and don't whant to be read by extrangers. But I could trust over time, if I have no other option.
    does anyone have any idea of something like that for Mac?
    Thanks to all,
    Pablo

    hi there--
    you are out of luck i think. you might want to check out this post. http://discussions.apple.com/thread.jspa?messageID=2488919&#2488919. i was hoping i could find something for you. i have been told there is nothing in mail that supports this, and it looks as though that is correct. if it is very important, you could try a different mail program. there are some workarounds suggested in the post. [ 8 ) ]

  • Entourage prob:  I can send mail but checking for received mail crashes app

    This just started this afternoon and I have no idea how to fix it.
    I can send mail in Entourage without a problem. But once the autocheck goes or I click "Send & Receive", Entourage crashes with "The application Microsoft Entourage has unexpectedly quit."
    I've rebooted a few times, and it's not helping whatsoever.
    I don't know if it's a virus, or if my Entourage file is corrupt, or what.
    Any ideas? Thanks.
    iMac 1 GHz PowerPC G4   Mac OS X (10.3.9)   Entourage 10.1.0

    I have just tried changing my incoming server name to pop3.virginmedia.com and, hey presto, it's working. Heaven knows why it simply just stopped in the first place... thank you for looking, though!!

  • Is there any limit of JavaMail for sending mails?

    When am sending more than 700 mails at a time then error appears that "server is too busy please try again"
    Is there any deficiency in my code or limitations in JavaMail ?
    Thanks & best regards

    The limitation is in your server.

  • Error in receiver Mail adapter: Client was not authenticated

    Hi.
    My requirement is to send email via PI to an extermal mail address. I am trying to use the following configuation for the same.
    Tramsport Protocol: SMTP
    Message Protocol: XIPAYLOAD
    URL: To get the value of URL, execute transaction SCOT in PI system. Double click on SMTP and get the Mail host from there (name). So the URL has been specified as smtp://name
    Comfigure User authentication - Checked
    User: My outlook email address
    Password: My outlook email password
    From:  My outlook email address
    To: External address to which the email needs to be sent
    Content encoding: base64
    But the email is not getting sent. when I check the adapter engine I see the errors:
    Mail: error occured: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated
    Mail: error occured: com.sap.aii.af.lib.mp.module.ModuleException
    MP: exception caught with cause com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated
    Adapter Framework caught exception: Failed to call the endpoint
    Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint  [null "null"]; nested exception caused by: java.io.IOException: server not responding OK to MAIL FROM; 530 5.7.1 Client was not authenticated.
    Can anyone please suggest what changes are needed to make this work?
    Any help is greatly appreciated.
    Thanks.
    Anuradha.

    HI Anuradha,
    Check the below link for receiver mail configuration and follow the steps accordingly.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0a27c01-26b0-2c10-bd8a-94498efa7ff6?quicklink=index&overridelayout=true
    Regards,
    Naveen

  • Receiver mail adapter problem

    I am doing File -XI-Mail scenario.I am able to pickup the file but don't receive any mail.In RWB in communication channel monitoring I can see the error log for receiver mail adapter.The error is
    "failed to send mail: java.net.SocketException: Network is unreachable: connect"
    The configuration parameters I am using are:
    Transport Protocol:SMTP
    Message Protocol:XIALL
    URL:smtp://Outlook server host
    Userid:xxxxx
    PWD:xxxxxx
    I am at client network and the my outlook server is in my company network which we connect using VPN from client.Is this could be the reason for this error?
    Please let me know if someone has come across such error.
    Thanks,
    Rekha

    hi,
    >>>"failed to send mail: java.net.SocketException: Network is unreachable: connect"
    probably there's no communication between your XI server and mail server machine and XI server cannot access the mail server
    you need to report it to your network admin so it will allow the connection
    or he will set up a mail server on the XI server machine
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to receive mails from External mail ids to SAP SBWP

    Dear Experts!!!!!
    Gud Evening and Wish you all a HAPPY DIWALI !!!!!!!!
    I have requirement like suppose say I have my company mail id for eg: abc<AT>xyz<DOT>com and also have a gmail ID. My login ID in sap is say BASIS. Normally, if I configure SMTP with our exchange server then I can send mails from SAP to my company ID and also gmail ID.
    Similarly, I want to know like what needs to be configured for receiving mails in to SAP if I send mails from my compnay ID or gmail ID. To be more precise...my interest is mostly from Gmail i.e., if I send a mail from my Gmail ID, I should be able to see the mail in SBWP of my BASIS login.
    Please suggest how this can be acheived.....
    Thanks & Regards,
    Sharath

    Hi Sharath,
    Generally it is not recommended to configure income mail on SAP.
    as it increase heaby memory utilization as well as it make big impact on sap database. i.e it is unwanted increase the databse of sap.
    Thanks
    Anil

  • Sending Mail, Not Receiving Mail, not .mac

    I just set up Mail to go through my Embarq account, and it works just find sending mail, but not for receiving mail. I have gone through the preferences a couple of times and carefully re-entered the information, but nuthin'. For my personal needs, being able to send is more important, but I'd like it to work all of the time! I followed the suggestions on this board, but can't seem to remedy the situation.
    Any suggestions?

    Hi, I am in the UK and had the same problem. FWIW, I updated my G4 MDD DP867 to 10.5.7 and nada no mail send, only receive. I had also updated my MacPro 8 core to same spec. I looked at that and it worked. In the MP8 the difference was my out was saying this> smtp.demon.co.uk:username <and it should be> post.demon.co.uk. <I tried the new settings in G4 and nothing still worked, So I went to connect doctor and had it running with both send addresses at the same time. All of a sudden all the previous test mails started to fly out. I quickly saved the post. setting and this time it worked. Now it is running OK. Maybe you can try a similar method using a non address against the real one, it may kick it into life. I still do not know why the MP8 is running with a wrong address but I will leave it alone. Anyway good luck, hopefully 10.5.8 will not be so traumatic.

  • How to identify  received mail is failure delivery notice mail in javamail?

    Hi friends,
    My requirement is that i have to identify failure delivery notice mails while receiving mails through javamail api pop3..
    Is there anyway to idenity those among normal mails?
    luking forward ur replies dudes...

    If you search this forum you'll find some examples, including a simple modification
    to the msgshow.java demo program to illustrate the basic use. And don't forget
    to read the javadocs for the com.sun.mail.dsn package.
    The basics are...
    Check for a message of type "multipart/report" (isMimeType), fetch the content of
    that message (getContent) and cast it to a MultipartReport object, then use the
    methods of that object to extract the data and process it however you want.

  • I have 3 mail accounts in apple mail. One of them has had the spinning ball going for several days and I cannot receive mail in this account. I can receive mail in this account on my iPad and by signing into aol on safari. It's obviously a glitch in Apple

    I have 3 mail accounts in apple mail. One of them has had the spinning ball going for several days and I cannot receive mail in this account or delete messages etc. For some  reason, I CAN send mail on Apple mail using this account, although it takes several minutes. I can receive mail in this account on my iPad and by signing into aol on safari and internet explorer on my office PC. It's obviously a glitch in Apple's Mail. I've deleted this account and reopened it in Mail on my Mac Pro with no difference. Any suggestions would be greatly appreciated, this E amil account is major to my business.

    http://support.apple.com/kb/TS3276
    sounds like a corrupt database or index
    the glitch is your home folder and mail folder, esp look at syncservices
    I'd post in the mail or Lion forum where you will find similar issues being discussed.
    http://www.apple.com/support/mail

  • After enabling cellular data, i am receiving mails even if disable "use cellular data for mail", due to this data usage usage use is more, if we have fix please let me know

    Phone Model and OS
    Model - iphone 5
    IOS 8.0.2
    Problem Description
    After enabling cellular data, i am receiving mails even if we disable "use cellular data for mail", due to this data usage usage use is more, if we have fix please let me know.
    Steps:
    1. Enable Cellular Data
    2. Disable mail on "use cellular data for mail
    3. check whether mail is received or not
    tried multiple times and i am getting more billing amount because of data usage

    Mail isn't the only app using data. Turning it off there has no effect whatsoever on whether the rest of iOS or other apps you have installed. In fact most apps use data these days, at a minimum for Notifications and often for gameplay and other features.

Maybe you are looking for

  • Open all PDFs in same window option in Acrobat 9?

    All my PDFs open in separate windows/acrobat instances. There used to be a feature in option to allow all to open in same window. Cant seem to find it in verison 9.

  • Plz reply urgent!!!!!!!!!!!!!!!!!!!displaying the blank space with $0

    Hi all, Plz help Its very urgent!!!!!! I have a requirement to show the data of consecutive two months in the report with the difference of two months in another column "variance". ex: mm1/yyyy , mm2/yyyy, variance = mm1/yyyy-mm2/yyyy I have made a n

  • The print control could not work?

    Hi, I want to set my characters upside down in my smartforms,and i got something from the net about print control.I used the print control 'COL2V' in 'CNSAPWIN'. But when  i printed this form,it seems the print control did not work.So,anyone who coul

  • Component in awt or swing recieving a primitive?

    Hi, I am trying to make an application, and looking in the api i couldn?t find any component either in swing or in awt which can work with a primitive data type. I would be grateful if someone could tell me if there is a component class whicha i coul

  • PPR error

    Hello, I've been working on a small ADF application (started in JDev 11.1.1.3 and, now, on 11.1.1.4). It works very well in the Integrated WLS and also works well in our many test environments but, when we put it in production, we are getting repeate