Java program to send email from lotus notes

Hello,
Please anyone suggest me how to send email from lotus notes using java.
Thanks.

I don't understand the question. Are you asking:
1. How do I send e-mail from Lotus notes manually? Press the Send button.
2. How do I send e-mail from Java? Look into the Java Mail API. Doesn't require Lotus Notes (or any other e-mail client, for that matter).
3. How do I send e-mail to a Lotus Notes address? Just send e-mail to the address (see # 2 above). Nothing special required just because the recipient uses Lotus Notes. FYI: I use Lotus Notes (though I hate it) because it's our company's standard & have written Java apps that send e-mails to Notes. The only time I've had to be aware the recipient was a Notes client was when I was sending HTML formatted messages; then I had to pay attention to the limitations of Notes' brain dead HTML parser.

Similar Messages

  • Sending an email from Lotus Notes release 5.0.4a

    I need to write java code for sending an email from Lotus Notes release 5.0.4a.
    Initially, I tried using Lotus Domino Toolkit for java, but the current release, "Lotus Domino ToolKit for Java/Corba release 5.0.8" is not compatible with the notes client/server we are using(5.0.4a).
    Now, I am trying to use "Lotus Domino Toolkit 2.1" which supports notes version 5.0.3 and higher, but I couldnot find out how to use it to send email.
    Is there are other way in which we can connect to Lotus Notes for sending email. I cannot use SMTP as the Lotus Notes administrator is afraid of security issues so there is no possibility that I can connect to Domino server using java mail API by enabling SMTP on the Domino server.
    I would be thankful if somebody can help me to do this.

    First off - This is very "off topic"
    The Domino SMTP server is not hard to lock down. Any Notes Admin worth his/her salt should know how to do it. Try to persuade them to run the SMTP stuff using name and password authentication only, or restrict access to an IP address range. This is all easy stuff.
    Otherwise DIIOP/CORBA is one way to go. If your toolkit jar files don't work with the server then try using the ones on the server. Look in %noteshome%\data\domino\java for the ncso.jar file.
    This works for me on an AS/400 java VM to WinNT/Linux Domino servers of various versions.
    How to create an email using this method is again not difficult. All you really need is a blank database template. You have to create a document with certain fields in it (all documented) and then save it. That's all there is to it.
    Word of warning DIIOP is not very rapid and careless coding can create problems. Ensure that once you have finished a session you make sure you close it else you will have continual connection problems.
    Try searching around the domino/notes groups on how to actually do this.
    SH

  • Send Emails Through Lotus Notes

    Dear Experts..,
    I am developing an object in which I have to send mails to the Users through Lotus Notes.
    The scenario is that..
    1. Smartforms has to me created for different cases.
    2. The corresponding Smartform has to be called based on the Case and it has to be populated with values.
    3. Then the Smartform output has to be converted to HTML Format.
    4. It has to be sent to Lotus notes along with "mail id" and "relevant Subject".
    5. Then I have to receive a acknowledgement from Lotus Notes about the successful delivery of the mail.
    Please explain me how to send the converted Smartform to the users email id (this mail id is a external mail id) through Lotus Notes.
    Thanks in advance.
    Regards,
    Naveen Kumar G

    Dear Experts..,
    I am able to do up to the conversion of the Smartform.
    The remaining is where I got messed.
    I am using a FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'...., but this will send a mail directly.. not through Lotus Notes.
    But I was given a requirement like, I have to use Lotus Notes.
    Please help me in this regard.
    Thank you,
    Naveen Kumar G

  • Inbound UMS Adapter Issues with Receiving Emails from Lotus Notes

    Hi,
    I have this requirement in my project where I need to read the mails from a particular Email Account which has been created in Lotus Notes. The IMAP Host and port is enabled for the same and I am setting all these in my Server's EM Console UMS Driver settings. I have provided all the Details required for Incoming Email Driver setup like: IncomingMailID, IncomingMailServer, Port, Server Type: IMAP, IncomingMailIDs etc. I have followed all the steps mentioned in regular UMS Adapter Documentation and Blogs.
    I can see that Soa-infra is able to access all the mails from this mail Account and I can see the same in the managed server log files also. But the issue is with the BPEL Process which I have created with the Inbound UMS adapter. This process has UMS inbound adapter with the Email address same as the one defined in UMS Configuration in EM Console.
    The Process is not getting triggered at all whenever a new mail comes to the mail id. I am not sure what is the issue. If anyone has faced similar issue please let me know the solution for the same.
    Also 1 strange thing I observed is, if I go to the Soa-infra proerties-> Human Workflow Management and Test the notification by sending mail to the IncomingMailId, the Process is getting triggered, but if I send a mail from any other gmail/any other account to the IncomingMailID set in Process and server, the Process is not getting triggered.
    In the logs I see the following Error messages which I don't think would be impacting the Process to receive messages as soa-infra is able to pick the messages without any issues.
            at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:119)
            at javax.activation.DataHandler.getInputStream(DataHandler.java:223)
            at javax.mail.internet.MimeBodyPart.getInputStream(MimeBodyPart.java:573
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:998)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:1023)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.create
    IncomingMessage(EmailResourceAdapter.java:593)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:440)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:871)
            at javax.mail.Message.setFlag(Message.java:578)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:501)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:715)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.getMes
    sageID(EmailResourceAdapter.java:1415)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:417)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

    Hi,
    I have this requirement in my project where I need to read the mails from a particular Email Account which has been created in Lotus Notes. The IMAP Host and port is enabled for the same and I am setting all these in my Server's EM Console UMS Driver settings. I have provided all the Details required for Incoming Email Driver setup like: IncomingMailID, IncomingMailServer, Port, Server Type: IMAP, IncomingMailIDs etc. I have followed all the steps mentioned in regular UMS Adapter Documentation and Blogs.
    I can see that Soa-infra is able to access all the mails from this mail Account and I can see the same in the managed server log files also. But the issue is with the BPEL Process which I have created with the Inbound UMS adapter. This process has UMS inbound adapter with the Email address same as the one defined in UMS Configuration in EM Console.
    The Process is not getting triggered at all whenever a new mail comes to the mail id. I am not sure what is the issue. If anyone has faced similar issue please let me know the solution for the same.
    Also 1 strange thing I observed is, if I go to the Soa-infra proerties-> Human Workflow Management and Test the notification by sending mail to the IncomingMailId, the Process is getting triggered, but if I send a mail from any other gmail/any other account to the IncomingMailID set in Process and server, the Process is not getting triggered.
    In the logs I see the following Error messages which I don't think would be impacting the Process to receive messages as soa-infra is able to pick the messages without any issues.
            at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSou
    rce.java:119)
            at javax.activation.DataHandler.getInputStream(DataHandler.java:223)
            at javax.mail.internet.MimeBodyPart.getInputStream(MimeBodyPart.java:573
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:998)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.copyCo
    ntent(EmailResourceAdapter.java:1023)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.create
    IncomingMessage(EmailResourceAdapter.java:593)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:440)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.setFlags(IMAPMessage.java:871)
            at javax.mail.Message.setFlag(Message.java:578)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:501)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    >
    <31/07/2014 5:44:06 PM EST> <Warning> <oracle.sdp.messaging.driver.email> <SDP-2
    5700> <An unexpected exception was caught.
    javax.mail.FolderClosedException
            at com.sun.mail.imap.IMAPMessage.getProtocol(IMAPMessage.java:149)
            at com.sun.mail.imap.IMAPMessage.getHeader(IMAPMessage.java:715)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.getMes
    sageID(EmailResourceAdapter.java:1415)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:417)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.onMess
    age(EmailResourceAdapter.java:394)
            at oracle.sdpinternal.messaging.driver.email.EmailResourceAdapter.fetchN
    ewMailFromStore(EmailResourceAdapter.java:357)
            at oracle.sdpinternal.messaging.driver.email.MailboxPollingWorker.run(Ma
    ilboxPollingWorker.java:49)
            at weblogic.connector.security.layer.WorkImpl.runIt(WorkImpl.java:108)
            at weblogic.connector.security.layer.WorkImpl.run(WorkImpl.java:44)
            at weblogic.connector.work.WorkRequest.run(WorkRequest.java:95)
            at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTunin
    gWorkManagerImpl.java:545)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

  • Send email to lotus notes

    Dear All,
    First of all I don't know if this is the correct forum but I have not seen a specific forum for oracle 8 so I posted the message in this forum.
    I have stored into a table Lotus Notes address and messages.
    I want to schedule a job on Oracle Server that send messages to a Lotus Notes Server.
    Lotus Notes version is 4.6.x and Oracle database is 8.0.5 EE.
    Any suggestion are welcome.
    Bye

    Hi,
    If you want to be able to send email to the distribution list in Lotus Notes from SharePoint, you
    can set the SMTP service address of Lotus Notes server in Central Administration->System Settings->Configure Outgoing email settings->Outbound SMTP Server.
    And you need to set the Lotus Notes to accept anonymous email.
    Here are some similar threads for you to take a look:
    https://social.technet.microsoft.com/Forums/office/en-US/4f40f6de-7c1e-4543-9e48-2058a95ce468/email-setting-configuration-for-domino-server-85?forum=sharepointgeneralprevious
    https://social.technet.microsoft.com/Forums/en-US/04bf7b7a-8797-4e46-b3ca-bddbe5d6d9ba/sharepoint-foundation-lotus-notes-connector-for-outgoing-smtp-mails-?forum=sharepointgeneralprevious
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • I only want to send emails from mail (not receive)

    I am apprehensive in setting up my Mail because I don't want it to import any emails from my online email account. I don't want all that stuff on my hard drive and I like to access it online from whatever computer.
    Is there a way to set up your email account so that you can only email out, but not receive/download the emails on to your computer?

    Set up your account, have it Enabled, but do not select to have it included when automatically checking for new messages, and also click on Mailbox in the menubar and take the account Offline. In Mail, and Offline account can be used to send, but will not collect new messages. There are a few providers that require you to have at least logged into the serve one time, and authenticated.
    Ernie

  • Sending email via Lotus Notes

    Does anyone have any examples of sending e-mail through Lotus Notes via forms 6i? I have searched the forum and there seems to be very few items on Lotus Notes.
    Thanks in advance.
    Jeff

    A simple way is the host-command.
    The command-string is "start mailto:address?body='Text'&subject='Text"
    The length of host-string is limited.
    Text_io can help: Create the cmd-file and then start it thru the host-command.
    Also simple: Create a html-file x.html and start this via host(Start x.html')
    I am interested und this topic, too, because I can't attach files with this simple methods.
    Wolfram

  • Send mails via Lotus Notes using VFP

    Hi all,
    I have an VFP application which is allowing send emails from Lotus Notes. Currently it sends mails from the default account in Lotus notes. But now there is a requirement as follows.
    An email address can be defined from our application. Say
    [email protected] Lotus notes has been configured with two mail accounts such as
    [email protected] and [email protected] and the default email is
    [email protected] Now we have to send emails from our application with
    [email protected] email address. Not the default email address.
    To do this we have to read all email accounts configured in Lotus Notes using VFP. And look for the email address
    [email protected] and mail should be sent with that account. Can anybody guide me how to do this using VFP? Thanks.
    Best Regards,

    This is actually a Notes question. You need to find out whether the Notes automation server provides what you need and how to do it.
    Tamar

  • Error when sending email from a web application that runs on GlassFish

    Hello all, I hope some can give me some hints on how to fix this problem.
    I have a web application built in Java that runs on GlassFish v3.
    The application uses a mail plugin that makes use of mail.jar
    Whenever I try to use the plugin to send an email out I get an error.
    The application is programmed to send emails from a gmail account, and I believe there is a problem with the SSL version that Googlemail is expecting.
    By the way, everything works fine if I run the web app on other servers like Jetty or Apache.
    The stacktrace I get from the log when the error occurs is as follows:
    INFO: 2009-05-08 19:48:57,500 [httpWorkerThread-8080-0] ERROR errors.GrailsExceptionResolver - org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
    org.codehaus.groovy.runtime.InvokerInvocationException: org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
    nested exception is:
    java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:337)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:883)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:732)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:554)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:485)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:377)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:382)
    at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:180)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:250)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:218)
    at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:460)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
    at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
    at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
    at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
    at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
    at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
    at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
    at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
    at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
    at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
    at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
    at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
    at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
    at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
    at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
    Any help would be really appreciated... honestly I'm pretty stuck.
    Alex

    Hi Alex,
    Since I had a Gmail test servlet kicking around, I ran it on the latest V3 nightly build.
    On the first run, I encountered the following nested exceptions:
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465
    --> java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
        --> java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)
            --> java.security.UnrecoverableKeyException: Password must not be nullThe UnrecoverableKeyException is a manifestation of [https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938|https://glassfish.dev.java.net/issues/show_bug.cgi?id=6938]
    I worked around this by adding the following JVM config options to domain.xml
    <jvm-options>-Djavax.net.ssl.keyStorePassword=changeit</jvm-options>
    <jvm-options>-Djavax.net.ssl.trustStorePassword=changeit</jvm-options> (Note: the default master password is "changeit")
    These lines are placed in /domain/configs/config/java-config of domain.xml for the particular server config you're using. There's only one server config in the default domain.xml shipped with V3. Then restart the server.
    I retested the code on both port 465 and 587, with and without the above config changes. Without the change, they both fail the same way, and with the change, they both work. Let me know if this helps.
    -Peter

  • Sending email from smtp

    Hi ,
    below is the scripts for sending email which i copied from PL/SQL User guide :
    declare
    l_mailhost VARCHAR2(64) := '1.1.1.1';
    l_from VARCHAR2(64) := '[email protected]';
    l_to VARCHAR2(64) := '[email protected]';
    l_mail_conn UTL_SMTP.connection;
    BEGIN
    l_mail_conn := utl_smtp.open_connection(l_mailhost, 25);
    utl_smtp.helo(l_mail_conn, l_mailhost);
    utl_smtp.mail(l_mail_conn, l_from);
    utl_smtp.rcpt(l_mail_conn, l_to);
    -- If we had the message in a single string, we could collapse
    -- open_data(), write_data(), and close_data() into a single call to data().
    utl_smtp.open_data(l_mail_conn);
    utl_smtp.write_data(l_mail_conn, 'This is a test message.' || chr(13));
    utl_smtp.write_data(l_mail_conn, 'This is line 2.' || chr(13));
    utl_smtp.close_data(l_mail_conn);
    utl_smtp.quit(l_mail_conn);
    EXCEPTION
    WHEN OTHERS THEN
    -- Insert error-handling code here
    NULL;
    end;
    though it managed to execute properly , and i could receive the email from LOTUS NOTES
    BUT from LOTUS NOTES i could not see any address in the To : and there's no message in the details section as well
    is this an smtp issue ?
    pls advise
    tks & rdgs

    The issue is you not understanding SMTP and Internet Message Bodies.
    SMTP is the delivery mechanism. Think of it as a truck that delivers the a-mail payload. SMTP has no interest or concerns as to what the payload is. It simply moves it. Nothing more.
    The payload needs to be a valid Internet Message Body. It should consist of a header and a body. An e-mail header should include the following fields:
    From: <sender>
    To: <recipient>
    Subject: <subject>
    The header is terminated by a blank like. After which the message body starts.
    Things like attachments requires additional header fields specifying what the bounadaries are of attachments in the body. With these boundaries being used in the message body.
    Two suggestions. Read the RFCs on Internet Message Bodies (links provided below). Look at the raw contents of an e-mail in your e-mail box - often it is much easier to grasp the concepts explained in these RFCs by looking at your own mailbox.
    At http://www.faqs.org/rfcs/rfc-titles.html :
    RFC 2049 - Multipurpose Internet Mail Extensions (MIME) Part Five: Conformance Criteria and Examples
    RFC 2048 - Multipurpose Internet Mail Extensions (MIME) Part Four: Registration Procedures
    RFC 2047 - MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text
    RFC 2046 - Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types
    RFC 2045 - Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Cannot send email from my iPhone or iPad. The server rejects a recepient for no apparent reason.  The recipient is not new.  This issue happens on reply or reply to all or froward; not a new email. What is happening?

    Cannot send email from my iPhone or iPad. The server rejects a recepient for no apparent reason.  The recipient is not new.  This issue happens on reply or reply to all or froward; not a new email to the same recepient. What is happening?

    I talked with a tech today and he said I cloud is having problems which should be resolved shortly.
    In the mean time I used the .me smtp server settings which allowed me to send mail.

  • I can not send email from my iPhone or iPad its goes out from the iMac ok. I get SMTP is incorrect. any suggestions?

    Having problems sending email from my iphone and ipad. Im getting a SMTP is incorrect error. Has anyone had this problem?
    Spent 3 hours with internet carrier still not resolved. Everything is fine on the imac.

    What is the error message provided if any?
    If the email account is provided by your ISP, does your ISP have an authenticated SMTP server?
    Are you unable to send email with the account using your iPhone or iPad when connected to the same wi-fi network or internet connection as your Mac with your ISP?

  • TS3276 I can receive emails, but I cannot send emails. This just started happening. I have an iPhone and I can send emails from my phone fine. It's just not working on my Macbook. Every time I try to send an email it goes straight to my outbox. Can anyone

    I can receive emails, but I cannot send emails. This just started happening. I have an iPhone and I can send emails from my phone fine. It's just not working on my Macbook. Every time I try to send an email it goes straight to my outbox. Can anyone help?

    Thank you for heading me in the right direction.  I reset my Mail account for Outgoing Mail Server to outbound.att.net:(customer ID)@att.net (instead of smtp.att.yahoo.com, per Apple's online troubleshooting information).   I'm not sure what "(Offline)" means when it appears at the end of my Outgoing Mail Server (SMTP)??  In the Advanced box I clicked on "Use custom port:  465" and checked "Use Secure Sockets Layer."  Authentication:  Password; I have correct User Name and Password put in.  After doing all this, when I try to send emails again today, they go directly to the Outbox and sit there. 
    What's curious is that my first sent email this morning did go out using the Outgoing Mail Server, smtp.att.yahoo.com: (customer ID)@att.net(Offline) but subsequent emails I tried to send with this server were rejected with the message:  "Cannot send message using the server smtp.att.yahoo.com (etc.).  The SMTP server doesn't support TLS(SSL) on port 587.  Verify your account settings and try again."  That's when I tried resetting my Outgoing Mail Server to outbound.att.net (etc.), as mentioned above, and was unsuccessful in sending out any further emails.  I guess my next step is to contact my email service provider, AT&T, and see if they can help me.  Thanks, again, for taking the time to respond and for giving me your input!  Much appreciated!

  • Can not send email from Mac, iPhone, or iPad using mail using iCloud.

    I can send email from the icloud web page but I get error messages that the icloud outgoing server is not recongized when I send email from my iphone, ipad and Mac mail.  I can receive icloud email okay on all devices.  I have manully setup a icloud server per instructions on icloud support page for mail's outgoing server name.  It still is not recongized.

    I found a work around that works.   Got to Settings...Icloud....account......advanced....outgoing mail server.....
    Add an "other" server.
    Host Name p01-smtp.mail.me.com
    Put in your me.com email address as username and your Apple ID password
    SSL is on
    Authentication is password
    Server port 587
    This worked for me.....I will use this until the bug is fixed.     Don't make this server your primary.   Leave it in "on" status in the other category.
    Good luck

  • HT4528 I cannot SEND email from my iPhone 5S. I can receive emails, but not send them

    I cannot SEND emails from my iPhone 5S

    It says
    "Unable to send email
    A copy has been placed in your Outbox.
    No Password provided
    Please go to Mail Account Settings and enter a Password"
    The problem is, I do NOT have a password for my outgoing server.

Maybe you are looking for