dongling4288 2015-03-28 17:57
浏览 67

使用Mac Yosemite使用XAMPP和PHP发送电子邮件

I am really confused on where to start with sending emails. I have search the web but the amount of content available for different packages and softwares has really confused me. I was wondering if anyone here had a simple or knows of a simple tutorial of how i can send an email using xampp.

Im new to using local host and so far have only used MySQL and Apache from xampp to load and view my php files for an application.

I would really appreciate it if anyone could help me start setting up XAMPP to send emails when i use the php.

Some sites suggest a separate server is needed for emails such as PHPMailer while others suggest a few config changes need making like changing in the php.ini files which I'm very cautious to change incase my whole xampp crashes!

is this link any good? http://www.websnippetz.com/2013/01/send-email-from-xampp-localhost.html Many are using SendMail package with XAMPP but i can't find a download for that.

anyone tried anything which worked for them?

please help a very confused developer guys!

  • 写回答

2条回答 默认 最新

  • dqz86173 2015-03-28 18:19
    关注

    To send emails from your localhost your need an Email-Server like postfix or Exim or you send your E-Mails over SMTP what is described on that site from your link.

    The easiest way is to use an abstraction layer like Swift Mailer

    http://swiftmailer.org/docs/sending.html

    Here you have a lot of possibilities to send E-Mails. Another solution is to install a local Mailserver and fetch all sending E-Mails. In MAMP Pro for example you have an integrated Mailserver.

    http://blog-en.mamp.info/2009/09/how-to-sending-emails-with-mamp-pro.html

    评论

报告相同问题?

悬赏问题

  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值