This shows you the differences between two versions of the page.
|
howto:send_email_to_your_pda_from_the_command_prompt [2010/05/17 21:15] brendan |
howto:send_email_to_your_pda_from_the_command_prompt [2010/05/17 21:16] (current) brendan |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| You might be wondering why I didn't simply build a script to send mnail directly from my desktop via SMTP to my personal email provider. The reason for this is that SMTP from an end-user's computer is problematic. In some places where you take your computer you might be blocked by firewalls. Plus, it can be difficult or impossible to establish SMTP access to most free email providers. On the other hand, I happen to have a personal web host (as do a lot of other people) and scripts that reside there can reliably send email. | You might be wondering why I didn't simply build a script to send mnail directly from my desktop via SMTP to my personal email provider. The reason for this is that SMTP from an end-user's computer is problematic. In some places where you take your computer you might be blocked by firewalls. Plus, it can be difficult or impossible to establish SMTP access to most free email providers. On the other hand, I happen to have a personal web host (as do a lot of other people) and scripts that reside there can reliably send email. | ||
| - | |||
| ===== The Client Script ===== | ===== The Client Script ===== | ||
| Put this script on your desktop somewhere accessible from your ''$PATH'' environment variable. | Put this script on your desktop somewhere accessible from your ''$PATH'' environment variable. | ||
| - | <code python> | + | <code python mailpda> |
| #!/usr/bin/python | #!/usr/bin/python | ||
| Line 132: | Line 131: | ||
| useful_command | mailpda.py #send the output of a command | useful_command | mailpda.py #send the output of a command | ||
| </code> | </code> | ||
| - | |||