Tasker is Best ever application I came through for Automation, This is the one that make every iOS users feel jealous of Android.
So I here share a profile to Send Automatic email whenever I get a text message or Missed calls on My android Phone
I wanted both missed calls and all text messages to be forwarded to my inbox --
since I turn my phone on silent and vibrate is off while I am at work.
Again, this method requires access to a webserver that will allow you
to run a sendmail script. In my case, my server runs PHP4 so I use the
native sendmail protocols.
Below is the text of my PHP script, saved as "maildroid.php" and in
the root directory of my server. I made the $headers give a "From"
value of "DROID" so that I could create a label in Gmail if I decided
to archive or filter and do something with them later, but you could
just as easily make the "From" value be the actual sender/caller.
(ie., $headers = "From: " . $_POST["sender"]; ) ...although I have yet
to figure out how to make the sender's name show up instead of their
number. I believe that's a limitation of the available variables
within Tasker.
<?php
$to = "youremail@gmail.com";
$headers = 'From: DROID';
if ($_POST["type"] == "text") {
$subject = "SMS from ". $_POST["sender"];
$message = $_POST["text"];
}
if ($_POST["type"] == "missedcall") {
$subject = "Missed Call from ". $_POST["sender"];
$message = "No text to read, just check your voice mail or call them
back when you get a chance!";
}
if (mail($to, $subject, $message, $headers)) {
echo("");
} else {
echo("");
}
?>
Once you have this set up, you need to create two new Profiles within
Tasker. One I called Missed Call Mail and one I called SMS Mail.
MISSED CALL MAIL:
(1) Context Event: Phone -> Missed call
(2) Task Action: Net -> HTTP Post
Server:Port: www.yourdomain.com
Path: maildroid.php
Data: type=missedcall
sender=%CNUM
Timeout: 30
Content Type: application/x-www-form-
If: %VOLR < 2
NOTE: I set the "If" parameter to check if the volume of the ringer is
less than 2 but you can change it so that it checks if it's equal to 0
if you only want it to be activated when sound is completely silent.
SMS MAIL:
(1) Context Event: Phone -> Received SMS
(2) Task Action: Net -> HTTP Post
Server:Port: www.yourdomain.com
Path: maildroid.php
Data: type=text
sender=%SMSRF
text=%SMSRB
Timeout: 30
Content Type: application/x-www-form-
If: %VOLN < 2
courtesy:- Google Groups For Tasker



