Sending E-mail notifications for two different dates. - oracle11g

I have a requirement form one of the department from my company, they want to have two dates in their content profile, one is expiring date and other is follow up date. Their demand is they want to have notification from expiring date one month before and for the follow up date they want to have notification after every seven days. I know how to handle the notification for expiring date, that part is done. The issue is not don't know how to achieve notification fucntionality with follow up date.
I have developed a custom component for this, in which I have wrote code for the mail sending for follow up date. But the issue is for I am not being able to fetch the author's email address and for temporary basis I have hard coded the email address for that.
I would like to know from you guys, if I am on the correct path, If I am then how should I fetch the Author's Email address.
PS: If required I will post my java component's code here.

Did you consider using the OOTB Notification of Expiration component?

Related

Need some hints for my own WP Theme

After taking some online tutorials I am willing to create my own custom theme for my myself. This is going to be an online Contact Lense store! So far I have learned how to generate and use Custom Post Types, Custom Taxonamyies, Metaboxes , and Option pages.but there is still one confusing part left for me(hopefully not more! :-))
I need to get some user inputs through HTML Select Options like following image to finalize the users orders:
Now my question is:
1- Do I have to create some thing lik Metaboxes to manipulate these data from users?
2- can I handle these kind of data through simple Form ans Post function in PHP? If so where should I store these data? Do I have to create a table on my own to handle these things?
I really appreciate your time regrading this post,
What you're asking for carries a little more complexity than you think!
Let's break this down into its meaningful steps:
A user visits your shop, and decides that they like what they see and wants to make an order
The user fills out a form defining their exact eye requirements, quantity, as well as their contact information
Upon completing this form, a new order has been created
But wait.... how will you get paid? What happens if the user's computer explodes before the payment goes through? How will you know to send them their contacts without first knowing the payment even succeeded?
This is where things start to get tricky. You need to be able to keep a record of orders for the sake of your users, but you also need to look out for your own interests too. Your business is doomed to fail if you're sending out expensive products to people without the proper assurance that you're getting paid.
This is where you'll need to set up a Merchant Account with a service like PayPal or Google Checkout. As much as I despise PayPal, their Instant Payment Notification (IPN) System has been very reliable for me. What this does is automatically send a POST request to your server with all of the information you need to finalize the checkout process and alert your user that their payment has either succeeded or failed.
So with this in mind, how does this affect our step-by-step process?
A user visits your shop, and decides that they like what they see and wants to make an order
The user fills out a form defining their exact eye requirements, quantity, as well as their contact information
Upon completing this form, a new order has been created with a status of pending
The user is then sent to PayPal/Google Checkout to enter their Credit Card information to complete their purchase
PayPal/Google processes the payment
PayPal/Google sends your server the results of the processed payment
The corresponding order is updated with a status of Payment Received or Payment Failed for your own records
You send out the product to a very satisfied customer
So what will this mean from a Wordpress standpoint?
My first suggestion:
Check if a Plugin already exists that can handle this for you!!!
Seriously, this will make your life much easier. Handling people's money as well as your own stock is a nightmare all in itself, you don't want to be responsible for handling the code that drives it, or the possibility of security holes that you might not know about (that other plugins may have already addressed). WooCommerce is a popular one. See if that can handle what you need.
If a Plugin can't do it for you, then you'll need to:
Register a Custom Post Type for Orders
Create a new Order Post using wp_insert_post when a user submits the form with their POST data
Save the relevant POST data you need as metadata using update_post_meta
Send PayPal/Google/Whatever some Custom Information it needs to hang on to - in this case, the newly created Order Post ID - so that it can send it back to your own server
Set up a side-script to process the data sent by PayPal/Google Checkout/Whatever and send an email to the user detailing the status of their purchase and update the corresponding Order Post ID that was sent back by PayPal/Google Checkout/Whatever
(Optional) Set up a CRON Job to periodically scan all Pending orders in case a user's session was interrupted, or they bailed at the last second during checkout and send them an email notifying them about this and provide them a link to your website to reopen, reevaluate, and resend the order, or cancel and clear it from your database
Quite honestly, this would take even a seasoned Developer at least a few weeks worth of work just to get it in working condition. Presentation is a whole different animal.
Hopefully this will give you a step in the right direction. I doubt anybody here will give you the code to do what you need, because there's just too much to post. Entire libraries are built just for these kinds of things.
Good luck!

how to implement "email to add/post" function similar to Evernote, Remeber the milk, blogger, etc?

