SimpleMailer Forum Board The Forum Board for the SimpleMailer extension
Posted 23 August 2012 - 02:39 PM
Posted 24 August 2012 - 01:40 PM
but i should be able to access simple mailer .. which i am not able to do so .... can you please create a demo of simple mailer or something ... i am sorry i am asking for a lot .. but i have tried almost everything i knew and it still dosent work .. i need to implement this .. please help me with this .. thanks a lot ..
Posted 25 August 2012 - 12:19 PM
I'm gonna give you some instructions, however.
For crontab, at the console type:
Copy and paste the crontab lines into the editor and then save.
The installation document is quite explicit. I can't tell you more because already everything is there. Also I can't give you a 'example code' because all you need to know is exactly in the documentation.
Look for someone there were you work for help on how to do the required things in Linux.
I'm sorry I can't give you any more help.
Posted 31 August 2012 - 08:03 PM
i still have 2 questions :
1- how to send different templates to different users .
2- and when i copy the link to the body it just send the link in the mail .. i want to send the page .. what am i doing wrong here ?
Posted 03 September 2012 - 06:33 AM
@vrooomm, here your answers:
1.- Create different mailing lists for your user groups or whatever logic you're using to classify your users. Please read this.
2.- You must paste the page contents, not its origin url. Pay attention to the first two steps on the "Usage" part on the SimpleMailer documentation.
Posted 11 October 2012 - 09:28 PM
Posted 12 October 2012 - 11:11 AM
Interesting. I can map the table columns names to template variables, as in 'name' would map to __NAME__. That, as you say, will definitely overcome the limitation of not being able to personalize emails when sending to a list.
Thank you. That's a simple, clever solution. I'll implement this as soon as I can.
Posted 25 October 2012 - 12:05 PM
Database has a record of sending letters (Table sm_queue).
cron to contain the string
0,30 **** /var/www/*****/***********/protected/yiic mailer
But the letters are sent.
Sorry for my english
If you followed the instructions to the letter you shouldn't have any issues. If your app is not sending mail perhaps is because you or your system administrator didn't configure properly your MTA.
Posted 07 November 2012 - 04:09 PM
There's a new version of SimpleMailer at GitHub. Consider it unstable. If you're gonna test it I'll be glad to hear you guys giving me feedback.
The new things are:
- Now Mailing Lists support template vars (thanks to @grod for the idea).
- Classes were renamed, stripping the 'Simple' prefix.
- Now the installation should be in the 'modules/mailer' folder, solving the issue of the case sensitive URLs (@yugene discovered the issue months ago).
- Changed the titles/link texts for the views to make them more consistent.
I'm going to test it for a while. In a week or so I'll be launching a new version of SimpleMailer if everything goes well.
Posted 17 January 2013 - 12:05 AM
For some reason I wasn't able to get the db migration to work using yiic. In case anyone else had the same problem as I did, or anyone is trying this without access to a terminal session on the server (thus no yiic), here is a SQL dump of the tables that have to be created:
CREATE TABLE `sm_list` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) NOT NULL, `description` varchar(255) DEFAULT NULL, `query` text, `email_field` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) TYPE=InnoDB; CREATE TABLE `sm_queue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `to` varchar(255) NOT NULL, `subject` varchar(255) NOT NULL, `body` text NOT NULL, `headers` text NOT NULL, `status` int(11) NOT NULL, `create_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `to` (`to`), KEY `subject` (`subject`), KEY `status` (`status`) ) TYPE=InnoDB; CREATE TABLE `sm_template` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(64) DEFAULT NULL, `description` varchar(255) NOT NULL, `from` varchar(255) DEFAULT NULL, `subject` varchar(255) DEFAULT NULL, `body` text, `alternative_body` text, PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) TYPE=InnoDB ;
(You don't have to use the InnoDB engine if you don't want to. I make it my default in order to take advantage of foreign key relationships.)