I want to send an email  from my java application

i want to send an email from my java application

Then do so...
You'll probably want to use the JavaMail API (http://java.sun.com/products/javamail) to do that.

Similar Messages

  • I have multiple email accounts in my iPhone. Before the 6.0 update... I could select what account to send from. Now it's a default. Do I have to go change the email default everytime I want to send an email from a different account?

    I have multiple email accounts in my iPhone 4. Before the 6.0 update... I could select what account to send from each time. Now it's a default. Do I have to go change the email default setting everytime I want to send an email from a different account?

    In Mail Preferences/Accounts/each GMail account, set up the SMTP Outgoing Server for each account separately, going into SMTP name/edit/Advanced and specify the Username of each account.  The Outgoing servers must be two different servers, authenticated by the Username and Password of each.
    Otherwise, the GMail SMTP server will change the from address to that of the account where the SMTP server was setup.
    Ernie

  • Hi.....I want to send outbond email from SAP ERP to Gmail useing SBWP Tcode

    I want to send outbond email from  SAP ERP to Gmail  useing SBWP transaction , for that i want standered BADI or BAPI or RFC to send an outbond mail.i want to send a email from sbwp t-code in that t-code we have title text box and body text box and receipent  and receipent type,after entering alll those values i want trigger my badi /bapi/rfc and also that mail goes to receipent Gmail indox and also sap user outbox in sbwp t-code
    Moderator message: Welcome to SCN!
    Moderator message: this is considered "spec dumping", please work yourself first on your requirement.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jul 13, 2011 9:25 AM

    Check note 455140 - Configuration of e-mail, fax, paging or SMS using SMTP
    Markus

  • How do you send an email from a J2ME application

    I am writing apps in J2ME and would like to generate emails in my apps, and send them to a printer, as a means of getting printed output from my apps.  Can anyone tell me how to do this please?

    You may get lucky here, but I think you'd be much better served asking your question in a developer's forum...if you google "J2ME developers forum" or similar (or even "generate emails from J2ME programs" you should be able to get to what you need.  
    Good luck, sounds like an interesting approach. 
    I am an HP employee.

  • Sending  a  Email  from the  webdynpro application

    Hi Guys,
                 I   am having  one requirement in my application .ie. Email  to the  specified  Id .
    As  per   my reqirement  i am having  4  fields  in my  UI page.
    Task Id              : T001 
    Assigned to       : ratnakar   
    Mail id               : [email protected]
    Task Description : Test Area
    Submit : Save(Button)
    when i  click  the  Save button the    Email has to reach the  specified id with the  task description.
    could  any  body  please help  how to proceed .........
    Thanks  and Regards
    Ratnakar reddy

    Hi  Guys,
         Some body  sugested me  to use the  javaMail  api .. i donot  exactly how to use  it in the  webdynpro application. some where i got the  below  code ...
    InitialContext ctx = new InitialContext();
    Properties props = new Properties();
    props.put("mail.smtp.host","Message server");
    Session sess = Session.getInstance(props);
    Message message = new MimeMessage(sess);
         message.setFrom(new InternetAddress(wdContext.currentContextElement().getFrom()));
         String recepient = wdContext.currentContextElement().getTo();
         message.setRecipient(Message.RecipientType.TO, new InternetAddress(recepient));
         String subject = wdContext.currentContextElement().getSubject();
         message.setSubject(subject);
         String content = wdContext.currentContextElement().getMessage();
         message.setContent(content,"text/plain");
    //       Send the message
         Transport.send(message);
    if i use the above same code  i am not able resolve  some errors with  the  session and   internetAddress. becuse  there are  no   supporting Imports  to  handle them even if used the  Organise imports.
            i am  very new  to  this  mailing concept  can any body  give me a    step by step process  ...to  send the mail to the  specified in the  user interface.
    Thanks and regards
    Ratnakar

  • Want to lauch a pdf from a java application

    Hi All,
    I have a GUI which has a help button, on clicking help button I want to launch a PDF file.Can anyone help me with this. Please share some code sample .Thanks in advance. U can email [email protected]

    hi
    Use following links this is very useful for u.
    http://itextdocs.lowagie.com/tutorial/
    Regards
    Manos

  • When I type in the email address I want to send an email to, mail suggests email addresses i never use

    I am using Apple's Mail application on my MacBook Pro for 3 emails. One personal, one for my work place and one for my university email address. From the university I receive lots of emails which isn't sent only for me, but every student on my course, so I am not the only receiver.
    When I am sending an email, from any of my email addresses and I type in whom I want to send it to, it shows a bunch of email addresses that I have never sent an email to. They are all university email addresses and I want to get rid of them, but they are not in my address book and I have no clue how to delete them / where to find them.
    For example: I wanted to send an email from my work place email to James Fox. He's email is [email protected] (just an example). When I start to type in James.f,   about 100 email addresses pop up, but none of them is the one I need and I will never need those and I CANT GET RID OF THEM.
    Please help me, how to get rid of all these unwan

    How is the university account added to your system? (You should be able to find it in either System Preferences - Internet Accounts, or Mail - Preferences). Is it an Exchange account, perhaps? I wonder if you're seeing a centralized contact group that can't be controlled from your computer (but you may be able to turn it off completely).
    Matt

  • How to send only email from workflow

    Hi Guys,
    I want to send an email from a workflow without sending a notification ... how do i do it ?
    Thanks In advance
    Tom.

    Hi,
    Two possible ways - neither of which I would recommend.
    1 - Write a trigger on the WF_NOTIFICATIONS table, so that if the notification for the process that you require is sent, then you populate the mailer status column to 'spoof' the mailer into thinking that it has already sent it. That should suppress the email.
    2 - Modify the flow to include an activity prior to the notification to change the recipient preferences to not receive email, send the notification, then change the preferences back.
    Email is an "all or nothing" solution - either get email from everything, or get it from nothing. How are they planning on dealing with the notification that they are sent? If they are logging into the application to view the notification, then you could consider sending summary notification emails, and force the users to log into the application to view them all, rather than trying to adopt a half-and-half solution where some things come by email and some only come in the application.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Beginner help to send an email from PHP

    I hope this isn't too easy to answer - I think I must be doing something fairly simple wrong.
    I want to send an email from a PHP page, using SOAP so the mail appears in the sender's sent items, as if it was done in the usual way.
    We're using Groupwise 8.02
    Using the example code in phpClient/phpClient.php I have got a list of folders/emails in my mailbox, so the authentication and access to Groupwise is obviously working. However, in that file there isn't a send mail example, so I copied the one from phpSOAP/client.php and it doesn't work.....the error seems to be 59920 which might be something to do with the session missing, but I find this hard to believe since the folders can be retrieved with the same object.
    Here is the code for mail sending I'm using:
    $mail = new Mail();
    $mail->subject = "php item";
    $dist = new Distribution();
    $from = new From();
    $from->displayName = "Paul Green";
    $from->email = "[email protected]";
    $dist->from = "[email protected]";;
    $dist->to = "Paul Green";
    $rlist = new RecipientList();
    $recip1 = new Recipient();
    $recip1->displayName = "Peter";
    $recip1->email = "[email protected]";
    $recip2 = new Recipient();
    $recip2->displayName = "Andy";
    $recip2->email = "[email protected]";
    $rlist->recipient = array ($recip1, $recip2);
    $dist->recipients = $rlist;
    $mail->distribution = $dist;
    $mp = new MessagePart();
    $mp->_ = "This is a test!";
    $mb = new MessageBody();
    $mb->part = $mp;
    $mail->message = $mb;
    $sir = new sendItemRequest();
    $sir->item = $mail;
    $sires = $gwservice->sendItemRequest($sir);
    Looking around, it seems to me that some of the objects haven't got the properties that the above code expects (eg the from object), so is the schema wrong somewhere?
    What I would like, but couldn't find, is some simple example code that works!
    Does anyone know the simplest way to send an email via SOAP?
    Many thanks in advance for any help anyone can give.
    Paul Green
    Barton Peveril College
    Eastleigh
    Hampshire
    UK

    The phpClient code was a proof of concept.
    I only hand fixed a few of the requests.
    If you use that code, you will need to go into each
    request you want to use and put in code to put in the
    session string. You need to do that in GroupWiseService.php.
    You may need to modify the individual files, ie Filter.php.
    The phpSOAP code works better / easier. You shouldn't have
    to modify that code. (You should be able to just use it.)
    That said, I only did a spot check. The code is as is. There
    is no support for it.
    Preston
    >>> On Friday, June 29, 2012 at 9:56 AM,
    PaulGreen77<[email protected]> wrote:
    > Thanks for the suggestions. I tried the phpClient code you suggested,
    > but it didn't work at all. I don't quite understand what you say about
    > setting the session header string; I think my code does this already.
    >
    > Early on in the code, after logging in, I have the following line
    > $gwservice‑>session = $lres['session'];
    > Doesn't this set the session as part of the Groupwise service?
    >
    > You said I need to manually set the session header string, but which
    > objects do i need to do it in? And can I do it as a parameter call, or
    > does it need to be done in GroupwiseService.php?
    >
    > I hope this doesn't make me sound too silly, but I am a bit of a novice
    > with OO programming!
    >
    > Another point: at various places in the code,
    > http://schemas.novell.com/2005/01/Gr...groupwise.wsdl is referred
    > to, but when I type this into a web browser, it says it can't be found?
    > Does this matter?
    >
    > I hope you can help me a bit further!
    >
    > Thanks.
    >
    > Paul
    >
    > Preston Stephenson;2203363 Wrote:
    >> If you can use php 3.x, use the phpSOAP example instead.
    >> ftp://sdk.provo.novell.com/ndk/gwsoa...rm/phpSOAP.ZIP
    >>
    >> It will handle setting the session string header automatically.
    >> If you use the phpClient example, you will have to go in to
    >> GroupwiseService.php
    >> and manually set the session header string in each request you want to
    >> use.
    >> See getFolderListRequest().
    >>
    >> Preston
    >>
    >> >>> On Friday, June 22, 2012 at 9:56 AM,
    >> PaulGreen77<PaulGreen77@no‑mx.forums.novell.com> wrote:
    >>
    >> > I hope this isn't too easy to answer ‑ I think I must be doing
    >> something
    >> > fairly simple wrong.
    >> > I want to send an email from a PHP page, using SOAP so the mail
    >> appears
    >> > in the sender's sent items, as if it was done in the usual way.
    >> > We're using Groupwise 8.02
    >> >
    >> > Using the example code in phpClient/phpClient.php I have got a list
    >> of
    >> > folders/emails in my mailbox, so the authentication and access to
    >> > Groupwise is obviously working. However, in that file there isn't a
    >> send
    >> > mail example, so I copied the one from phpSOAP/client.php and it
    >> doesn't
    >> > work.....the error seems to be 59920 which might be something to do
    >> with
    >> > the session missing, but I find this hard to believe since the
    >> folders
    >> > can be retrieved with the same object.
    >> >
    >> > Here is the code for mail sending I'm using:
    >> >
    >> > $mail = new Mail();
    >> > $mail‑>subject = "php item";
    >> > $dist = new Distribution();
    >> > $from = new From();
    >> > $from‑>displayName = "Paul Green";
    >> > $from‑>email = "[email protected]";
    >> > $dist‑>from = "[email protected]";;
    >> > $dist‑>to = "Paul Green";
    >> > $rlist = new RecipientList();
    >> > $recip1 = new Recipient();
    >> > $recip1‑>displayName = "Peter";
    >> > $recip1‑>email = "[email protected]";
    >> > $recip2 = new Recipient();
    >> > $recip2‑>displayName = "Andy";
    >> > $recip2‑>email = "[email protected]";
    >> > $rlist‑>recipient = array ($recip1, $recip2);
    >> > $dist‑>recipients = $rlist;
    >> > $mail‑>distribution = $dist;
    >> > $mp = new MessagePart();
    >> > $mp‑>_ = "This is a test!";
    >> > $mb = new MessageBody();
    >> > $mb‑>part = $mp;
    >> > $mail‑>message = $mb;
    >> > $sir = new sendItemRequest();
    >> > $sir‑>item = $mail;
    >> > $sires = $gwservice‑>sendItemRequest($sir);
    >> >
    >> > Looking around, it seems to me that some of the objects haven't got
    >> the
    >> > properties that the above code expects (eg the from object), so is
    >> the
    >> > schema wrong somewhere?
    >> > What I would like, but couldn't find, is some simple example code
    >> that
    >> > works!
    >> > Does anyone know the simplest way to send an email via SOAP?
    >> >
    >> > Many thanks in advance for any help anyone can give.
    >> >
    >> > Paul Green
    >> > Barton Peveril College
    >> > Eastleigh
    >> > Hampshire
    >> > UK

  • Help!  I recently upgraded to OS 10.9.4 from 10.6.8, and now when I want to send an email to a group in my contacts I am no longer able to select the group as a whole.  I have to select each address individually.  This can't be right.

    Help!  I recently upgraded to OS 10.9.4 from 10.6.8, and now when I want to send an email to a group in my contacts I am no longer able to select the group as a whole.  I have to select each address individually.  This can't be right.  With 10.6.8 I used to be able to double click on the name of the group and they would all be selected.  I've also noticed that my address book is now called "contacts."  Thanks in advance for your help.

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.4 update: OS X Mavericks 10.9.4 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
         Reinstall the 10.9.4 update: OS X Mavericks 10.9.4 Update (Combo).

  • When I send an email from Mac Mail, why does Mail go to the background and the Finder comes to the front? I want it to stay in Mail.

    When I send an email from Mac Mail, why does Mail go to the background and the Finder comes to the front? I want it to stay in Mail.

    Did you check your user name and password in Settings>Mail,Contacts,Calendars...tap your email account, tap SMTP, then tap the primary server name.  Make sure the settings there are correct.

  • My wife and I have iPhones 4s,s. We also have an iPad. We share hue same email address. When I send an email from my phone or the iPad it looks as if it comes from my wife instead of me(her name comes up as the person who sent it) I want my name on the ma

    My wife and I have a iPhone 4S each and an I pad. When I send a email from my phone and from my iPad her name comes up as the sender. We only have one contact email address and that is the way we warn to keep it.
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    Thanks

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • Cannot send an email from my alias Mobile Me account from the iPhone.

    I have a Mobile Me email account which works perfectly on my Mac and iPhone. I created a an Alias Mobile Me Account on the web.
    I am able to create a new email from the alias account on the Mac.
    The iPhone will not recognize the alias account, I cannot add it or sync the account.
    I cannot send an email from my alias Mobile Me account from the iPhone.

    To all frustrated MobileMe alias owners who want to send email from iPhone - please go to the feedback area of the apple.com and leave messages regarding this issue. I had a lengthy conversation with a tech support guy who agreed that this is a needed fix - he said to initiate a grass roots effort - and that by all of us leaving messages it will eventually get attention and fixed. Why would Apple give us the ability to create alias's, use them on mobileme website, on our mac mail programs, but NOT the iPhone, which is the MOBILE device. Silly. Please protest!! Thanks.

  • I am sending an email from one account on iphone 4s but the replies are coming into another account on my phone

    I have had an iphone 4s for about a year and have 4 email accounts that come in on it: verizon, gmail, my work, and icloud.  Periodically, I send an email from one account, it shows the message as sent from that account in my sent mail, but the recipient receives it from the gmail account and therefore replies to the gmail.  Has anyone had this happen?  It is almost as if my messages are bouncing into gmail when I send them, although on my phone it shows as having been sent from another account.  I have not had this happen on my computer where I have all of these emails coming in as well.  I thought perhaps it was me not being careful about which account I was sending from when using my phone, but the mail I sent this morning I was very careful to make sure was from verizon, the sent mail on my phone shows it was sent from verizon, and the reply came in on gmail.  Gmail isn't even the default email address- verizon is! My iphone is using version 6.1.3. Does anyone have any ideas? This is a major problem for me so I appreciate any ideas!  Thank you!!!

    I am not sure whether this is related, but I had a problem with Gmail where each time I sent and email via my iPhone it would bounce back in my Gmail account as unread. You migh want to check this Google article explaining why this happens and how to avoid it:
    https://support.google.com/mail/answer/1710338?ctx=gmail&hl=en-GB&authuser=0

  • Sending encrypted emails from the iPad is not working

    I can't get sending encrypted emails working on my iPad3 running iOS 8.0.2
    Let me explain what I did:
    1. I created S/MIME certificates for 2 email addresses on my iMac in Keychain Access. One email address exists only on the iMac the other only on the iPad.
    2. I set "When using this certificate" to "Always Trust" in both certificates.
    3. I exported 1 S/MIME certificate (p12) and installed it on the iPad. Then I deleted this certificate and its private&public keys in iMac Keychain Access
    4. I exchanged public certificates between the 2 devices. I installed one certificate in iMac Keychain Access and the other in iPad/Settings/General/Profiles.
    5. On the iMac in the iPad certificate I set "When using this certificate" to "Always Trust"
    6. I tested whether I can send and receive signed and/or encrypted emails
    Results:
    1. From the iMac I can send signed and/or encrypted emails to the iPad.
        On the iPad I can read the encrypted emails. The signature is not trusted
    2. On the iPad I can send signed messages to the iMac. On the iMac the signature is trusted.
        I cannot send encrypted emails from the iPad to the iMac. The iPad doesn't know about the public certificate in iPad/Settings/General/Profiles
    So much for the straight forward part. Now it gets a bit more complicated and confusing.
    1. I deleted the iMac certificate in the iPad/Settings/General/Profiles. Then in iPad Mail I opened the signed mail coming from the iMac.
        I viewed the untrusted certificate in Mail and installed it. From this point on all signed emails from the iMac are trusted.
        Strangely the by this method installed certificate doesn't appear in iPad/Settings/General/Profiles.
        Furthermore I still cannot send encrypted messages to the iMac. This certificate installation seems to be used only to check trust worthiness of the signature.
        Installing on top the iMac public certificate in iPad/Settings/General/Profiles doesn't enable to send encrypted messages from the iPad either.
    To be sure that this problem relates to the iPad certificate management and is not related to an error by me I did the following:
    1. I transferred a p12 file for a certificate that I created in my iMac to a PC running Windows7.
    2. I transferred a p12 file plus its public key (.pem) that I created in my iMac to another iMac into Keychain Access. (I have not tested if the pem is needed).
    3. On the other iMac and the PC I made sure that the certificates are trusted.
        On the PC that means in the Certificate Manager the p12 needs to be in the "Personal" folder and in the "Trusted Root Certification Authorities" folder.
        The public keys need to be in the "Trusted People" folder and the "Other People" folder. One can just copy/paste the certificates.
    4. In both cases I deleted the certificate and public/private keys on my iMac.
    5. I exchanged public certificates between the devices.
    6. I tested exchanging signed and/or encrypted emails between my iMac and the PC and my iMac and the other iMac.
    Result:
    1. I can send signed and/or encrypted emails to the other iMac and the PC
    2. The PC and the other iMac trust the signature from my iMac and can read the encrypted emails
    3. My iMac can read encrypted emails from the PC and the other iMac
    4. My iMac trusts emails with signatures from the PC and the other iMac.
    Everything is working as it should.
    After the above test I wanted to see whether I can set up encrypted email exchange between the iPad and the PC. Strangely iPad Mail recognized the public certificate from the PC installed in iPad/Settings/General/Profiles and allowed me to send an encrypted email to the PC. However, on the PC I was unable to read the encrypted email. And the other way around, encrypted emails send from the PC to the iPad cannot be read on the iPad.
    My conclusion from all this testing is that iPad mail encryption is still "under construction".

    I was able to resolve the above described problem to some degree. Setting up sending and receiving encrypted emails between iOS and OSX I have working.
    What is still not working is reading encrypted emails on the iPad/iOS8 received from Windows 7 PC. And sending encrypted emails to Windows 7 PC.
    The details about how I solved part of the problem are described here.

Maybe you are looking for

  • UCCX 8 Differentiate between new and requeued Emails

    Hi All, It would be of great help if anyone could guide me whether there are any features in UCCX 8 that lets Email Agents differentiate a new Email from a requeued one. Is there a way to configure CAD so that Agents can mark emails that are requeued

  • Buffer cache size

    Hi there, Can anyone explain these results on a 10.2.0.1 database? SQL> select name, bytes/1024/1024 from v$sgainfo where name='Buffer Cache Size'; NAME BYTES/1024/1024 Buffer Cache Size 1728 SQL> show parameter db_cache_size NAME TYPE VALUE db_cache

  • Compressor fails .avi convert

    Hi all, I'm trying to batch convert .avi files to either Quicktime H.264 or DV NTSC. Both fail, and I can't figure out why. When trying to convert to H.264, Compressor errors out with: "Quicktime Error: -120". When trying to convert to DV NTSC, Compr

  • Hp 630

    i have a problem with my notebook hp 630 the ic at the power circule was burned i need a new one its no. tsp 51125, Ti 9AJ,PCT1 where can i find it

  • How can I delete videos and other things uploads to icloud ?

    How can I delete videos and other things uploads to icloud ?