many website/apps now have function to take incoming emails and add to backend datastore, etc. E.g Evernote, Blogger, you can send an email to specified email address and your note/post will be added. How do they implement this?
What I have done:
create a special email box.
let user to send email in certain format.
then in ASP.NET, read incoming emails periodically using a dummy page and a timer.
then parse email and process information inside.
My questions are:
Is one special email box enough or create email box for each individual users?
Is there a universal format? e.g "#2012-09-03" in subject stands for time or something?
Is there a better way to actively monitor email box, detect unread emails in specified frequency or real time?
Thanks for your input.
What you are really missing here is security.
How do you validate who the sender is?
With emails its easy to impersonate someone else.
While there are methods to securely know this(DomainKeys), not everyone uses them.
Blogger tries to mitigate this risk by asking you to specify a secret email address that you will use to mail them.
One special inbox is definitely not enough.
For the date format, you could use the ISO date format.
This is also used by microdata format for time, so it should be easy to display, and be readable to search engines too.
<time itemprop="startDate" datetime="2012-10-11T19:00-08:00">11 Oct 2012, 7PM</time>
To receive your mails, take a look at MailSystem.NET.
It does have a
New message arrival notification support (IDLE command)
So you wouldn't have to poll the server all the time.

How to implement 'category' based newsletter

Working on my small classified site; i'd like to give the users the ability to choose some categories, for example : cars, boats and receive daily/weekly notifications based on their choices.
A user that has subscribed to 'cars' category will receive daily newsletter saying 'there are 30 new interesting classifieds for you in category : cars'.
Don't know where to start; 'simplenews' module seems too simple for my usage.
Any idea ?
The Subscriptions module seems to do this really well. It will allow your users to select categories they wish to subscribe to as well as the interval they choose to receive notification emails.
As an administrator you can set default category subscriptions for users (if you wish) and to send notification emails in digest form (multiple updates in one email). It doesn't have a time interval of 'weekly' but you may be able to request this in the module issue queue. It is very configurable.
Have you checked out http://drupal.org/project/notifications module?
It's not the easiest module to get your head around but the rewards are pretty good. If you categorising your content using taxonomies then this module should help.

How to post calendar event to participant's specific calendar

I am working Calendar API (Java).
My specific requirement is I want to add participant to event and at the same time want to specify the participants calendar.
Let us say I have 2 users. User-A and User-B
User-A is creating calendar event and adding User-B as participant
User-A's calendar is Cal-A and User-B's calendar is Cal-B.
Now when User-A adds User-B as participant, an event is created in User-B's calendar but is created in his/her static calendar. Is there is a way, how I can specify (using java api) that the invitation/ event created by User-B should go into User-B's Calendar-B?
Note: in the applicaiton program, I have access to both User-A' calendar and User-B's calendar.
Thanks in advance.
I believe the short answer is no...
Google Calendar, regardless of the API or the language you use, is based on the iCalendar standard, which, from my readings of it, does not have the concept of "Invite a participant and post event invitation on this specific calendar of that participant." If I'm wrong, the quickest way to get your answer and prove me wrong is to find evidence of such a feature in the iCalendar documentation.
I thought I had a workaround, which is "Hey, if you have access to person-B's calendar, why not just create the event on their calendar and add person-A as an attendee?" I did this by sharing one of my sub-calendars of one of my Google Calendar accounts with another. But sure enough, you get the same problem in reverse. Now person-B has the event in the right place, but person-A has it on their default calendar.
So depending on which is your "primary" account, you may want to go that route, but I'm guessing you find that about as appealing as what you're dealing with already.
The only other workaround I found (which was not all that great), is you can access Person-B's calendar and copy the invite to another calendar (the one you want), and then delete it from the main calendar. This will work (I tried it), but obviously it's not as graceful as what you had in mind. If you need specifics on how to copy/delete or how to access a specific non-default calendar, let me know and I'll post some examples.
It is possible (even if the solution isn't nice). If the person knows the ID of your other calendar (which is a valid email address), he can send the invitation to the email address. The ID can be found in the settings of the calendar and has the form ...#group.calendar.google.com.
Have a look at my other answer at a similar question for a list of drawbacks of this solution.

Drupal Notifications - Users receiving duplicate emails

We are using Drupal (5.x) Notifications module.
Our users are receiving duplicate emails (related to forum posts)
First email has this subject line: "Your Daily xyz Discussion Digest"
Second email has this subject line: "xyz subscription update for UserABC"
Content is somewhat similar. (formatting is different).
Tried to google for solution. No luck yet.
Any one seen this issue before?
Any suggestions?
sounds like message duping:
Deduping
There may be also more than one
subscription producing multiple
notifications for the same event. I.e.
if you are subscribed to 'story
updates' and subscribed to the
specific thready 'my story 1', then
updating 'my story 1' will actually
produce two notifications, one for
each subscription. These go through
some deduping process before being
sent out, merging notifications for
the same event into one notification.
However, this can be done if (and only
if) both subscriptions are using the
same sending method and the same
sending interval. Otherwise you'll be
getting two or more different
notifications for the same event.
see http://drupal.org/node/318577

Resources