Re: [PHP] Sending Pictures to Cell Phones



On Nov 14, 2007 12:27 PM, <jeremy@xxxxxxxxxxxxxxx> wrote:

Hey list,

I'm doing some R&D for a project at my job and my boss wants the ability
to send pictures to cell phones. I was wondering if anyone had any
experience with this or could point me in the right direction to get
started.

Thanks,
Jeremy


I haven't tested it, but you could try sending an HTML email with the
picture included as the message.

<?php
$to = '9876543210@xxxxxxxxxxxxxxxxxxxx';
$subject = 'Some Subject';
$message = '/path/to/image.png';
// Used for HTML email... php.net/mail
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
mail ($to, $subject, $message, $headers);
?>

Maybe try that. You might also try changing the Content-type to image/png
(or whatever type) if the text/html doesn't work. Again, not tested, but it
may work.

HTH
~Philip


Relevant Pages

  • Re: [kde-linux] Forwarding mail using kmail
    ... Windows handles email perfectly with pictures and the ability to edit your HTML email with the ability to cut and paste HTML email without losing the formating. ...
    (KDE)
  • Sending Pictures to Cell Phones
    ... I'm doing some R&D for a project at my job and my boss wants the ability ... to send pictures to cell phones. ...
    (php.general)
  • Re: [PHP] Sending Pictures to Cell Phones
    ... I'm doing some R&D for a project at my job and my boss wants the ability ... to send pictures to cell phones. ... PHP General Mailing List ...
    (php.general)
  • Re: 500,000.00 Bad beat Jackpot coming to Casino Arizona
    ... I hope someone tries to take pictures with cell phones the eye in the ... > Starting on October 3rd Casino Arizona will be running a "Till It Hits" ... > The remaining players who received a hand of the winning game will split the ...
    (rec.gambling.poker)
  • Re: Erasing womens photos
    ... delusion as regards their ability to arouse women. ... blurring of women's pictures is supposed to counteract. ... They use a lot more _words_ than pictures. ... Nothing here necessarily reflects the opinion of Hebrew University ...
    (soc.culture.jewish.moderated)