I'm programming a calendar website. The reminder message should be sent using kik.
Therefore I need to send a message even if the page is not actually called.
Is there a possibility to do this, for example using a timer that is set when the date/event is
put into the calendar from the user
thanks for your help
This is not possible. The Kik API is structured in a way that messages can only be sent with the user's explicit permission.
Push notifications are an alternative for your kind of use-case. Check out the documentation here: http://dev.kik.com/docs/#push
Related
Hi to any PHPMailer expert.
Being using the mailer and works like a charm!
I have received mails several from various organizations and I get a "View in Browser" option.
I would like to add that same functionality to my mails. I have googled endlessly without success :(
Can anyone point me in the write direction or post the code?
As per usual your help is always appreciated.
Many thanks
Barry
I'm not aware of anything specific to Outlook for doing this, but the normal approach to this (what I do) is to make the same message available as a web page as part of your sending process. On my own system it uses exactly the same mechanism that's used to preview mailings before sending.
So when you have some HTML that you use to generate your email message, do the same thing but render it as a web page directly. If you're using PHPMailer you would do whatever you normally do to build a message and put your content in the Body property and send it, but just output it to the browser instead.
I need to configure TWILIO SMS account to forward the received SMS to some PHP URL. So,
now if I have that PHP URL already opened in my web browser, and if some message is being forwarded to this URL from TWILIO with GET request, how can I show the received data in that already opened PHP Web URL?
Ex : If I give this URL http://www.somephp.com/index.php in TWILIO dashboard to forward the incoming SMS with GET request.
And I open that in my web browser already to see if there is any SMS from TWILIO. How can I constantly check if any new SMS forwarded from TWILIO?
Can I use any TIMER to check GET requests ? Or Am I totally in wrong way? I cannot find any solution around when I google. Please forgive me if it seems to be a silly question. I would be very grateful if you could guide me in this issue. Thanks a lot for your time!
For easy you can use the jQuery library, then poll regularly for new data using a backend php script.
You'd have to use some JavaScript (jQuery might be easier) to run a setInterval function every X seconds. Anther option is you could use a meta-refresh that would simply reload the page every X seconds.
I dont think that way its possible to achieve what you want.
What you can do is -
set http://www.somephp.com/index.php as sms reply in you dashboard.
In index.php save any new request into a database with sender details and message content and time it was received.
Now write a new script say http://www.somephp.com/updateMessages.php
In this page use jquery or javascript to make AJAX request to a script which will connect to database and check if there are any new messages. If there is, display that message and start checking for a message received after this message.
This way if you will open http://www.somephp.com/updateMessages.php you will get all new messages here.
For my next application i would like to implement something that has a feature like the facebook wall but let me explain a bit. For those of you who used facebook you know that when somebody posts a message on your wall, and you are logged in to your account, you will get a notification immediately somewhere in the lower left corner. Lately they even pushed this a little bit further and if somebody comments on it the comments are updated as you visualize the page, it's like an instant chat.
My application will be developed in PHP, I will use Zend Framework to do it. I'm interested in the basic principle that makes the facebook wall behave like that (updates in real time). I know there is ajax involved but I can't really tell how is the javascript triggered when the user is doing something. Or even more, how to push back to a user some info that was added after he viewed the page. For example, let's say that a somebody adds me as a friend. I would like to see a notification saying "X has added you as a friend" if i am logged in. I hope you understand what I'm trying to do.
If you can tell me some basic ideas, maybe provide some links that have this information I would be very grateful.
Thank you for your time in reading this.
you need to look at comet , reverse ajax , ajax polling
If some event is triggered, then store the event on database (with ajax or without ajax).
You will be needing a script in server to check if some event has been triggered or not. This script should be able to check events that are stored in database.
You need to execute script in step 2 periodically. This can be acheived with with ajax (javascript or jquery) and a function settimeout (on javascript) to send ajax request to server periodically.
Changes are sent from server. So parse the response and update in page using javascipt and jquery.
So, it can be summarized as
Register an event (for one user)
Check the event (for other user)
Parse the response and update the page
There are several elegant ways to do this as answered by others.
The best would be the start the project and ask for help where ever stuck.
It is only partially possible to keep an HTTP connection open, so the best option is probably to poll for changes. You can send a request each second to see if anything is changed since time 'x'. On each response you send along the server time. With the new request you send the time of the old request and the server can return any events that happened inbetween.
Also you can read something about AMQP. You can send a message to recepients inboxes (after some actions in your system) and then read inboxes after start or with some time interval.
I am wondering if this is possible to push a message from server to web browser??
Like you want to alert user or any message that you want to send to specific user... An example is as chat invitation is sent from chat operator to site visitor...
Is it possible?? i prefer to use PHP, Javascript
I don't want to use AJAX calls to PULL, i want to PUSH.
Looking forward.
You can't actually push yet. You can use Comet techniques, including long-polling, but you can't actually push yet. Someday you'll be able to use web sockets.
I think the way to do this is just to use AJAX to pull every so often.
You would have to be running some sort of program on the client that you can push stuff to.
Like
an IM client or similar program
a browser window with a page that does frequent Ajax checks (probably the most easy way to go)
a browser window with a page that has a COMET connection open.
I need a php script that you can use to set up a online newsletter and then have a link that will allow the visitors to email the Web Page as a Newsletter to someone elses email...
Is this possible? I suppose it is, as it is done here. That is exactly what I need. I want to set up a newsletter, add a script that will allow the visitor to send that newsletter directly to a friends inbox. http://www.pretoria.co.za/interactive/forward-newsletter.html
I suppose I just need the script to send an html file to the email address
Please help - thank you
Use a MySQL and mail function, or use e.g. this.
That can be written fairly easily using one of the email wrapper scripts, such as phpMailer. However, when doing so, pay particular attention to issues that could lead to spam and other abuse of the form. You should spend the time to really lock down the client-side, as well as server-side validation on all input variables.
That being said, the best way is to save the HTML of the page in a database, and pull it out into the body of the email. You should also include a text-only version as an alternate body so people without HTML email will be able to read it. Then, when someone submits the form, just validate the data, put together the message with the methods available with the mailer class you choose, send the email, and then redirect to a "thank you" page.