duanna2026 2014-10-18 20:36
浏览 87

电子邮件管道 - 从电子邮件中读取文本附件

I'm creating a PHP Script to save phone numbers in a database if they text a certain word.

For example: If an iPhone on AT&T sends a SMS to "myemail@site.net", and the message has "hello", they are saved into a database.

The problem is that the body of the SMS, what should be "hello", is being stored as an attachment labeled text_0.txt. You can google this issue and it's pretty widespread https://www.google.com/search?q=text_0.txt&oq=text_0.txt&aqs=chrome..69i57j69i61l2&sourceid=chrome&es_sm=93&ie=UTF-8

I'm wondering how I can take the email, once piped, see if it has an attachment, and if so, read it. It's just a basic .txt file.

Thank you in advance.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
    • ¥20 Java-Oj-桌布的计算
    • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
    • ¥20 有人知道这种图怎么画吗?
    • ¥15 pyqt6如何引用qrc文件加载里面的的资源
    • ¥15 安卓JNI项目使用lua上的问题
    • ¥20 RL+GNN解决人员排班问题时梯度消失
    • ¥60 要数控稳压电源测试数据
    • ¥15 能帮我写下这个编程吗
    • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路