Implementing Java Mail Service

Hello,
we' d like to implement email-functionality through the portal. We would like every user to see his inbox and to be able to send mails to outside our domain.
I used standard iView com.sap.netweaver.coll.SendEMail for implementing the "send"-functionality. Although i cant see the mail system i created in systemlandscape in user mapping, i m quite surprised it works!
Every user is able to send email in his own name via our mail server mail.company.com.
Can you explain this phenomenon? How can I access the users inbox?
Thanks for your hints
Markus

Hi Markus,
> I know how to implement mail-connectivity in EP5.
> Unfortunately the configuration changed in EP6.
That's what I've explained.
> Could u give me any hint how to configure
> an inbox iview?
If you want to see incoming mail, you have to connect to the server in question, but the standard way supported is using the corresponding native web client, see http://help.sap.com/saphelp_nw04/helpdata/en/7c/6a469702474146a8ef2f97fe880b2f/frameset.htm
E.g. for integrating Outlook see https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/integration of outlook web access into sap enterprise portal.pdf
Hope it helps
Detlev
PS: Please remember to consider rewarding points...

Similar Messages

  • SAP J2EE engine for configuring Java mail Service.

    Hi
    I am experiencing following exception when trying to use JAVA mail API.
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 554 <email@ddress>: Recipient address rejected:
    Relay access denied
    email address above is valid..
    I have to use SAP J2EE engine for configuring Java mail Service.
    But is does not hav any such access permissions to check....!!

    Relay access denied
    To send mails from SAP system through the mail server which you have configured, SAP server should be permitted to relay through the mailserver. Then only you will be able to send mail to external email address. Otherwise, you will get the above message.
    You must contact the mail server administrator and ask him to add the ip of SAP server into the allowed relay list.
    If you are using MS exchange server as your mail server and if you have administrative access to the Exchange box, you can do it yourself by following the below steps:
    1.Verify that your Exchange computer is not an open mail relay. To do this, follow these steps:
    a.      Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager.
    b.      In Exchange System Manager, expand the following object:
    Servers\Your_Exchange_Server_Name\Protocols\SMTP
    c.      Right-click the virtual SMTP server where you want to prevent mail relay, and then click Properties.
    d.      Click the Access tab, and then click Relay.
    e.      By default, open relay is blocked. The default settings are as follows:
    u2022     The Only the list below check box is selected.
    u2022     The Allow all computers which successfully authenticate to relay, regardless of the list above check box is selected.
    f.      If you must permit a single computer, a group of computers, or a domain to relay through the server, click Add. In the Computer dialog box, click the appropriate selection for the computers you want to relay through the server. Then, type the required information.
    Note Enabling access by IP address or by domain name is helpful for users who do not authenticate with the Exchange computer.
    g.      In the Relay Restrictions dialog box, click OK.
    h.      Click Apply, and then click OK in the Default SMTP Virtual Server Properties dialog box.
    hope this helps you out...
    Cheers,
    Jazz

  • Error implementing Java Mail

    I downloaded the Javamail package extension and placed the mail.jar file in my WEB-INF/lib directory. Then I reloaded the application and did a restart. I am getting the following error message.
    com.sun.mail.smtp.SMTPSendFailedException: 550 bosauthsmtp12: Host 207.119.46.38: No unauthenticated relaying permitted
    Any help would be appreciated.
    Thanks,
    Julie Hall

    I am still having problems after reading the information. The mail is being called by a jsp program. I've taken most of the code from a book on JSP's. Here is the code inside my jsp file.
    <div id="MainLayer" style="padding-left:10px;padding-right:10px; overflow:hidden; height:100%"> <!-- InstanceBeginEditable name="Main" -->
    <%@ page import="java.util.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="javax.mail.*" %>
    <%@ page import="javax.mail.internet.*" %>
    <%@ page import="javax.activation.*" %>
    <jsp:useBean id="inn" scope="request" class="bnbTexas.Inn"/>
    <jsp:setProperty name="inn" property="*" />
    <%
         String host="mail.csites2go.com";
         String to = "[email protected]";
         String from = inn.getEmail();
         String messageText= "Test of email";
         boolean sessionDebug=true;
         Properties props = System.getProperties();
         props.put("mail.host", host);
         props.put("mail.transport.protocol", "smtp");
         Session mailSession= Session.getDefaultInstance(props, null);
         mailSession.setDebug(sessionDebug);
         try
         Message msg = new MimeMessage(mailSession);
         if (from != null)
              msg.setFrom(new InternetAddress(from));
         else
              msg.setFrom();
         InternetAddress[] address = {new InternetAddress(to)};
         msg.setRecipients(Message.RecipientType.TO, address);
         msg.setSubject("bnb Directory");
         msg.setSentDate(Calendar.getInstance().getTime());
         msg.setText(messageText);
         Transport.send(msg);
         catch (MessagingException mex) {
         mex.printStackTrace();
         out.println("mail was sent to " +to);
         out.println(" from " + from);
         out.println(" using host " host ".");
         %>
    <!-- InstanceEndEditable --></div>
    </div>
    Do I need to put the username and password in the properties list before getting a session??

  • Help needed for java mail services

    Hi All,
    I am new to JMS.Can u help me in getting some gud tutorial?
    Any help is appreciated.
    Thanx in advance....

    Hi Praveen,
    Go thru Google to get tuto.

  • Java Web Services Security with 10.1.2.1

    I have developed a Java Web Service with J Developer 10.1.2.1 which was deployed onto Oracle 10.1.2.1 application server. Now I have to implement Security for this Web Service (similar to ws-security etc.,), how I can achieve Security with 10.1.2.1?
    J Developer 10.1.3.1 seems to have the feature to implement Web Service Security, but a Java Web Service developed using J Developer 10 .1.3.1 with security enabled cannot be deployed onto Oracle 10.1.2.1 application server.
    Please help as how I can implement Java Web Service Security with 10.1.2.1?
    Email: [email protected]
    Thanks for the help in advance.

    You can use Oracle Web Services Manager to virtualize the end point and still implement WS-Security.
    Thanks
    Ram

  • Which is the BEST Java Web Service Framework to use?

    Hi all,
    I'm a beginner to Web Services.
    I am planning to implement java web services to make the communication between java(Tomcat Server) and C# client.
    I found list of web service frameworks like,
    1. Apache Axis,(POJO,Axiom)
    2. JSON-RPC,
    3. Java Web Services Development Pack ,
    4. Web Services Invocation Framework,
    5. Xfire,
    6. XML Interface for Network Services. ...
    Please do reply me that which web service framework will be efficient to use.

    But, I want to know which Framework will provide
    better performance?
    better than what?
    Also I want to develope the web service as a standard
    one andeach has it's own quircks and implementation details. Each should be able to generate and accept the same SOAP messages though if you implement them properly.
    It should be able to provide bulk data exchange.
    That will depend in large part on your hardware.
    Please suggest a web service framework
    (Java-based) which will give better performance.again, better than what?
    Better than messenger pidgeons?
    Better than swallows (European or African)?
    And if so, how heavy would the message capsule be? 2 swallows may be able to carry a coconut together, holding it on a piece of string.

  • Error Service Component Container for Java Mailer is not running

    Hi,
    I installed Oracle Workflow 2.6.3 (Standalone) in Oracle Database 10g Release 1.
    Actually there was no problem during the installation.
    I have done the Setting Up from step 1 to 8.
    I'm going to do the step 9 (Implementing Notification Mailer).
    The problem is the Workflow Agent Listener WFALSNRSVC is not running
    and I cannot run it using the Oracle Workflow Manager.
    In the Oracle Workflow Manager there was 4 rows which related to the Container : WFALSNRSVC
    1. Workflow Deferred Agent Listener
    2. Workflow Deferred Notification Agent Listener
    3. Workflow Error Agent Listener
    4. Workflow Inbound Notification Agent Listener
    The status is : Stopped.
    I cannot run any of them.
    Although the Startup Mode is Automatic, but none of them is running.
    When I tried to push the Go button to Actions: Start, it showed this message
    An error has occured
    The Service Component Container is not running.
    And after I tried to configure the Workflow Notification Mailer using the wizard
    I didn't receive any e-mail after I push the Test Send Mail button.
    I read in another post in this forum.
    It states that when going to the Workflow Configuration Assistant (WFCA)
    we must give the right entry in the LDAP paramaters and Java Mailer parameters,
    otherwise those WFALSNRSVC and WFMLRSVC would never run eventhough we enter them in a later time.
    Actually I didn't provide the paramaters (both of them) since they are optional.
    My questions are:
    1. Is there another way to run those service (servlet)?
    I really need the Java Notification Mailer to send email.
    2. Should I uninstall and reinstall my Oracle Workflow and provide those paramaters?
    Do I have to uninstall and reinstall the Oracle Workflow Middle Tier too?
    3. Is it okay if I drop and cascade the OWF_MGR user (my Workflow Manager schema)
    and then I use the Workflow Configuration Assistant again and choose Install option
    to create the OWF_MGR schema?
    3. Are the LDAP and OID required before we use the Java Notification Mailer?
    Actually I didn't understand the use of LDAP and OID which required in the LDAP paramaters?
    Any help would be grateful.
    Thanks,
    Buntoro

    In the service components page click on any container, select stop all from the LOV and Go. Once all the containers Workflow Agent Listener Service,
    Workflow Document Web Services Service and Workflow Mailer Service are Deactivated then StartAll. After all the containers are started then check the components status.
    Still if they are running bounce the apache.

  • What is the most up to date implementation of web services in Java?

    I'm completely new to web services and just got confused. I installed Sun App Server 9 Update 1 Patch 1 and successfully deployed some simple web services with it. Later I found sth that is called Web Services Developer Pack 2.0 but it can't use Sun App Server 9 as a container ... and requires the older version (8.1 as far as I can remember). Does it mean that JWSDP 2.0 is out of date ... and Sun App Serv 9 has bult-in web services implementation?
    Please can anyone highlight me this subject?
    Thanks!
    Artur

    ok ... just answering my own question ;)
    that's what I found on sun's website:
    the Java Web Services Developer Pack will no longer be developed as a discrete release vehicle for the Web services and XML technologies that the Java WSDP shares with Project GlassFish.
    The current release of Java Web Services Developer Pack, Version 2.0, contains the new JAX-WS 2.0 EA, JAXB 2.0 EA, and SAAJ 1.3 EA implementations, the "integrated stack" for Web services. These components are now available as FCS-quality releases in Project GlassFish.
    as far as I know ... correct me if I'm wrong ... Sun App Server 9 is based on Proj Glassfish.

  • Implementing File Upload component + Java Mail

    Guys,
    Brief Intro : I have a form with some input fields. Upon submission of the form all the necessary information is submitted ro R/3 system and a mail is send to lets say administrators. I have Java Mail program for sending emails.
    My requirement : I want the users to give the FileUpload option in the form so that they can select the file and that file should be attached to email whcih I am sending upon form submission.
    Questions:
    1) How to check the path of the file where it gets uploaded.
    2) Does it get uploaded on the Server where I deploy my application.
    3) Any Solution/suggestion on how to implement the requirement stated above.
    Regards,
    <b>Chintan Virani.</b>

    Hi Chintan...
    File Uplaod UI Element is just to get the file path of the file from the client or presentation server i.e. our pc. Rest code to store the data is done in action of the upload button (not the browse button). So no file is formed automatically.
    Unless you write the code to read the file from the path selected, you cannot get the data bytes and unless you mention the path no file is made in the server.
    Better would be that you keep a file template in the mimes folder and at runtime you write to this file.
    The path of the file in the mimes folder is
    temp
    webdynpro
    web
    local
    <ProjectName>
    Components
    <Component Package>
    <File Name>
    This file can be attached to your mail as an attachement.
    Further reference...
    Re: how to create a file i mimes/ components folder
    Regards,
    Mahesh K.

  • Java.lang.NoClassDefFoundError: javax/mail/Service

    Hi,
    Happy New Year Everyone! Sadly, it's not that happy for me right now, I'm trying to write a mail app using JavaMail, but I'm getting a NoClassDefFoundError when I run the program.... The program compiles fine, it only crashes when I run the program. Does anyone have any ideas why that's happenning? I compile the program using javac -classpath .:mail.jar *.java and I'm working on a Unix Box. Any help anyone can provide is greatly appreciated!
    The error message I received is pasted below (I left out the stack trace to make reading easier).
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: javax/mail/Service
    [Stack Trace]
    Thanks in Advance!
    Juivette

    Read the directions that came with the javamail API...it tells you the OTHER API you need. Also, word of advice....I un jar'd and re-jar'd all the classes from BOTH API's in one file...makes life easier.

  • Java implementation of web service concept

    I am so confused. What exactly is the Java implementation of web service concept? SOAP, J2EE, JSP+Servlets+beans or what?

    For an excellent description of webservices in Java read the following article
    http://www.theserverside.com/resources/article.jsp?l=WebServices-Dev-Guide
    It should clear most of your doubts.
    Web services means a client server program which exhanges data in XML over HTTP.
    Soap is one way of implementing web services. A java soap implementation is freely available at
    http://xml.apache.org/soap/index.html
    Also, you can read about ebXML (which is another model for making web services).
    http://www.xml.org/feature_articles/2000_1107_miller.shtml
    http://java.sun.com/features/2001/09/ebxmlrev.html
    hope this helps.
    regards,
    Abhishek.

  • Questions about Mail Service and Campaign in Portal 8.1

    1.How to disable batch mode email in portal 8.1 Mail Service using
    Campaign?
    2.For batch mode email, when will it deliver?
    3.Where can I admin those parameter besides the fields mapping in
    portal Admin->Campaign Server and Mail Service?

    The docs haven't been moved over to the 8.1 docsite, but the 7.0 docs
    for campaigns are still pretty much valid in 8.1. Look at:
    http://e-docs.bea.com/wlp/docs70/dev/cmpaign.htm#998197
    for more information.
    Basic answers:
    1. You can't from a campaign. It will always batch emails in the database.
    2. Use the bea/weblogic81/portal/bin/mainmanager.bat|sh script, which
    uses the com.bea.p13n.mail.MailManager command-line java class (JavaDoc
    at http://e-docs.bea.com/wlp/docs81/javadoc/index.html). This can be
    invoked from cron or at for regular email delivery. Also, the emails are
    deposited in the MAIL_* tables
    (http://e-docs.bea.com/wlp/docs81/db/4Schemas.html#1064602), so you
    could implement a delivery system from that as well.
    3. There are no parameters since the email delivery is invoked from a
    command-line process.
    Greg
    surfboy wrote:
    1.How to disable batch mode email in portal 8.1 Mail Service using
    Campaign?
    2.For batch mode email, when will it deliver?
    3.Where can I admin those parameter besides the fields mapping in
    portal Admin->Campaign Server and Mail Service?

  • Workflow Java Mailer - Where is it?

    Hi,
    I have installed Oracle Workflow Server Release 10.1.0.3 for Linux x86 standalone on a on a 10.1.0.4 database run the configuration assistant. The DAD is configured in the 10G Standalone HTTPD which i installed from the 10.1.0.3 companion CD and after sorting out a number of installation issues the installation was successful.
    I have one missing component and that is the Java Mailer which is said to be 'included' with Workflow server 2.6.3 in the install notes:
    Oracle® Workflow Installation Notes for Oracle Database Release 2.6.3 February 2004 Part No. B12169-01
    Quote "Java-based Workflow Notification Mailer: The Notification System includes a Java-based program called a notification mailer, implemented as a service component within the Generic Service Component Framework, which communicates notifications to users via e-mail and interprets responses. Oracle Workflow provides one seeded notification mailer service component called the Workflow Notification Mailer. This program requires an outbound SMTP mail server and an inbound IMAP mail server"
    after chasing my tail for hours trying to find where and how this components needs to be installed I came across 266612.1 which has some references to a. Oracle® Content Management SDK 10g (9.0.4.2.0) and Oracle® Application Server Integration 10g (10.1.2.0.0).
    I have looked at the documentation for these two components and there is nothing specific mentioned about the Java Mailer, although workflow is mentioned amoung other things..
    If someone could point me in the right direction i would be exceedingly grateful. What I thought was a simple exercise in getting workflow installed and being able to send emails using the standard workflow API's and turned into a monumental journey of frustration and utter waste of time which a customer is paying for.
    Reading between the lines it looks like i need yet another installation of Oracle (the 10.1.2) application server along with the two components above.
    Also, Workflow 2.6.4 is included in the 10G Release 2 Database companion CD. Is the Java Mailer included with this version?
    My apologies if this post has come across somewhat indignant, I get annoyed when people flame in posts and then ask for help, but i am genuinely needing advice from someone who done the seemingly impossible.
    regards,
    Brenden

    Sorry, for database installation there is a seperate application to manage workflow (can't remember the name but you can find it in the apache server middle tier or you can view "install" folder a WF***MANAGER.ear file in there, start up your apache and run it in your browser ).
    The parameter you entered in config assistant for mailer isn't enough to get it working because you need some extra bits, for example the password and the path that points to processed folder and discard folder, etc. All of these bit can be set in workflow manager, remember don't keep looking for the JAR file for mailer, even if you found it you can do nothing about it unless you successfully run the workflow manager after installation.
    Once you have the workflow manager up and running you shall be able to config the mailer in there.
    List of steps: (if you go for silent installation you don 't need to do the post config in workflow manager anymore, and mailer shall be ready to run)
    for wf shipped with DB
    1. follow offical installation note
    2. it will ask for a apache home to be used as middle tier
    3. run through all steps
    4. find Wf manager and run the config through the interface.
    5. test the mailer in wf manager
    I would like someone correct if wrong because I have no experience to set up wf server shipped with DB, but for the one shipped with CMSDK I can answer you alot.
    Regards,
    Kun

  • Java Mail with Servlets

    Hello friends ,
    I am using win-2000 OS.I want to know @ mail servers IMAP & SMTP .How I can get these services ?or Can I use my tomcat server ? by configuring it & how to configure .If not possible then how to get these services.

    Can u please explain clearly what u want?
    do u want to know about mail servers or u just want to know about how to use Java Mail Api in your jsp/servlets.
    As far as i am aware there is no such thing as SMTP or IMAP services in Tomcat....SMTP and IMAP are protocols and it can be implemented by a separate servers..u can find lot of free email servers in the net..
    And u can install them in ur environment and use them..
    And about the Java Mail api it is java's client side implementation of SMTP,POP3 email protocols...u can use these api's to send and receive email programmatically...
    If u want more details don't hesitate to contact me.

  • Mail Service Activation

    Hi Experts,
    What are the service and jar files required to run mail service application. I deployed one application but mailing is not working..
    What are codes required to do so????....
    Please share some links.
    Thanks
    Nitu

    Hi
    you can you this sample code, which is working in java.
    try {
         Properties props = new Properties();
         props.put("mail.transport.protocol", "smtp");
         props.put("mail.smtp.host", SMTP_HOST_NAME);
         props.put("mail.smtp.auth", "true");
         props.put("mail.smtp.port", "26");
         Authenticator auth = new SMTPAuthenticator();
         Session session = Session.getDefaultInstance(props, auth);
         session.setDebug(true);
         MimeMessage message = new MimeMessage(session);
         message.setSubject("Testing javamail plain");
         message.setContent("This is a test", "text/plain");
         message.setFrom(new InternetAddress("from@something"));
         message.setRecipient(
              Message.RecipientType.TO,
              new InternetAddress("to@something"));
         Transport transport = session.getTransport();
         //Transport.send(message);
         transport.connect();
         transport.sendMessage(
              message,
              message.getRecipients(Message.RecipientType.TO));
         transport.close();
    } catch (MessagingException exc) {
         exc.printStackTrace(out);
    } catch (RuntimeException exc){
         exc.printStackTrace(out);
    For more check this link
    [Implementing Email function.|http://fisheye5.cenqua.com/browse/glassfish/mail/src/java/com/sun/mail/smtp/SMTPTransport.java?r=1.13#l38*This]

Maybe you are looking for

  • My mpd fail to start

    can you guys help me? No full size images. Read forum rules  -- Inxsible my /etc/mpd.conf # An example configuration file for MPD # See the mpd.conf man page for a more detailed description of each parameter. # Files and directories #################

  • Burn photo to dvd

    how can I burn Photo to a dvd

  • Crop a circle shape in PSE 6 for mac

    How can I crop a circle shape from a photo and adjust the size or dimensions of the crop? Thanks [email protected]

  • Height in feet and inches

    I have a string value for height in the database that I would like split out into feet and inches. For example the value right now is 66, 65, etc...

  • I/O Speed for the HP H221 Host Bus Adapter- Need IO/s or IOPS

    Please point me to HP specifications with I/O Speed for the HP H221 Host Bus Adapter.  650931-B21 HP H221 Host Bus Adapter The parameter needed is the IO/s or IOPS – ie number of reads/s – or Writes/s that can be achieved