Re: [PHP] sms through teleflip and php?



Maybe phpMailer isn't sending the correct headers either. Sometimes all it takes is one missing header that a system is looking for and it may filter it as spam or something.

Again, I encourage you to examine the headers from your Thunderbird "good" email and compare it to your PHP and/or phpMailer headers that are getting sent. Possibly try to emulate the successful email as much as possible by copying the headers from a known successful message.

If that doesn't work, then you may contact teleflip or whatever service you're trying to send text messages to and ask them if they can provide any information as to why it may not be going through. Never know, might find someone with half a brain who can help.

-TG

= = = Original message = = =

I tried using phpMailer and all and it nothing seems to work right. I can
send it fine through thunderbird but it just seems to complain via php. Not
sure why.

On 1/16/07, tg-php@xxxxxxxxxxxxxxxxxxxxxx <tg-php@xxxxxxxxxxxxxxxxxxxxxx>
wrote:

I'm guessing the SMS system is rejecting the email because it's lacking
some headers that mail programs tend to use... and spammers sometimes
forget.

You might send your email from Thunderbird.. CC yourself on it. Verify
that it went through as a text message, then open the CC'd copy and look at
the headers. You can start by taking all those headers and putting them
into your PHP script then slowly commenting some out until you get just what
you need and not a lot of extra garbage (to keep it simple and
semi-elegant).

That's where I'd start at least.

-TG

= = = Original message = = =

Has anyone been able to successfully send a text message using php and the
mail function?

It works fine if I open up thunderbird and send a message to
mynumber@xxxxxxxxxxxx but if I use the mail function:

mail("mynumber@xxxxxxxxxxxx", "test", "test");

It doesn't work. I've tried several different approaches so was curious
if
others have used it successfully.

Thanks!


___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
.



Relevant Pages

  • RE: [PHP] two small issues with php mail
    ... the mail function on windows, but if these guys who developed ... function on Windows to work with Bcc. ... SMTP server or use PHPMailer... ... mail(bcc-addr, subject, message, headers); ...
    (php.general)
  • RE: [PHP] Cannot send a hyperlink
    ... [PHP] Cannot send a hyperlink ... Why is php refusing to parse as html? ... something like PHPMailer. ... You don't need to add two carriage returns at the end of the headers - ...
    (php.general)
  • mail function and headers
    ... i'm playing a little bit with the mail function from PHP 5.2.4 and email ... headers. ... here is a snippet of my code: ...
    (php.general)
  • Re: help with email form
    ... action="mail.php" in the html. ... The signature of PHP's mail function is: ... what will happen is PHP will consider $message to be your headers and ...
    (comp.lang.php)
  • Re: [PHP] mail function and headers
    ... i'm playing a little bit with the mail function from PHP 5.2.4 and email ... headers. ... here is a snippet of my code: ...
    (php.general)