Hi,

I recently installed Drupal 4.6.5 on my box and it rawks all what I saw before. i was initially setting it up only for me, some forums and other stuff. But now, I want other users to be able to write, blog or...subscribe.

They can register, the thing is they never get their registeration e-mails...

Since my phpBB registeration e-mails are working, I don't suspect the mail() function...

What happens? What am I supposed to do? Install something like sendmail?

Thanks

Comments

deepak@dipak.org’s picture

Drupal may not be using the same mail server as phpbb.

From my understanding drupal uses the mail server specified in php.ini. Copy the following code into a php file, and run it on your server to figure out what mail server is being used by Drupal:

<?php
	phpinfo();
	phpinfo(INFO_MODULES);
?>

Deepak

sys6x’s picture

http://sys6x.sytes.net/mailtest.php
does that suggest that it is sendmail?

deepak@dipak.org’s picture

Yes, you have sendmail with 'localhost' being your SMTP server. My hosting provider also uses the same smtp string and 'localhost' as the SMTP server. Is PHPBB also using localhost for its SMTP or can you not specify the SMTP server in it.

Deepak

sys6x’s picture

Use SMTP Server for email
Say yes if you want or have to send email via a named server instead of the local mail function

this thing is set to Yes, if it's what you need to know...I wrote my email (admin email) and my smtp server for this server...

im not sure if it answers your question

thanks again

sys6x’s picture

I'm sure I saw mail settings somewhere in Drupal...

I have the 4.6.5

sys6x’s picture

EAK’s picture

Thank you, sys6x. This seems to have solved the problem for me, too.

I'm still baffled, though, as to why it was necessary. I've been using drupal for my class sites for about two years now, and this is the first time I've had to install an extra module to make it send out the passwords. This worked automatically and transparently in previous installations.

EAK’s picture

Apparently I lied. I thought it was working, as the test account I created to test it received a password, but my students still aren't getting passwords and additional test accounts aren't either. ANd now I'm getting this new error message:

warning: fsockopen(): unable to connect to mail.SITENAME.com:25 in /home/SITENAME/xxxx/winter2006/modules/smtp.module on line 1759.

warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/SITENAME/xxxx/winter2006/modules/smtp.module on line 1759.

warning: fsockopen(): unable to connect to :25 in /home/SITENAME/xxxx/winter2006/modules/smtp.module on line 1759.

warning: Cannot modify header information - headers already sent by (output started at /home/SITENAME/xxxx/winter2006/includes/common.inc:384) in /home/SITENAME/xxxx/winter2006/includes/common.inc on line 192.

(Obviously, SITENAME and xxxx are my lame attempts to disguise my sites.)

Help??

EAK’s picture

I've got the same problem with two drupal sites I've installed for my classes, although I've used drupal before, on the same host, I've not experienced this before. I've got students signing up for accounts and not getting passwords.

Sorry, but I don't think I know how to run a php file on my server, but if you can tell me which file in my drupal installation I need to edit to list the appropriate mailserver, I can probably figure it out. Can someone lend me a hand?

Thanks much!