JOOMLA中注册后发送激活邮件

  前几天做一个网站,需要在新用户注册后发送激活邮件。 当时按照网上的方法配置了很久,总是不能发送邮件,后来才发现需要把php.ini中的extension=php_openssl.dll前面的注释“;”去掉,之后就可以了。我的本地测试服务器XAMPP里有好几个php.ini文件,我修改的是apache/bin下的php.ini和php下的php.ini文件,如果还不行可以多修改几个。
我的joomla版本是1.5.11。
我配置这个费了很长时间,所以记录一下,希望会对其他人有一点帮助。
已邀请:

~~~~~~~~~ - 上帝给我的使命,就是证明你们都不是最糟糕的

赞同来自:

在本地测试邮件功能?挂到网上呢?

不是本人 - no no no!

赞同来自:

    本地测可以,网上没测呢,这几天忙别的没来得及测

妥协 - 不会轻易妥协的人不愿意将就的人任性自由的人总是活得比较累

赞同来自:

你先试试吧,最近好像都出现了这个问题,我也搞不定。如果你搞定了就写点心得什么的让大家都参考一下,现在都抓瞎了。都是邮件系统的问题

刘备曹操 - 古今多少事,都付谈笑中

赞同来自:

唉,这个问题困扰我很久了!!!我在本机上测试的时候,怎么找不到你说的“php.ini中的extension=php_openssl.dll"呢?好像我安装PHP的时候没有选中它,这个有影响吗?需要安装openssl吗,好像挺难的啊。

QQ被盗了

赞同来自:

今天我重装了PHP,结果测试GMAIL可以发出去邮件了,但是收到的邮件主题是乱码,当用163的注册用户时,收到的邮件连内容都是乱码。
还有就是gmail勉强能发出去邮件了,但是其他邮箱还是不行,注册时还是提示,链接不到SMTP服务器。。。。

妥协 - 不会轻易妥协的人不愿意将就的人任性自由的人总是活得比较累

赞同来自:

  前几天做一个网站,需要在新用户注册后发送激活邮件。 当时按照网上的方法配置了很久,总是不能发送邮件,后来才发现需要把php.ini中的extension=php_openssl.dll前面的注释“;”去掉,之后就可以了。我的本地测试服务器XAMPP里有好几个php.ini文件,我修改的是apache/bin下的php.ini和php下的php.ini文件,如果还不行可以多修改几个。
我的joomla版本是1.5.11。
我配置这个费了很长时间,所以记录一下,希望会对其他人有一点帮助。
在1.5.14下试了,不行。
把extension= smtp.dll打开,也还是不行。
问题继续探索中...

追梦人 - 梦想每个人都有,但不是每个人都有勇气去坚信,我有

赞同来自:

看了篇外文的资料如下: http://forums.a2hosting.com/showthread.php?tid=494
Here's a way to configure email that will work on your development system and as well as your production system (although it may not be the most efficient way to use email on a production server)
The simple way to configure email for use on a Windows server (it should also work on Linux) is to use Joomla's Global Configuration (Site menu / Global Configuration) and then click the Mail tab. Here are the steps to follow then:
1. Set Mailer to SMTP Server. This configuration lets you use your ISP's SMTP server.
2. Set Mail From to the email address you want all email from your site to look as if it came from this address (maybe: if you don't want replies or -- obviously change yoursite to your site name). This address is really a Reply To address and does not have to be the email address that is used to do the actual send.
3. Set the From Name to be your Web site name or any other name you want as the user name that sent the email. 4. Make sure the Sendmail Path is empty.
5. If you ISP requires you to login in before sending email (almost all do these days) then set SMTP Auth to Yes  by clicking the radio button, otherwise click the No radio button.
6. Set the SMTP User to the real user name established at your ISP that you will use to send the email from. It is common for ISPs to require a domain name as part of the address. For example, you might set the SMTP User to . Take care that this name will be exposed in the mail headers so you could get spam as a result. Think about setting up a NoReply user at your ISP for sending emails for which you don't want a user to reply to the sending address. This address may be the same as the Mail From address but it doesn't have to be.
7. Set the SMTP Pass to the password the user in #6 uses to sign in to retrieve email.
8. Set the SMTP Host to the SMTP host your ISP gave you. For example, smtp.yoursite.com where "yoursite.com" is replaced by your domain name. Some ISPs require you to use a different SMTP port number than the standard port 25. You can specify this by putting a colon (a : ) after the domain name and then the port number. For example, if you ISP requires you to use port 698 to retrieve email you would specify this as follows: smtp.yoursite.com:698
9. Click the Save button at the top of the page to save your configuration.
That's it. You can test the email is working by going to any news item (or any other part of your site) and click the "email" link or icon. Fill in your own email address as to where you want to send the item and the rest of the form. You should get the test message.
Hope this helps.
-----------------------------------------------------
我的环境是:
XAMPP:1.7.0
Joomla:1.5.14
Windows Server 2003 Enterprise
使用SMTP服务器
Sendmail Path 原来是默认的/usr/sbin/sendmail
现象为:向手工创建的用户发群邮件可以收到,但是自助注册的用户不能收到激信。
把 SendMail Path 置成空后
两者都可以了。
------------------------------------------------------
原因还不明白。请大家验证,回复

要回复问题请先登录注册