Automatic send e-mail according to the expire data attribute in database

Hi, everyone. I am now working a web library system, and I use MS Access as the database to store the data.
Now I want to build a function for the system, which can automatic send loan expire message to the borrower when the expire data is met.
I have search several days for this function and all the information is about other program language. I really have not any idea about this function. CAN Java archive the function.
Appreciate for any suggestion. It is better if can post some code example. Thanks!

HI,
I just downloaded javamail, and installed it. I tested the javamail with the demo file follow the readme.txt, I don't know what is the mailserver is for MSN in the step 5 (java msgshow -T imap -H <mailserver> -U <username> -P <passwd> -f INBOX 5), and the '<' and '>' should be there? Could you give me an example. Thanks!
PS: I am not English-speak people , forgive my poor English.

Similar Messages

  • How to send a mail prior to the due date

    Hi all,
                 I would like to send a mail prior to the due date. Please let me know how to go to the previous step after the loop is executed once in workflows.
    Thanks,
    Sirisha N.

    Hi all,
                 I would like to send a mail prior to the due date. Please let me know how to go to the previous step after the loop is executed once in workflows.
    Thanks,
    Sirisha N.

  • Automatically send e-mail function or object

    Hy! I need a function or an method of an specific object to automatically send e-mails.
    Thanx

    Hi,
    The way we created automatic e-mails are by using actions. In the action, you can call a method. We created a method of our own which basically contains the following steps:
    Determine order data (FM CRM_ORDER_READ) --> determines you BP's
    Determine BP addressdata (FM BUPA_ADDRESSES_GET + BUPA_ADDRESS_GET_DETAIL) --> determines the e-mail address
    Then we call an self-defined FM that composes the mail and sends it afterwards:
    prepare the e-mail text
    set the e-mail properties
    generate the e-mail (FM SO_NEW_DOCUMENT_SEND_API1)
    SUBMIT rsconn01 USING SELECTION-SET 'SAP&CONNECTINT' AND RETURN
    Of course, there are also other ways to do this, but this solution we created gives us the flexibility to also sent mass-mails from one transaction within one action.
    Hope you can use this...

  • Need to send a mail back to the user in Sender Mail adapter Scenario

    Hi all,
    I have a scenario where the user fills the Price form  or the Article form (which is a Adobe Form).When the user clicks on the "submit" button,the form is converted into xml , gets attached to the mail and sent to PI.
    Now the user sometimes attaches the pdf directly instead of submitting the form. This results in the mail being sent
    with pdf  as attachment.
    Now my requirement  is to send a mail back to the user asking them to send an xml  instead of a pdf.
    How can this be done ?
    Kindly let me know friends.
    Quick Response is appreciated.

    hi Sanjay,
    Have a look on Michal's blog, it's for JMS, but it works for others: [PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean|PI/XI: Quick tip: Preserving attributes of XI messages via MultipartHeaderBean]
    Mickael

  • How to send a mail by ckicking the button using java

    hi,
    how to send a mail by clicking the button (like payroll silp in that contain one button if we click that it autometically go through the mail as a attachment) pls frd to me my gmail is [email protected]

    Hi,
    It seems we are doing the homework for you; to make you start with something; look at the sample code below and try to understand it first then put the right values
    to send an email with an attachement.
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.util.Date;
    import java.util.Properties;
    import javax.activation.DataHandler;
    import javax.activation.FileDataSource;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.Multipart;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeBodyPart;
    import javax.mail.internet.MimeMessage;
    import javax.mail.internet.MimeMultipart;
    import javax.swing.AbstractAction;
    import javax.swing.Action;
    import javax.swing.JButton;
    import javax.swing.JComponent;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    public class Main {
          * @param args
         public static void main(String[] args) {
              // Create the frame
              String title = "Frame Title";
              JFrame frame = new JFrame(title);
              // Create a component to add to the frame
              JComponent comp = new JTextField();
              Action action = new AbstractAction("Button Label") {
                   // This method is called when the button is pressed
                   public void actionPerformed(ActionEvent evt) {
                        System.out.println("sending email with attachment");
                        sendEmail();
              // Create the button
              JButton button = new JButton(action);
              // Add the component to the frame's content pane;
              // by default, the content pane has a border layout
              frame.getContentPane().add(comp, BorderLayout.SOUTH);
              frame.getContentPane().add(button, BorderLayout.NORTH);
              // Show the frame
              int width = 300;
              int height = 300;
              frame.setSize(width, height);
              frame.setVisible(true);
         protected static void sendEmail() {
              String from = "me@localhost";
              String to = "me@localhost";
              String subject = "Important Message";
              String bodyText = "This is a important message with attachment";
              String filename = "c:\\tmp\\message.pdf";
              Properties properties = new Properties();
              properties.put("mail.stmp.host", "localhost");
              properties.put("mail.smtp.port", "25");
              Session session = Session.getDefaultInstance(properties, null);
              try {
                   MimeMessage message = new MimeMessage(session);
                   message.setFrom(new InternetAddress(from));
                   message.setRecipient(Message.RecipientType.TO, new InternetAddress(
                             to));
                   message.setSubject(subject);
                   message.setSentDate(new Date());
                   // Set the email message text.
                   MimeBodyPart messagePart = new MimeBodyPart();
                   messagePart.setText(bodyText);
                   // Set the email attachment file
                   MimeBodyPart attachmentPart = new MimeBodyPart();
                   FileDataSource fileDataSource = new FileDataSource(filename) {
                        @Override
                        public String getContentType() {
                             return "application/octet-stream";
                   attachmentPart.setDataHandler(new DataHandler(fileDataSource));
                   attachmentPart.setFileName(filename);
                   Multipart multipart = new MimeMultipart();
                   multipart.addBodyPart(messagePart);
                   multipart.addBodyPart(attachmentPart);
                   message.setContent(multipart);
                   Transport.send(message);
              } catch (MessagingException e) {
                   e.printStackTrace();
    }The sample above is not ideal so you need to go through it and start to ask me some questions if you have
    Let me know if you miss something
    Regards,
    Alan Mehio
    London,UK

  • When sending e mails, w attch the system stalls out just "spinning, not attaching, does not happen with exploere

    When attempting to send e-mails w/ attacments, the systems stalls out, just keeps spinning, problem does not occur with exporer.
    Also when trying to attch pics, same thing

    No need to be inhappy.
    iPhoto Menu -> Preferences -> Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.
    There's no need to go through that exporting routine. Your iPhoto Library is available in every app.  See this for more:
    For help accessing your photos in iPhoto see this user tip:
    https://discussions.apple.com/docs/DOC-4491

  • How to set the Expiration Date for a task which is been assigned explictly.

    Hi,
    When I assign a task to myself and not work on it for couple of weeks the task is getting released automatically into the original unassigned pool. The TaskActionHandler WSDL is causing that to happen. I don't want a task to be automatically released into the pool when I don't work on it for couple of weeks, how can I make that happen? TaskActionHandler is something which comes with the BPEL so I can't change the way how it behaves. Do I need to set the expiration date or duration explicitly when a task is created?then how do I do that?
    If anybody could let me know how to make TaskActionHandler not to release a dehydrated task, I would be glad.
    Thanks,
    Mythili.

    Hi,
    Make AUTO RELEASE a restricted action for the task by adding the following line:
    <restrictedAction>AUTO RELEASE</restrictedAction>
    to the <restrictedActions> tag in the task configuration file.
    Works effectively.
    Alternatively, you can specifiy the auto release durations on a per task priority basis. There is more on that in the BPEL Dev Guide.
    Hth, Sjoerd

  • How can I check the expiration date of a Certificate Keychain from terminal?

    Hello, I am writing a bash script to alert me when my corporate certificates are about to expire. How can I check the expiration date of a certificate in keychain? I'm running Mac OS 10.6.8 on a newer MacBook pro with full admin rights.
    Specifically I will be checking three certs: a Root Authority, Issuing Authority, and a user cert (Identity).
    I was exploring the Security and Openssl command line tools. But I can't seem to get the info I need.
    Any recommendations would be appreciated.
    Thank you!

    Anyone?

  • How to set the expiration date in content server

    Hi all,
    I wish to set the expiration date as 3 years later the current date. I have current Date in DocCreateDate but I am not able to set it as DocCreateDate + 3 years.
    Can anyone tell me how to set it?
    Any help appreciated..
    Thanks

    You will need to use an idocscript function, most likely in a global rule.
    One option could be dateCurrent, which can take a number of days to move it forward or back. See http://docs.oracle.com/cd/E23943_01/doc.1111/e10726/c08_config_ref.htm#i1053616

  • How do you set the expiration date of a secure zone?

    I am trying to set up a form where a user can sign up for access to a secure zone for 1 year. How do I set the expiration date of the secure zone for them to expire one year after they sign up for it?
    I have tried using a hidden field named "ZoneExpiry" (I have tried "ExpiryDate" as well) in the form and set its value attribute manually in the HTML (with the format 13-May-13), and the expiration date always ends up being 31-Dec-9999.
    Any help would be greatly appreciated.
    Thanks!

    I have done this.
    Have a hidden input field on form  <input name="ZoneExpiry" id="ExpiryDate" />
    Then have a function as follows:
    var dat=new Date();
                                                      dat.setDate(dat.getDate() + 365);
                                                      var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
                                                      var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();   
                                                      jQuery("#ExpiryDate").val(pretty);
    Hope this helps.

  • Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down).

    # Question
    Can you please help to understand how the firefox decides on the Expires date for a cached javascript file ( my server did not set any Expire header, but firebox set it down). I tried to understand but different javascript file gets different Expires date value when it is being cached. Please help me as I tried lot and could not get proper answer for this. Thanks in Advance.

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • HT1657 Can i get a refund for a rental i didn't view before the expiration date?

    Can i get a refund for a rental i didn't view before the expiration date?
    I wasn't able to tranfer the movie to the ipad, and couldn't view it on my pc.

    All purchases are considered final, but you can try contacting iTunes support and see if they will give you a refund or credit : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to check the expired date of a public key stored in my keyStore

    Hello,
    I would like to know if there is any possibility to check the expiration date of a public key which is present in my keystore.
    I did read the help of keytool but did not found any explanation about that.
    Thanks in advance for your answers.
    Alain.
    Message was edited by:
    Philipina

    Public key doesn't have an expiration date. Certificate has. Run keytool -list -v and you can read something looks like:
    Valid from: ... until: ...

  • Add the " expired date" in the batch determination

    Dear Guru
    we are to do the batch determination in the sales order,
    I want to know is it possible to add the " expired date" in the "batch determination" ?
    Thanks.

    If you want to add the Expiry Date then you can maintain the same in Batch Characteristics as Expired Date while creation of Batch.
    Also maintain in the Material Master Record > Plant Date / Storage 1 > Shelf Life Data  - Min. Rem. Shelf Life & Total Shelf Life.
    Best Regards,
    Ankur

  • Get the expiration date in the mib

    Hello,
    I'm looking for a way to get the expiration date of my ironport device via snmp But I couldn't find it in the MIB posted on the website.
    Could you please tell me where (and if) I can find this information?!
    Thank you

    Hello Stephane,
    the Cisco IronPortdevices itself has no expiry date, as you have purchased the hardware permanently. However, if you look for expiry dates of feature keys, there are a number of entries providing this info:
    keyExpirationTable
    keyExpirationEntry
    keyExpirationIndex
    keySecondsUntilExpire
    Hope that helps,
    Andreas

Maybe you are looking for

  • Issue with multiple files merging into 1

    I'm trying to write some code that will read the contents of multiple files in a directory then output it into a single file. However when I try to open the files via a for loop it does not recognise the variable I have assigned for the filename: Fil

  • (Bug?) Adding an excel chart into a sheet

    Has anybody experienced the following problem? I've built a chart in excel, and everything is ok, but when i try to put it into a sheet, something fails. There's no error reported, but the Location property of Chart class fails, and my chart appears

  • How to see the captured video clips in finder?

    The project file is like a folder, where the capture video clips are inside, but how to open the folder to use captured clips in Final Cut Express?

  • Opening a new Safari window

    Last year I downloaded a program that had a green icon that looks likes a round speedometer with "SS" on it. It is labeled "New Safari Window". When you click this, a new safari window opens. Can anyone tell me where to find this download? I have it

  • Printing all topics in a book in Webhelp format

    How can users print all of the topics in a book of topics from the TOC? I know in .chm format, you can right-click a purple book, select Print from the shortcut menu, and then select the Print the selected heading and all subtopics option. However, I