Views mail don't sending and getting wrong variables

kawazs - November 21, 2007 - 19:21
Project:Views Mail
Version:5.x-1.1
Component:Miscellaneous
Category:support request
Priority:critical
Assigned:kawazs
Status:fixed
Description

Hi,
I'm using drupal 5.3, cck 1.6, views 1.6, views mail 1.1, simplenews 1.1, mime mail 1.x , Actions 1.x, scheduled actions 1.x....

Two problems:
-if I use user reference as name and mail, the views mail get the uid as name and mail...
something like user: foo mail: foo@bar.com uid:5, in recipient list appear name:5 mail:5

-if I use a mail and name that the views mail get correctly(like node author vars...) he don`t send even in testmode...

That are a bug with fieldgroup (u already know the foreach bug) but i believe it`s not a serious bug.
The simplenews is working perfectly...
I need it working fast so... if u can't find the bug and have a little time for waste talk to me a combination of versions that the module work well.

Thanks!!

#1

SomebodySysop - November 23, 2007 - 03:45

Two problems:
-if I use user reference as name and mail, the views mail get the uid as name and mail...
something like user: foo mail: foo@bar.com uid:5, in recipient list appear name:5 mail:5

I don't understand what you mean by "user reference". Could you explain this a bit more/

-if I use a mail and name that the views mail get correctly(like node author vars...) he don`t send even in testmode...

This happens to me all the time.

In each user's account (to whom you wish to send an email), the "Group e-mail settings" must have "Accept email" checked. This is a default opt-in mechanism. If you have a bunch of users who already existed in your database before you installed views_mail, you'll need to have this variable checked on for all of them.

Hope this helps.

#2

kawazs - November 25, 2007 - 01:37

Thanks for the atention!

But about user reference...
I was taking a look in the views mail code and the top of todo list it's exactly what I mean with user reference:

<?php
/**
* @file
* Mail to a group as selected by a views view
*
* @todo
*
* - set up userreference and nodereference fields to use the name and email of the userreference and nodereference uid

I will try make something about this, and send you a patch if all gets ok....

#3

SomebodySysop - November 25, 2007 - 01:41

I will try make something about this, and send you a patch if all gets ok....

Yes, please do. Thanks!

#4

SomebodySysop - June 10, 2008 - 00:22
Status:active» postponed (maintainer needs more info)

I am now able to use the module without nodereference or userreference. Just using usernode in my particular case works. See updated patch:

http://drupal.org/files/issues/views_mail.module.5.x-2.0a.patch

#5

SomebodySysop - November 27, 2009 - 21:44
Status:postponed (maintainer needs more info)» fixed
 
 

Drupal is a registered trademark of Dries Buytaert.