[英]How to send emails with my own email server installed locally
I have installed my mail enabled professional copy on the same server as php is installed (and wordpress) and I want to use the mail server when people enter emails forms etc. 我已将启用邮件的专业副本与安装php(和wordpress)的服务器安装在同一台服务器上,当人们输入电子邮件表单等时,我想使用邮件服务器。
I started with looking on simple email scripts but they all have failed and I have been googling for at least 8-9 hours on different solutions on scripts with sendmail, scripts using gmail, and lots of options that almost all require PEAR or some other solution - and I have thrown in the towel before I start tearing my hair out in frustration.. 我从研究简单的电子邮件脚本开始,但是它们都失败了,并且我在使用sendmail的脚本,使用gmail的脚本以及几乎所有都需要PEAR或其他解决方案的许多选项上针对不同的解决方案进行了至少8-9个小时的谷歌搜索-在开始沮丧地撕头发之前,我已经把毛巾扔了。
So Now I want to go with this option as it's simpler for me and I do already own a license to mail enable. 现在,我想使用此选项,因为它对我来说比较简单,而且我已经拥有启用邮件的许可证。
How can I accomplish this? 我该怎么做?
I have the newest version of php available... Server is a Windows server 2003 ENT with IIS 6 installed and MySQL server/wordpress. 我有可用的最新版本的php ...服务器是Windows Server 2003 ENT,安装了IIS 6和MySQL服务器/ wordpress。
I am not a programmer - just a "normal" guy.. I know to get around with computers - most of the time - but coding Is like greek to me! 我不是程序员-只是一个“普通”的家伙。.我知道大部分时间都在与计算机打交道-但是编码对我来说就像希腊语! (Which in this case might be my Achilles heel) (在这种情况下,可能是我的致命弱点)
Try using PHPMailer or SwiftMailer. 尝试使用PHPMailer或SwiftMailer。
These libraries make it trivial to configure your mail server to send emails with. 这些库使配置邮件服务器发送电子邮件变得很简单。
Mailenable should provide you with a smtp server and credentials. Mailenable应该为您提供一个smtp服务器和凭据。
Here's an example with phpmailer : http://phpmailer.worxware.com/index.php?pg=examplebsmtp 这是phpmailer的示例: http ://phpmailer.worxware.com/index.php?pg= examplebsmtp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.