The formatting is html that I'm refering to.
Quote:
|
Originally Posted by brunson
Hmmm... can't help you strictly from sendmail, I could tell you how to do it with postfix.
An alternative that would work with either, but is a little less clean, would be to have the messages go first to a mailbox that doesn't go to your phone, then set that account to use procmail to process the message to strip out the non-text parts, then pass it on to your phone push account.
|
How would I go about setting this up?
My first idea was to use php-imap to connect, strip the html, and mail it along. The problem I've been running into is the following error when connecting to the inbox:
PHP Warning: imap_open(): Couldn't open stream {localhost:110/pop3}INBOX in email.php on line 3
I've tried it using the pop connection and the imap connection, both with the same result.