Posted by foredoc on February 14, 2009 at 7:40am
Hi,
When I use "broadcast" in OG module, after submitting, it shows the following two messages:
* Your message will be sent to all members of this group.
* 2 messages queued for delivery.
But I did not see the message I broadcast any where. So, where shall I read the broadcast message? Thanks.
Hang
__
Edited by WorldFallz - nothing to do with module development, moved to appropriate forum.
Comments
Anybody knows? Thanks.
Anybody knows? Thanks.
Same problem
Exactly same issue
Using OG 5.x-8.0
Drupal 5.12
same
it obviously doesn't create it as a node, so seems no way to create an 'archive' of such messages which is a shame. any suggestions for a work around?
peter davis : fuzion : connect.campaign.communicate : www.fuzion.co.nz
Tested by rerouting all outgoing email from site.
I Tested by rerouting and capturing (rerouting to me) all outgoing email from site.
No messages were received in my inbox. As far as i can tell, the broadcast function does not trigger the sending of any messages to anyone in the group.This function did work successfully in a previous version of OG where the tab was called "email" rather than "broadcast".
Is there some way/workaround by which the previous code/functionality could be restored temporarily as a patch until the broadcast function can be fixed correctly?
Isn't anyone else having this problem?
Or perhaps more to the point ... Is anyone having any success getting the broadcast functionality to actually send out emails to an organic group?
thanks
Emil is sent
I can confirm the message does get sent, my issue is wanting to be able to save it automatically as a node.
peter davis : fuzion : connect.campaign.communicate : www.fuzion.co.nz
Looks intentional
From a look at the OG code for broadcasts, it doesn't seem that the broadcast functionality is intended to create a node. It seems like it's intended to simply email the members.
Creating a new OG Group Page should do that, if the site is correctly set up with OG Notifications and all the extras required for OG Notifications (eg, working mail, notifications and messaging modules, etc).
You could use the mailhandler module to capture the broadcast email and generate a node, by subscribing your mailhandler address and then having it generate a node. But that approach would preclude you being able to include the node's URL in the email, so it's probably not what you want.
You could also perhaps use hook_og to capture the outgoing message and create a node before the broadcast was sent, but again it doesn't seem that you'd be able to specify the node's URL in the message body that way either. (Perhaps if og_broadcast_form_submit() passed $message by reference you could?)
Just a few thoughts from looking at the code - I'm not (yet) intimate with OG and notifications - but I intend to be shortly :)
If my comments have helped you, please pay it forward!
Use issue queues to discuss module issues - this will help your questions assist others (including yourself!) in future.
http://twitter.com/grobot ● www.giantrobot.co.nz
Broadcast
I have the exact same problem that you have. How did you resolve this?
Jose
not sure why this worked for broadcast message but it did
i am on notifications 6.x-2.1 and og notifications 6.x-1.1
similar to the initial problem statement above, i would get the 'message queued to x users' and no errors, but the queue would never process. the settings on all the messages in the queue visible at: admin/messaging/subscriptions/admin looks correct.
looking at the database table notifications_queue the send_interval field value was null for everything in the queue. stepping through the code to notifications_process_queue function's query, its clear that a null send_interval will never get retrieved and processed.
here's the funky part.
the only change i made (and it was made as part of debugging), was in notifications_lite_queue_event. I moved the function call get the user setting for send interval into its own line of code and put its value in a variable before sending it into the array like this:
function notifications_lite_queue_event($event) {$uid = $event->params['for-uid'];
$account = user_load(array('uid' => $uid));
$send_interval = notifications_user_setting('send_interval', $account); //this is new
watchdog('notifications', $send_interval);
$queue = array(
'uid' => $uid,
'sid' => 0,
'module' => 'notifications',
'eid' => $event->eid,
'send_interval' => $send_interval,
'send_method' => notifications_user_setting('send_method', $account),
'cron' => 1,
'created' => time(),
'conditions' => 0,
);
return drupal_write_record('notifications_queue', $queue);
}
after that change, from now on broadcasts are put into the queue table with the proper settings and everything seems to work.
The trick we've used is to
The trick we've used is to cast the send_interval array item as an integer. The database is expecting an integer but as it is currently the send_interval element in the $queue array is being initialized as type string(1) which is causing the drupal_write_record function to drop the send_interval column from the insert query that is generated... and since the db column has no default and allows nulls, then it will be null. In our case it should have been 0 for the mail to be sent, but as it was null it was just sitting there.
around line 161 of notifications_lite.module (function notifications_lite_queue_event)...
- 'send_interval' => notifications_user_setting('send_interval', $account),
+ 'send_interval' => (int) notifications_user_setting('send_interval', $account),
I'm a bit of a nuby at Drupal and PHP, so feel free to comment.
Cheers
Peter
I don't see a lot of comments
I don't see a lot of comments on this as the solution - and this thread seems to bring in a lot of other factors - but in our case, Broadcasts are being set to Send Interval = NULL
Have others tried the code supplied with this post?
Is there anyone who has identified some mis-setting that is causing this problem?
site has OG 6.x-2.1 and Notifications 6.x-2.3 and Messaging 6.x-2.4
Notifications lite message is checked
Notifications General Settings does not have 'Immediate sending' set to be 'on', which is what is recommended (Default is OFF).
peter davis : fuzion : connect.campaign.communicate : www.fuzion.co.nz
Anyone else have success with
Anyone else have success with this fix? Tried it and it made no difference.
Making the world a little bit better with Drupal
immediate sending fixed my problems with notifications
I was having problem with notifications not sending at all. If I tried to use the "Broadcast" feature, messages would be added to the queue but would never be sent out. Once I changed the send interval to "Immediate," it started functioning correctly and messages are sent. I'd prefer to have a queue and let cron send messages at an interval, but I can't seem to get it to work unless it's immediate
How do I do that?
How does one go about changing the send interval to immediate?
Seriously, how do you do
Seriously, how do you do that?
*****************************************************************
Aviad Giat is the founder of the AltGlobe community and a savvy Drupal user.
www.altglobe.com/blog/aviad
Maybe
Maybe here?
admin/messaging/settings
*****************************************************************
Aviad Giat is the founder of the AltGlobe community and a savvy Drupal user.
www.altglobe.com/blog/aviad
Same
I am having the same issue. I have a group of over 50 members and only a few of them have gotten it including myself. I don't know what's going on
Run cron
I had the same problem, then remembered to set up cron. once i ran cron.php, all the messages went out. then i set it up in the Bluehost.com cpanel to run every 5 minutes.
I have the same problem.
I have the same problem. Running Cron doesn't help and I noticed that in the database the destination is "NULL".
But I have no idea how to solve this. Anyone?
same problem, now fixed
Hi,
Same issue , went to /admin/messaging/notifications/events and enabled "Notifications lite message", all works perfectly now,
S:)
Senior Drupal Web Developer
Wellcome Trust Sanger Institute
same problem, now fixed
Hi,
Same issue , went to /admin/messaging/notifications/events and enabled "Notifications lite message", all works perfectly now,
S:)
Senior Drupal Web Developer
Wellcome Trust Sanger Institute
Broadcast in Organic Group module
same prob here.tried everything, using cron,check notificatrion lite,send interval immmediate...but getting same ...
getting msg like this:
Your message will be sent to all members of this project.
3 messages 22222222queued for delivery.
warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. ) in C:\xampp\htdocs\dconnect\sites\all\modules\messaging\messaging_phpmailer\PHPMailer\class.smtp.php on line 122
Another option that may work for some
I'm also on a system where I don't run Cron automatically - what I used to get mails to be sent directly was to go to admin/messaging/notifications and check "Immediate sending". This wasn't mentioned yet I think (I hope I didn't just miss it :-)).