Sending email using system default mail client on linux and Mac

Want to send e-mail using defalut mail client of Linux, Mac OSX, others.

Your question may be about mail, and your question may be about Java,
but the JavaMail library can't do what you're asking.
I know of no platform-independent way to do what you're asking.
You can write lots of platform-dependent code - to do it with Outlook
on Windows, to do it with AppleMail on MacOS, to do it with Thunderbird
on Linux - but I know of no way to do it with whatever mail client the
user has configured on any system.
Sorry.

Similar Messages

  • Sending email using system default mail client

    I'm working on a project right now, and I have no desire to develop a new mailing system. What would be very convienient for me is to have a call, opening the systems default mail client. Preferrably with some of the fields, like "to" and "Subject" being specifed by me.
    I'm not really aware of how the JavaMail system works, but it seems to me like a backend API, able to transmit the mail, but not much else.
    Could anyone give some hints on how to open the system default mailer?

    I found this example here. Seems pretty good - just what I was looking for too!
    from https://jdic.dev.java.net/documentation/Examples.html
    Case# 6: Launch the system default mailer and send the constructed message with UI or without UI.
    import java.util.List;
    import java.util.ArrayList;
    import org.jdesktop.jdic.desktop.Desktop;
    import org.jdesktop.jdic.desktop.DesktopException;
    import org.jdesktop.jdic.desktop.Message;
    public class MailTest {
        public static void main(String[] args) {
            Message msg = new Message();
            List toList = new ArrayList();
            toList.add("[email protected]");
            msg.setToList(toList);
            List ccList = new ArrayList();
            ccList.add("[email protected]");
            ccList.add("[email protected]");
            msg.setCcList(ccList);
            msg.setSubject("Hello");
            msg.setBody("Test");
            List attachList = new ArrayList();
            attachList.add("C:\\test\\test.txt");
            msg.setAttachmentList(attachList);     
            try {
                // Send mail in UI mode.
                Desktop.mail(msg);
            } catch (DesktopException e) {
                e.printStackTrace();
    }

  • Email Error no default mail client

    I tried support on this one and no one had an answer.
    I created a new form with 4 fields and the submit by email button and the print form button. The print form button works, but when I click the Submit by email I get the following error.
    Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mial client.
    Working with the support person we updated to the most recent version (9.4) of Acrobat and he had me remove Office 2010 from my machine and reinstall. Same problem. I also at that time recreated the form in the latest version, Same problem. The Outlook program is the default on this machine.
    I am running Windows 7 Ultimate, Office 2010 Pro Plus, Adobe Acrobat 9 and Adobe Elements.
    I have a number of forms to build but hessitate in getting into them until I know this is going to work. Most of our office is on Windows 7 and Office 2010.

    Check out: http://www.pdfemail.net/
    PDFEmail.net can send PDF form submissions without using Client side e-mail software such as OUTLOOK.
    PDFEmail.net is a standalone Windows ASP.net script generator, and includes FDFToolkit.net by NK-Inc.com.
    HOW IT WORKS:
    Create your scripts with PDFEmail.net for either ASP.net 1.1, or for 2.0 or greater.
    Upload the Files to your web server, local or remote.
    Create a submit button, and change the submit action on the button to point to the script
    Client opens the PDF in a browser or standalone reader, and clicks submit, and the form or data is e-mailed to the designated list of recipients.
    Client gets response or redirected to URL based on sent or not sent
    PDFEmail.net includes 1 year of free technical support and download updates w/ a manual subscription renewal.
    PDFEmail.net utilizes iTextSharp technologies. PDFEmail.net requires zero programming knowledge, and creates scripts you can modify if you choose to do so. Create unlimited scripts on unlimited servers for unlimited clients. PDFEmail.net requires an SMTP server, and a Microsoft .net web server.
    For PDFEmail.net examples:
    http://www.nk-inc.com/software/pdfemail.net/examples/
    To contact me through our website:
    http://www.nk-inc.com/support/sales/
    Message was edited by: NKOWA

  • Satellite P200-10O: Can't send emails using Vista Windows Mail

    Can any one help.
    I have a Satellite P200-10O, with Vista installed. In Win Mail i have set up my email accounts as normal.
    When i open Win Mail i can click send and receive and it searches for new messages, this can be repeated as often as you like. However when i create a new message and click send it stops working. The message goes into the outbox, if i open it in the outbox and click send, nothing happens, after a while of trying every thing freezes up. If i then close the program and re open it will send the message but then sometimes the send and receive doesn't work until you close and re open. Also the message counters do not up date.
    I have tried everything i can think of, Vista forum, ISP, Toshiba. So far no joy although i will be getting back in touch with Toshiba again. Message is set to send immediatley.
    No virus or firewall is being used.
    Cheers
    1stopcarp

    Hi buddy,
    why are you making yourself such problems?? Why dont you use Mozilla Thunderbird which is faster, reliable and has better functions then this Vista Mail thingy??
    I use Thunderbird now for some years and I love it. Its better than outlook and has so many functions which make the work a lot easier.
    If I were you I would check the following link a thinkabout:
    http://www.mozilla-europe.org/en/products/thunderbird/
    Greets

  • How do i change my default mail client from entourage to mac mail

    currently when i launch a address from the address book it opens entourage and i would like it to open my os x mail client. how do i do this.

    Mail > Preferences > General > Default Email Reader

  • JDIC - Current system default mailer is not supported.

    Hello,
    I try to send an email via JDIC API.
    I currently have Lotus Notes as default mailer on Windows XP Professional SP1 (HKEY_LOCAL_MACHINE/SOFTWARE/Clients/Mail is set to 'Lotus Notes')
    I get the following error :
    Exception in thread "main" java.lang.UnsupportedOperationException: Current system default mailer is not supported.
    at org.jdesktop.jdic.desktop.internal.impl.ServiceManagerStub.getService(Unknown Source)
    at org.jdesktop.jdic.desktop.internal.ServiceManager.getService(Unknown Source)
    at org.jdesktop.jdic.desktop.Desktop.mail(Unknown Source)
    at jdicapplication.MailDemo.<init>(MailDemo.java:38)
    at jdicapplication.Main.tryMailDemo(Main.java:51)
    at jdicapplication.Main.main(Main.java:62)
    My program
    try {
    List tos = new ArrayList(1);
    tos.add("xxxx <[email protected]>");
    tos.add("yyyy <[email protected]>");
    Message mail = new Message();
    mail.setBody("Voici sans pi�ce jointe.");
    mail.setSubject("Test message");
    mail.setToAddrs(tos);
    Desktop.mail(mail);
    } catch (DesktopException de) {
    de.printStackTrace();
    I found some bugs (some bugs being closed) with JDIC and Mail:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434374
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6460471
    Do you think it is related to this bug, or is Lotus Notes really not supported.
    Regards
    Laurent

    PLEASE VOTE FOR THIS BUG TO BE FIXED!!!
    When you have a webmail eg. hotmail, Yahoo and wish to use Java Desktop JDIC to send email using the default mailer, it fails.
    Please vote so it will be quickly fixed.
    thanks,
    Anil Philip
    Hi Anil Philip,
    Thank you for reporting this issue.
    We have determined that this report is a new bug and entered the bug
    into our internal bug tracking system under Bug Id: 6460471.
    You can monitor this bug on the Java Bug Database at
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6460471.
    It may take a day or two before your bug shows up in this external
    database. If you are a member of the Sun Developer Network (SDN), there
    are two additional options once the bug is visible.
    1. Voting for the bug
    Click http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6460471.
    2. Adding the report to your Bug Watch list.
    You will receive an email notification when this bug is updated.
    Click
    http://bugs.sun.com/bugdatabase/addBugWatch.do?bug_id=6460471.

  • UnsupportedOperationException: Current system default mailer is not support

    1) When I use a html mailto in a html page, it correctly opens Yahoo Mail as the default mailer.
    In the registry (Win XP), under HKEY_LOCAL_MACHINE\\SOFTWARE\\Clients\\Mail,
    Yahoo Mail is listed.
    2) I am trying the example from here, but get an exception:
    https://jdic.dev.java.net/documentation/Examples.html
    =======================================================
    Case# 6: Launch the system default mailer and send the constructed message with UI or without UI.
    import java.util.List;
    import java.util.ArrayList;
    import org.jdesktop.jdic.desktop.Desktop;
    import org.jdesktop.jdic.desktop.DesktopException;
    import org.jdesktop.jdic.desktop.Message;
    public class MailTest {
        public static void main(String[] args) {
            Message msg = new Message();
            List toList = new ArrayList();
            toList.add("[email protected]");
            msg.setToList(toList);
            List ccList = new ArrayList();
            ccList.add("[email protected]");
            ccList.add("[email protected]");
            msg.setCcList(ccList);
            msg.setSubject("Hello");
            msg.setBody("Test");
            List attachList = new ArrayList();
            attachList.add("C:\\test\\test.txt");
            msg.setAttachmentList(attachList);     
            try {
                // Send mail in UI mode.
                Desktop.mail(msg);
            } catch (DesktopException e) {
                e.printStackTrace();
    }=====================================================
    Exception in thread "main" java.lang.UnsupportedOperationException: Current system default mailer is not supported.
         at org.jdesktop.jdic.desktop.internal.impl.ServiceManagerStub.getService(Unknown Source)
         at org.jdesktop.jdic.desktop.internal.ServiceManager.getService(Unknown Source)
         at org.jdesktop.jdic.desktop.Desktop.mail(Unknown Source)
         at MailTest.main(MailTest.java:30)==================================================

    PLEASE VOTE FOR THIS BUG TO BE FIXED!!!
    When you have a webmail eg. hotmail, Yahoo and wish to use Java Desktop JDIC to send email using the default mailer, it fails.
    Please vote so it will be quickly fixed.
    thanks,
    Anil Philip
    Hi Anil Philip,
    Thank you for reporting this issue.
    We have determined that this report is a new bug and entered the bug
    into our internal bug tracking system under Bug Id: 6460471.
    You can monitor this bug on the Java Bug Database at
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6460471.
    It may take a day or two before your bug shows up in this external
    database. If you are a member of the Sun Developer Network (SDN), there
    are two additional options once the bug is visible.
    1. Voting for the bug
    Click http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6460471.
    2. Adding the report to your Bug Watch list.
    You will receive an email notification when this bug is updated.
    Click
    http://bugs.sun.com/bugdatabase/addBugWatch.do?bug_id=6460471.

  • Default mail client (CR XI)

    Hello,
    we have the following problem:
    We have a application using Crystal Reports XI. It's a C++ application and not a .net, but i think that doesn't matter.  One customer using this application has Lotus Notes and NOT Microsoft Outlook as mail client.
    When using the Crystal Reports export function for export (any format, pdf, xls etc...) into application (not save, just open) we get a message that there is a problem with the default mail client (message box has the title "Microsoft Office Outlook"). The exact message: "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Office Outlook and set it as the default mail client."
    I have checked this an found out, that exporting into application (not save on harddisk) is never possible with CR XI, if Outlook is NOT the default mail client but another mail client is correctly registrered as default mail client.
    Why and is there a solution for this problem? Or is this a Microsoft sponsored error?
    Best Regards,
    Michael

    Hi Don,
    first thank you for your reply.
    But i'm not trying to export to Lotus Notes. I'm trying to export directly into Adobe Acrobat, Excel etc.. But when i have selected the export format (PDF, Excel, Word etc.) and the target (application, harddisk, mapi etc.) and click on ok (if direct RDC call or using the export button in the reports viewer is the same) i always get the message "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Office Outlook and set it as the default mail client.".
    So this problem is not related to a export into mail application, but to exports in general when Outlook is NOT the default mail client. If it is, i don't get the message posted above.
    So it seems that crystal performs and default mail client check befor exporting (even if not exporting to a mail client or mapi) and don't likes other mail applications then outlook
    And this is my problem.
    Best Regards
    Michael

  • Send file as email not working when Outlook 2013 is default mail client

    Have Adobe Reader XI 11.0.2 installed.  Running Windows 7 Pro 64 bit with Office 2013 installed.  When I set Default E-mail Application to Microsoft Outlook from Preferences I receive the following error trying to send any file as an e-mail:
    "Either there is no default mail client or the current mail client cannot fulfill the messaging request.  Please run Microsoft Outlook and set it as the default mail client."
    I have toggled Microsoft Outlook 2013 off and back on as the default e-mail handler in the Default Programs of the Control Panel, but this has not resolved the issue.
    I am guessing this may be a new bug since Outlook 2013 only recently came out, but if not, and someone has a fix, please let me know.
    Thank you,
    - Brian

    Please try the steps mentioned at: http://support.microsoft.com/kb/813745 and check whether the issue is resolved or not.
    If not, then try starting the outlook in safe mode using (Outlook.exe /safe) and check the issue again.
    Hopefully, these will resolve your issue.

  • Either there is no default mail client or the current mail client cannot fulfill the messaging request" error message when you send e-mail from Office 2010 in Outlook

    Hi,
    If save and send as attachment used in MS Office 2010 then outlook 2010 displays error "Either
    there is no default mail client of the current mail client cannot fulfill the messaging request-----error Outlook 2010"
    Windows 7 32 bit Enterprise edition and Offoce Professional plus 2010 32 bit is installed in the machine.
    I have followed the below troubleshooting steps but still getting the same error.
    Method 1:
    Followed the  Microsoft fix
    http://support.microsoft.com/kb/813745
    1. On the Windows taskbar, click
    Start > Run.
    2. In the Open box, type the following text:
    3. regedit
    4. Press Enter.
    5. Go to the following registry key:
    6. HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail
    7. In the right pane, right-click
    the following registry value:
    8. PreFirstRun
    9. Click Delete
    10. Click Start, and then click Run.
    11. In the Open box, type regedit, and then pressENTER.
    12. InRegistry Editor, locate the followingsubkey in the registry:
    13. HKEY_LOCAL_MACHINE\Software\Clients\Mail\Microsoft Outlook
    14. Select thesubkey, and then pressDELETE.
    15. Click
    Yes.
    Method 2:
    Repaired Office
    Method 3:
    fixmapi.exe. Mapi32.dll
    Method 4:
    Created the below registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Offlce\15.0\Outlook
    Create the following String value if it does not exist: Bitness Set the String value for Bitness to the following if it is not already set to x86
    Method 5:
    Compared the installed applications
    Uninstalled the below program :Microsfot Visuall C++ 2008 Redistributable - x86 - KB2467175" and installed "Microsfot Visuall C++ 2008 Redistributable - x86  - 9.0.21022"
    Please help to solve the issue.
    Regards,
    Boopathi S

    Hi,
    Do you mean Send as Attachment button under File>Save & Send>Sending Using E-mail
    in Office applications, like Excel or Word?
    Is this an issue that come up recently? Have you ever made any changes to your system?
    If you have installed multiple e-mail programs on the same computer, please try to make Outlook the default mail client and then try again:
    http://office.microsoft.com/en-us/outlook-help/make-outlook-the-default-program-for-email-messages-contacts-and-calendar-HP010355552.aspx
    http://support.microsoft.com/kb/223877
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Submit By Email Doesn't Launch Outlook 2010 as Default Mail Client, though Outlook is properly set a

    A form designed in LiveCycle Designer with a Submit By Email button, doesn't launch Outlook 2010 (Standard Edition) when clicked, although Outlook is properly configured as Default Mail Client.  Checked with Microsoft and followed all proper steps yet the button doesn't invoke Outlook onClick.  However, Outlook is launched if a link or html button, set to the mailto syntax is clicked.  Is this a PDF form issue for LiveCycle or is there something I am missing?  Please any ideas?

    I have this problem on Win7 64bit, but it seems to work fine with XP and Vista. Not sure about Win7 32bit.
    I've also seen the problem in the past with programs like Thunderbird set to be the default email client (on XP).
    I've never been able to figure out if it's an Adobe or Microsoft problem. Adobe uses the MAPI settings to find the email client.

  • When clicking on an email address in a website, and Yahoo web mail is the default mail client, the TO address is prepended with the "mailto:" tag, and of course bounces. Why and what to do about it?

    In a website, when an email link is clicked, the "mailto:email@address" tag is called, which opens the default mail client.
    A friend has Yahoo web mail as his default mail client. When he clicks on such an email link in a website, the TO address appears in the new email form prepended with the "mailto:" tag, as in mailto:[email protected] This of course bounces.
    I don't use web mail, so can't help him, but maybe you can provide a reason or a cure for this. Thank you.

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • "Attach to Email" option launches outlook rather than default mail client

    The "Attach to Email" option luanches outlook rather than Seamonkey, which is set to be the default mail client.  Any ideas regrding fixing this would be most appreciated.  This is Adobe Acrobat 9 PRO v. 9.0.0 running on a 64 bit Windows 7 Home Premium 4.0 GB machine.
    Thanks,

    Not sure but this might be a Windows Control Panel Issue.

  • Problem with Thunderbird email: When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others rece

    Problem with Thunderbird email:
    When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others receive it but it does not come to my email Inbox. The same problem occurs when I send the email to the mailing list addresses individually. When I send a simple test message to myself, I do receive it in my Inbox. Can you help me??
    Bob Greenman

    Are you using either cc or bcc? Is googlemail involved? Some email providers suppress cc's and bcc's to oneself since you will have a copy in your Sent folder.

  • I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    I am unable to send emails using mail from my btinternet and yahoo accounts similar problem to others with mobile me accounts on lion any suggestions?

    Do I need to delete all my email accounts and start again?

Maybe you are looking for