doushi1960 2011-10-06 14:25
浏览 36
已采纳

PEAR :: Mail vs. PHP:Mail

I am creating a PHP system that will forward emails, (ie. someone@emailforprofession.com to someone@gmail.com) without using an SMTP server which is faster and more stable? PEAR::Mail or PHP: Mail? (or another one entirely)

I would be using extra headers and attachments but mainly trying to keep it looking and acting the same. (if anyone has an example for forwarding with attachments PLEASE provide it!)

And not exactly on the side but is there a way for people to be able to send email from they're someone@emailforprofession.com email address without having a complete inbox etc?

It would probably be better for me to use a real email provider but these are supposed to be free email addresses so paying by the email address is not an option, if anyone knows of a service that: charges by the month or year, has an API that email addresses can be created from and that can set up email forwards via the API that would be most appreciated.

I currently have a partial system together but would like to know which way I should go first.

Thank you all.

  • 写回答

1条回答 默认 最新

  • duanning9110 2011-10-06 14:30
    关注

    The PEAR class supports multiple mailer backends, which allows you to switch whenever needed and you'll be able to perform some benchmarks and see which backend suits you best. The native mail function on the other hand is much less advanced and will show a clear difference in performance, especially for that amount of mails.

    I also suggest you have a look at PEAR's mail queue class: http://pear.php.net/package/Mail_Queue

    This is much more recommended for larger projects such as yours, you'll also be able to implement a cron like feature which will send a certain amount of mail per period you choose.

    Here

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line