Notification email not being sent

takinola - December 10, 2008 - 17:25
Project:User registration notification
Version:5.x-1.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I have installed the User Registration notification module but I do not have any notification emails being sent out whenever a new user is created or updates their records. I have verified that my email server works (I can send user registration confirmation emails, contact form emails, etc). My settings are as follows

Send by Role or custom email address: send to custom email address
send notifications to this custom email address:
Send to a specific role(s):
Page Sort order: Receive Email upon user creation and update

My setup is as follows
User Registration notification 5.x-1.9
Drupal 5.x-1.12
Apache 2.2.10
MySQL 5.0.51a
PHP 5.2.6

Other Modules
SMTP 5.x-1.0
Private Messages 5.x-3.0

Thanks for any help

#1

rmiddle - December 10, 2008 - 22:43
Status:active» postponed (maintainer needs more info)

You didn't post that you had something in send notifications to this custom email address: field?

The 5.x version isn't working pulling in the default anymore it broken in a recent drupal release I need to go back and figure out why.

Thanks
Robert

#2

takinola - December 11, 2008 - 00:35

Thanks for the quick reply. It seems the editor removed a bit of my text.

In the send notifications to email field, I put in my email address. Also, in send to specific roles, I selected all the relevant roles I would like to have email sent to (I do realize that the role based emails will not be sent due to the fact I only requested email be sent to the custom email address).

I checked the logs and there do not seem to be any errors related to this module. It simply is not trying to send the emails.

#3

mrgoltra - December 15, 2008 - 18:10

Subscribing.

Same here. I have noticed that after upgrading the notification email did not include the user name and then it just stopped. Is it advisable to downgrade?

thank you

#4

rmiddle - December 16, 2008 - 03:26

Looking into it right now. I think it makes since to add a little debugging code into the function.

#5

rick_deckard - January 22, 2009 - 00:08

I had a long post I was composing as I was testing about what steps I had taken to debug this. Then I decided to have it send to a different email address and lo and behold it came through (albeit in the spam filter). I suspect the other address I was testing was being blocked at the server level and not even put into my Junk Mail folder.

So I'm using 6.8 and the 6.x-1.9 version of the module. Since I went to all of the trouble and have lots of debug data, I thought I would send this anyway in hopes it might help.

I couldn't get the eclipse debugger to follow this, so I just used a bunch of the drupal_set_message() calls to track what's happening.

- It enters the module fine.

- Goes through user_register_notify_setup_email() and passes off to drupal_mail() with all the right params.

- In drupal_mail() it passes the function_exists test and invokes hook_mail - user_register_notify_mail() and alters the message. When it returns from there, $message has the links to edit and delete the user who has just registered and everything. So so far so good.

Everything in the message array that gets returned looks fine AFAIK

Array
(
    [id] => user_register_notify_user-register-notify-admin
    [to] => valid@email.com
    [from] => sitename@gmail.com
    [language] => stdClass Object
        (
            [language] => en
            [name] => English
            [native] => English
            [direction] => 0
            [enabled] => 1
            [plurals] => 0
            [formula] =>
            [domain] =>
            [prefix] =>
            [weight] => 0
            [javascript] =>
        )

    [params] => Array
        (
            [account] => stdClass Object
                (
                    [uid] => 18
                    [name] => penfield
                    [pass] => b895fffe0effc351457b4568426b0ea1
                    [mail] => valid@yahoo.com
                    [mode] => 0
                    [sort] => 0
                    [threshold] => 0
                    [theme] =>
                    [signature] =>
                    [created] => 1232581094
                    [access] => 0
                    [login] => 0
                    [status] => 1
                    [timezone] => -28800
                    [language] =>
                    [picture] =>
                    [init] => valid@yahoo.com
                    [data] =>
                    [roles] => Array
                        (
                            [2] => authenticated user
                        )

                )

        )

    [subject] => Account details for penfield at Sitename
    [body] => penfield (http://mysite.com/user/18) has created account.

Edit user: http://mysite.com/user/18/edit
Delete
User: http://mysite.com/user/18/delete
    [headers] => Array
        (
            [MIME-Version] => 1.0
            [Content-Type] => text/plain; charset=UTF-8; format=flowed; delsp=yes
            [Content-Transfer-Encoding] => 8Bit
            [X-Mailer] => Drupal
            [Errors-To] => sitename@gmail.com
            [Return-Path] => sitename@gmail.com
            [Sender] => sitename@gmail.com
            [Reply-To] => sitename@gmail.com
            [From] => sitename@gmail.com
        )

)

I don't know if that's any help or if someone with a more knowledgeable eye can see something

#6

rmiddle - January 22, 2009 - 01:25

I have a new version I am about to release. I found a mistake in 1.9. The new version should be out once I get confirmation that OG is working correctly.

Thanks
Robert

#7

rmiddle - January 22, 2009 - 01:38

I Released a new version of the module that fixes a few small mistakes. Please try 1.10 and see if that fixes the issue.

Thanks
Robert

#8

rmiddle - January 22, 2009 - 01:38
Status:postponed (maintainer needs more info)» fixed

#9

System Message - February 5, 2009 - 01:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.