Ability to insert values into email body from specific nodes.
gemini - July 24, 2007 - 21:47
| Project: | Autoresponder |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | cyberpunk |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
A lot of people have their clients or other user information in the nodes.
For example clients - have their First, Last Names, address, and other info. A little widget/block could be added to a client's node to subscribe for a specific mailing list. The mailing function will load the node and insert it's values into the body of the email if any variables present. This way emails can be very personalized.
I actually went ahead and edited this module for my own purposes (basically as described above). If you would like to take a look and may be use the idea to improve it - you're welcome to do so. Disregard my clumsy code - I'm a PHP-newbie.
Here is the structure of edited tables:
CREATE TABLE `autoresponder_users` (
`id` int(11) NOT NULL default '0',
`nid` int(10) NOT NULL,
`email` char(50) NOT NULL,
`reg_date` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `autoresponder_messages` (
`id` int(11) NOT NULL default '0',
`subject` char(50) NOT NULL,
`body` text NOT NULL,
`phpcode` text NOT NULL,
`day` int(11) default NULL,
`mset` int(11) default NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;| Attachment | Size |
|---|---|
| autoresponder.txt | 30.93 KB |

#1
Interesting feature, but i think it is not common way to save user information in nodes. Profile module is better for this purpose. Maybe in future releases i'll implement inserting fields from profile and user module into e-mails. This will be very custom thing, because of Autoresponder module allows not only authenticated users to subscribe, but anonymous users too! I'll think about it when all the bugs will be fixed and feature and support issues will be resolved!
#2
In my case I'm saving user information in nodes just because they are not members of the site. Plus emailing non-authenticated users is still working the same way. This can be useful if people have forms on their sites - this way user/form information is not stored in user profiles, but this module can be used as a drip/follow up system. This is exactly how I'm using it right now. I'm having daily leads being imported from one Drupal site into another one which is for lead management - we attend those leads in different way depending on which form they filled out and what exactly they want. I have a subscription widget right on the lead node where I can pick the set of emails to be send to each lead. Would be great if scheduled information could be shown on the calendar... it shouldn't be too hard to do.
Anyway, thanks for the module - I think it is very useful and can be nicely furnished with additional features.
#3
People who register for my site need to provide an email and username, and they can sign-up for the auto-responder using only those details. Therefore, I would request we can add a "username" field to the autoresponder email, so that there is at least some individualization of each message.