Automatically sending email

Hi, gurus. i even not sure the thread's title i gave was actully peoper. here is my question: let's say i have a air ticket booking website. User can choose to let the system hold his booking for two weeks if the desired ticket is not avaiable at the moment. System will automatically send a email to this customer for further options(i.e. offer another two weeks extension) if there are still no tickets avaiable after been holding for two weeks. I thought i could have a backend servlet or thread that runs once a day to check the timestamp(stored in db) of these bookings that people want to be holding for two weeks. My question is how do i make this backend servlet or thread or is there any better way of doing it? any help is deeply appreciated.

Here is what i've got so far, i may have
(new java.util.Timer()).scheduleAtFixedRate(TimerTask, task, long 0, long 24*60*60*1000)which supposed to execute the task repeatly once a day soon as the first time the whole web app is loaded.My question is how am i gonna make the thread, which contains this bit of code, invoked? Can i write some sort of initial parameters into the web.xml file which would accomplish the task? Or what i thought here is complete wrong? any help is greatly appreciated.

Similar Messages

  • Submit by Email Without Automatically Sending Email???

    I'm trying to distribute a form that will "submit by email" when the user is finished filling it out. Then when our admin receives the form, have it automatically ask what dataset to add it to.
    This works fine, EXCEPT when the user submits the form, it automatically sends the email right away - straight to the Outlook "Outbox" folder. I want it to create the email (with PDF attachment), but wait for the user to hit send. This is so they can attach additional files to the email or add comments to the body of the email.
    Right now this doesn't seem possible. I can send it without using the "Distribute Form" option in the menus, but then the popup asking what dataset to add it to doesn't appear.
    Any ideas?

    Sure thing, Zoe. Thanks for asking.<br /><br />I've set it up a couple of ways, testing them, and they both seem to work the same way. I currently have it set up with a generic button, type "Button", control type "Submit" with "Submit to URL:" set to "mailto:<emailaddress>" and "Submit as" set to PDF in the Submit tab.<br /><br />I've also used a "Email Submit" button for this, with the email address and subject line set appropriately. Both of these methods seem to work the same way. I haven't tried an "HTTP Submit" button method yet, but I would presume it to work the same also.<br /><br />Any ideas? Thanks for the help.

  • Automate Sending Email with Attachment

    Hello, I want to know if there is a way to automate sending invoices using Automator considering the following workflow.
    Print Invoice from local / network connected windows computer
    Scan Printed Invoice on a separate Web-Connected Mac
    Place Invoices in folder with the following Hierarchy
    Documents Folder
    Year
    Month / Day
    Manually rename Invoices (Invoices with more than one page / more than one TIFF file (1 per page) are named INVOICE# (2))
    Reference scanned Invoice for Email address
    Manually compose emails and add attachments
    Is it possible to use this workflow using automator?
    THANKS FOR ALL THE HELP! I do this at least 50 times daily and it's time consuming...

    The New Mail Message action will attach files sent to it, so you can use that and a Send Outgoing Messages action in a workflow saved as a folder action plug in. The plug in will send the files added to a folder to your workflow, so all you need to do next is configure folder actions to attach the plug in to your certain folder.

  • Apple Mail Automatically Sending Emails Before I Hit Send

    Hi
    I'm having a recurring problem with Apple Mail where emails are being sent by the program before I hit send, so addressee's are receiving half written/finished emails.
    I have sync'd 2 x gmail accounts to my Apple Mail, and the same problem happens with each account. Does anyone know what to do to fix this as it's highly annoying!
    Thanks

    Welcome to Apple Discussions.
    "I'm having the exact same problem and it's driving me insane. Have you been able to solve it yet?"
    Why you reply to yourself?
    Anyway, you may want to look at it.
    http://www.google.com/support/forum/p/Google%20Apps/thread?tid=5a3d43bcb6f18cf4& hl=en
    Hope it helps.
    Cheers.

  • How do I set the delete button to automatically send email to my deleted folder?

    I was trying to empty my deleted mail folder, and accidentally deleted the entire folder. No worries. I created a new subfolder. But, now when I select the <delete> button, nothing happens. How do I route emails to be automatically stored in my deleted folder when I select the <delete> button?

    the most bottom part

  • How do I automatically send email messages to Junk

    My inbox is loaded with unwanted messages some from dubious sources. I would like to selectively send them to the Junk folder before they appear in my inbox

    That is not a Firefox issue.
    Some e-mail providers have an option to filter incoming mail. Some also
    will send all mail to the junk / spam folder unless the user allows them
    to go to the inbox. Check with your e-mail provider.

  • Send email to user

    Dear All
    is it possible when we create purchase order system automatically send email to specific User?how?
    is it possible when we create purchase order system automatically send email to specific Vendor?how?
    best regards
    R.T

    Dear,
    In both cases the possibility answer is YES.
    If you can search on net with 'Send PO email automatically to vendor in SAP' you will get hundreds of results some with steps.
    Similar to other also...
    And check in Forum search also...
    Try ...
    Regards,
    Syed Hussain.

  • How to send Oracle AS report automatically by email

    Dear Gurus,
    I would like to generate a Oracle report automatically and send it by Email. so for that I am trying by using below command
    C:\home\BIN\rwclient server=rep_servername_FRHome report=C:\reportpath\report.rdf userid=username/password@aliasname desformat=pdf destype=mail desname=[email protected] Parameter1=xxxxx parameter2=xxxxxx parameter3=xxxx parameter4=xxxx
    But I am getting below error.
    REP-0177: Error while running in remote server
    Executed successfully but there were some errors when distribute the output.
    But if i tried to generate the output as a file in local machine its working fine and below comand is generating report on local desk
    C:\home\BIN\rwclient server=rep_servername_FRHome report=C:\reportpath\report.rdf userid=username/password@aliasname desformat=pdf DESTYPE=file DESNAME=C:\report\reportname.pdf Parameter1=xxxxx parameter2=xxxxxx parameter3=xxxx parameter4=xxxx
    My only problem is by using rwclient I am unable to send Email
    Please help me on this.
    Regards,
    Satish Kumar Sadhu

    Dear Friends,
    I have resolved the issue by putting my smtp server on servicename.conf

  • How to send emails using Automatic Work Items in Collections using XML Publ

    Hi,
    We are using XML Publisher to send correspondances in Advanced Collections.
    We want to send email correspondances using Automatic Strategy Work Items.
    Can anybody please help on how to send these?

    I believe you have to define your dunning template and assign that template to the strategy work item.
    Let me know if you are still not able to do it.
    Thanks,
    Anil

  • How to send automatic Birthday email to users in a list.

    Hi,
    I know this question has been asked multiple times but I'm not able to implement any solution correctly.
    I have a list containing users and their birthdays. I created a sharepoint workflow which first checks if value in the field "Birthdays" is equal to today's date and if true then it sends email to the respective user. I ticked all options for starting
    workflow (automatic, manually, new, changed). This workflow works when I add a new item(or modify) in the list. 
    Now, I want this workflow to work even when all users and their birthdays are already created in the list and there is no scope of triggering the workflow through creating new item or changing any item. Anyway birthday workflow is supposed to check the entire
    "Birthdays" column match the dates with today's date and if they match then it should send email. I tried to play with information policy settings with no success (I followed this - *not able to post the link*. The workflow just doesn't trigger.
    I'm not sure what will be the impact of pause until on the performance of my website. I'll be glad to know any suggestions on how I can make it work?

    I dont think your approach will work. This type of repeatative jobs can either be done with some sort of timer service or Scheduling a task.
    One way to achieve your desired result is:
    1) Create your list of users with their birthday and any required information (It seems you have this)
    2) Create a list with some metadata that you will require during sending email. Add one dummy list Item in it. 
    3) Now create a workflow (you already have this) on this second list.
    4) Write a PowerShell script and schedule task it to run everyday which will loop through your Employee Birthday List and if it founds a match it will update that dummy list item with real metadata. 
    5) Configure your workflow to run automatically when an item is updated.
    The only challenge you will have is when two users have their birthday on the same day. What you can do in that case is as soon you update your dummy item you pause your script for 60 seconds or whatever the time it takes to complete your workflow notificiation. 
    Amit

  • Automatically send pictures from camera to email?

    Hello,
    Is there any way/hack/trick/app to automatically send new images from my camera?
    Ideally, I would take a photo, then the picture would automatically be sent to an email, without an additional click.
    Right now, I have to click "send as email" and then start typing my email address.  This takes too long, especially when I have to do it for every single photo.
    Any thoughts?
    Thanks!
    Brian
    Pearl 8130

    On the Gmail mobile site, there appears to be no option to attach a file.
    However! If you save your email as a draft before sending it, scroll to the bottom of the pane and you should see a link that takes you to the desktop version of Gmail.
    Reopen your email and you can attach your file and send it.
    Hope that helps!
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!

  • Automatically send by email the result of a scheduled workbook Discoverer

    Hi
    is their any way to send emails automatically from discoverer 4i, the results of the scheduled workbooks!
    if not in 4i whether it can be done in 9i?
    -Seetha

    Hello,
    I have the same requirement .. I need to email dicoverer report to about 40 - 50 clients. I need to pass the clients name as paramter to the workbook and send the report output to the corresponding client.
    Can some body please tell me how this can be done using batch file. Is it possible to pass parameters to workbooks and run the disc report from the batch file.
    Thanks in advance.

  • TS3899 iPhone 5s Mail app shut down automatically when try to send email

    I just set up new iPhone 5s two days ago from iPhone 5.
    Everything works fine except Mail app.
    Due to Mail app, I had to set up new configuation instead of back up from old iPhone 5.
    Mail app works fine 1 day, but after the day after, the mail app shut down automatically when try to send email.
    Just one specific email account has problem. It worked fine on iPhone 5. Same setting on Pop and SMTP. Exactly same~~
    - I did try to reset iPhone 5s pressing home button and sleep button for 10 second. It did not work
    - I did try to reset all information and install iPhone 5s and the problem still exists.
    - I did try to delete specific email account and re-make it, but it did not work
    Funny thing is that if Lanuague is English, then sending email is working. Absolutely no problem.
    However, if Language setting is Korean, then Mail App shut down automatically.
    I'm heavy email maker and if it is very annoying.
    Does anyone have same issue like this?
    I believed it is iOS7 bug?
    Can anyone help me on this???

    Am having similar problems with a new iPad Air. It will recieve email in Mail as directd from my domain email account. It will not send, advising server does not recognise account. I have checked and re checked settings.
    My computer and old iPad work perfectly. Any ideas would be really appreciated.
    By the way sending email directly from the domain email account works perfectly but I prefer using Mail.
    James

  • Sending emails automatically

    does anybody know how to send emails automatically if it meets the requirement, for example, will send emails automatically if an account balance is less than $100? are there any codes to guide me?

    Here's some code, just pass in the to, from, subject, and body in the constructor... You'll have to tweak the mail server ip's, etc... You need mail.jar, which is available somewhere on java.sun.com.
    I just use it to send email from my appserver, and I'm not using all the capabilities.. You can send attachments, multi-part mime, etc.. This class can easily be modified to do spamming, mailbombs, or newslists.
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    public class Mailer{
        public Mailer(String to, String fr, String subj, String mess1) {
            System.out.println("class Mailer sending a msg..");
             String from = null;
             String toUser=null;
             String host = "mail.yourdomain.net";  //MAIL SERVER HOSTNAME
             boolean debug = false;
             String msgText1 = "";
             String subject = "";
            try{
                toUser = to.trim();
            }catch(Exception e){to = "[email protected]";}
             try {
                 msgText1 = mess1.trim();
             }catch(Exception e){}
             try {
                 from=fr;
             }catch(Exception ex){}
             // create some properties and get the default Session
             Properties props = System.getProperties();
             props.put("mail.smtp.host", host);                   //to be honest, i have no idea
             props.put("mail.user","[email protected]");//what these 2 lines are for..
             Session session = Session.getDefaultInstance(props, null);
             session.setDebug(debug);
             try {
                 // create a message
                 MimeMessage msg = new MimeMessage(session);
                 msg.setFrom(new InternetAddress(from));
                    InternetAddress[] address={new InternetAddress(toUser)};
                    try {
                        address[0].setPersonal(null);
                    }catch(Exception ex){System.out.println("couldn't null out personal info in address[0]");}
                 msg.setRecipients(Message.RecipientType.TO, address);
                 msg.setSubject(props.getProperty("user.dir"));
                 // create and fill the first message part
                 MimeBodyPart mbp1 = new MimeBodyPart();
                 //mbp1.setText(msgText1);
                 // create the Multipart and its parts to it
                 Multipart mp = new MimeMultipart();
                 // add the Multipart to the message
                 msg.setContent(mp);
                 // set the Date: header
                 msg.setSentDate(new Date());
                 msg.setText(msgText1);
                try {
                    subject=subj.trim();
                    msg.setSubject(subject);
                 }catch(Exception ex){System.out.println("no subj..");}
                 // send the message
                 Transport.send(msg);
             } catch (MessagingException mex) {
                 System.out.println("error in DPWMailer: "+mex);
                 mex.printStackTrace();
                 Exception ex = null;
                 if ((ex = mex.getNextException()) != null) {
                  ex.printStackTrace();
              //{{INIT_CONTROLS
         //{{DECLARE_CONTROLS
    }

  • I write a new email from my personal gmail account and it automatically sends from my family gmail account.  I  make sure that it lists my personal email on the from line. it still shows up that its from my family email. Help!

    I write a new email message from my personal gmail account and it automatically sends from my family gmail account.  I  make sure that it lists my personal email on the from line. It still shows up that its from my family email. Help!

    Hello, gypsyro. 
    Thank you for visiting Apple Support Communities.
    I would check to make sure the default account in Settings > Mail, Contacts, Calendars is set to your personal Gmail account.  Test send another message after making the change.
    Mail Settings
    Cheers,
    Jason H.

Maybe you are looking for

  • Connect to broadband wireless, but not through Airport Extreme b/g

    I have had an Airport Extreme BS working as a Gateway to my Wireless Broadband service since last July. The AEBS has been providing internet to a WinXP laptop, and an iMac running OSX 10.5.2. This has been working well since installed. My Wireless Br

  • HT5312 What if I can't remember my answers?

    For my security questions

  • 10.2.0.3 Patch

    Tried to apply the 10.2.0.3 RDBMS patch to 10.2.0.1 Client. Installer stated there is nothing to patch. Is there a separate 10.2.0.3 patch for the 10.2.0.1 Client?

  • What is te best way to copy a table from a database to another?

    Hello friends: I have two databases: an Access database and an Oracle database. I must copy the data from al tables from the Access database to the oracle database. The tables in the both databases are equal (number of columns, type, etc). I read an

  • Weeks in a Year

    Hi guys. Hope you can give me a heads up here. I have the year as the only input, how can I produce all the weeks for that year....lets say for 2007 week 1 = Jan 6 - 12 week 2 = jan 13 - 19 week 3 = jan 20 - 26 week 4 = jan 27 - feb 2 etc...