Hey gang,
I though once I got image.module installed, I would be ready for anything.... silly me ... wrong!

I've been trying to get Massmailer running for 3 days now. I've deleted and reinstalled so many times, I've lost count.

The instructions appear very simple and straight forward, but I seem to be missing something. Everything seems to be loaded correctly and appears to be working. but once I generate a mailing to go out, it doesn't go any further than Sumbit.

I've run out of guesses, what-if's and may-be this will works. If anyone is using the module and might have the slightest clue why I can't get it to work, PLEASE PLEASE PLEASE post something or contact me. Heck, I'm even open to new guesses.

best regards and thanks

Comments

Steven’s picture

I've never used the module, so I can't help you, but your question is awfully vague. You've typed 4 paragraphs about your experience, but only 1 sentence gives any clue as to what the problem is:

... but once I generate a mailing to go out, it doesn't go any further than Sumbit.

(I assume "Sumbit" is "Submit").

The more information you can give us that is relevant, the easier it is for others to help you.

--
If you have a problem, please search before posting a question.

inteja’s picture

I can't be sure about this as I haven't used massmailer myself but I have used other modules that rely on sendmail or similar. With enewsletter and incorrect sendmail config it stalled drupal completely whilst searching for the mail server.

Brian.

--
Brian.

green monkey’s picture

Hi Brain
I thought that was odd too. I figured I would have to set a sendmail path, but there isn't anyplace that the program asks for it.

The program does reference this:

"This module will only run on a system that can execute a bash script from a shell_exec call from php"

I have never been exposed to this type of processing, but I did ask my Host service and they said "yes" I can do this.

hmmm, which brings up a question I didn't think about. If executing a call to php , then there must be somewhere in this program that has a path to where php runs from?

I don't know this type of stuff, so what does anyone else think?

what would i be looking for something that has a "/php" string in it?

? question to the Forum, if this program is using an "execute a bash script from a shell_exec call from php" is it using sendmail, or this isn't this enough information?

I can serach for /sendmail in the modules for proper path while I'm waiting to see if anyone has any other ideas.

... forget the /php info above - I would be having bigger problems if the php path was incorrect - right?

thanks - open to guesses
_______________________________________________________________
There's always enough for everyones need, but never enough for everyones greed.

green monkey’s picture

Sorry to be so vague, but that is part of the problem. The program is not reporting back that something isn't working.

but I know its impossible to get help, if something doesn't appear to be broken. So I'll break it down and perhaps someone will see something.

Phase 1: INSTALLATION:
1. Place the massmailer directory in the modules directory (done)
2. Enable this module administer > configuration > modules (done)
3. Select and save the engine module massmailer module settings page:
administer > settings > massmailer (done-but this is slighly out of sequence, because its like catagories, you have to enable it before you can select it)
4. at this point I have loaded the phplist.mysql (loaded phplist.mysql right after step 1 above) and have massmailer and phplist both enabled and configured. This is my 12th module - I pretty much understand these steps by now - I alwasy use phpAdmin to load
5. Copy /admin from phplist-2.9.3.tgz into directory /module/massmailer/engines/phplist/phplist/ (there is a /texts as well already here) Now I did assume one thing here. Not only did I copy over /admin -- I copied over all subdirs under /admin.

Phase 2:
1. Create a "mailing list" (done - added twelve active emails to list - sign-up form shows up for users to sign-up - looks good)
2. Create "mail message" (done - looks good and is there for editting - so saved version is good)
3. During the creation "mail message" there is a "send date & time" selection ( I generally pick at least 30 minutes in advance of current time)
4. this looks good - when I go into the "process mail mesage queue" I can see the message and it has (submitted) next to the message

then thats it - the message is never processed. I would assume it propably changes from (submitted) to (sent) once the list has been processed.

Possible problems:
If this is queued, then cron action probably needs to take place. In "settings" there is a checkbox for "Cron queue processing" I have turned this on and off to see if there is any difference. And not knowing "cron" very well I am using the "poormanscron module" and have it set for every 30 minutes. My log shows it is activating, and I see "Cron run completed (via poormanscron)." messages. But Cron message never references that massmailer was activated only "/?q=admin/modules"

No errors in the log regarding massmailer.module.

see ... its a bit vague and I don't see anywhere else to look for errors besides the log.

any ideas of what to do next?

cel4145’s picture

I was working with mass mailer in civicspace in the last few weeks. No matter what the configuration, I could hit submit, the site would say that it went out, but no email made it anywhere.

So I doubt that it is you causing the problem since in civicspace the module is already installed.

green monkey’s picture

I don't have a "submit" button - only a "queue message" button.

Carlos Miranda Levy’s picture

Although I admit I didn't make much efforts.
But it was supposed to be working out of the box with the CivicSpace installation scripts and configuration.

One of the reasons I'm still uncertain about preferring CivicSpace over Drupal (and using Drupal for the projects I have most time to work on).

-----------
Con paciencia y calma,
sube un burro a una palma

green monkey’s picture

Carlos,
I'm a little new here is the differences of Drupal vs CivilSpace. One of those splinter group things?

killes@www.drop.org’s picture

No, CS is just another distribution with some extra modules.
--
If you have troubles with a particular contrib project, please consider filing a support request. Thanks. And, by the way, Drupal 4.5 does not work with PHP 5.

xmacinfo’s picture

Crunchywelch is the maintainer of this module.

He says that he made a new version. It will be integrated in CivicSpace 0.8.0.3, due anytime now.

I don't think it's available from the download page under the 4.5.x tab. However, you might want to try out the cvs version.

I'm not able to use MassMailer too. I'm waiting for CivicSpace 0.8.0.3. But if this version take too much time to go out, I may try the cvs version.

See also : http://civicspacelabs.org/node/view/3988 for specific MassMailer issues that should be already fixed but not released yet.

green monkey’s picture

thanks,
I'm new to here and I didn't know if it was apporiate to contact the maintainer directly or not, so I only sent an email asking him to view my post here.

But I've managed to see this now:
Location /?q=admin/massmailer/queue
Message Cron run completed (via poormanscron).

So, something is happening, yet still not seeing any email going outbound.

________________________________________________________________
There's always enough for everyones need, but never enough for everyones greed.

crunchywelch’s picture

drupal CVS is the current version, civicspace get it's version from there. Right now the 4.5 branch is updated along with head, so if you get the tarball you should have the most recent version.

If you are processing the queue (admin/massmailer/queue), what message do you get? It should return at least a message that says the phplist verision and tell you if it has messages to process. If it is just a blank grey box, that means that probably the phplist/bin/phplist file is not executable. You have to chmod this file to 0755 or something appropriate for your system setup. In the phplist INSTALL.txt file I say to use 0755, which is owner read/write/execute and group/world read/execute.

If you can recieve mail from your drupal site, like password reminders and such, you should be alright as far as sendmail is concerned.

green monkey’s picture

thank you for replying.

well I can't actually be sure I am processing the queue. The only indication I have that "perhaps" the queue is being processed is this message:

Location /?q=admin/massmailer/queue
Message Cron run completed (via poormanscron).

I find this in the Log and that's it - thats all I see anywhere. I'm thinking of this message as "yes" I fired it up, but it doesn't actaully look to see if anything actaully has been prorcessed.

I'm not seeing any "phplist verision" info and I'm not seeing a grey box -- blank or otherwise. I've done the chmod, found the info on that -- so I did 755 at first, but is now at 777, just to open all doors till this is working.

And I have confirmed that I can receive email from the site. I did a "lost password test", just the other day.

I'm ready to check anything else you can think of.

the thing that is driving me crazy, is that it feels like it installed correctly and is just waiting.

I'm currently testing in a non-queue mode - hoping to push something through, before going batch.

crunchywelch’s picture

What do you see when you go to ?q=admin/massmailer/queue ?

Does that cause that log entry to be posted? That log message is not placed there directly by the mailer. It should look something like this: http://www.thebadsite.com/temp/mailer/mailer_process_queue.jpg

green monkey’s picture

thank you for your reply

it takes me to the below page wiht message

Process Message Queue
Depending on the size of the email queue, and the mailer engine design, you may not see a confirmation message here. You should receive a report via email, or you can check the status of individual messages here.
(then from there you can click a link and see the queue). It will probably take you to the same page, if you add it to your url.

I have never seen a page that looks like your example above. I take it that is the grey box you refer to? Nope, never see it.

check what next?

______________________________________________________________
There's always enough for everyones need, but never enough for everyones greed.

green monkey’s picture

Cruncywelch,
I was poking around in the enclosed config.php and saw this:

Line 74-76
// these are relative to the document root as you can see, if changed nothing will work. Enjoy!
$pageroot = '/modules/phplist/phplist/lists';
$adminpages = '/modules/phplist/phplist/lists/admin';

No where in the install.txt is it mentioned that /lists is required. and if you notice the /dir structure is different

I have
/modules/massmailer/engines/phplist/phplist/admin

I added the extra structure, but it didn't seem to help

The thing that has me concerned most is the statement:

"// these are relative to the document root as you can see, if changed nothing will work."

also on line 30 there is mention of a dir called /includes - I can't seem to find this /includes... anywhere in my structure

* parses database information into phplist format from drupal format
*/
function drupal_database_init() {
$drupal_config_file = drupal_conf_init();
include_once '../../../../includes/'. $drupal_config_file .'.php';

also on line 15:
while (strlen($file) > 4) {
if (file_exists('../../../../includes/'. $file .'.php')) {
return $file;

I'm guessing, that you already had phpList installed and running on your machine. then you made the modifications to make it work with Drupal. this worked find on your machine, but it looks like on a clean install things might be pointing to the wrong locations and/or some files are missing that are only installed from a core phpList install. or maybe even tarball'ed the wrong working version, an easy to do thing.

oh and I did see one other thing, but I think it might be a typo
in the phplist.module on line 83 it says:

$output .= form_item('', t('PHPlist powered by PHPlist - version 2.8.11'));

yet in the install directions it says to use: http://www.phplist.com/files/phplist-2.9.3.tgz

I'm thinking you want the 2.9.3 version, but he does say that 2.8.12 is the most stable

Please advise

xmacinfo’s picture

Did you take the MassMailer 4.5 version or the CVS version from the Downloads page?

tulula’s picture

... the MassMailer 4.5 version as I have 4.5.2... should I attempt the CVS version?

xmacinfo’s picture

Hi!

I have not tried it. I'm waiting for a full new release of CivicSpace 0.8.0.3 in a few days. However, all things suggests that you should download the CVS version of MassMailer.

You can download the CVS version at http://drupal.org/project/releases/cvs.

Direct access : http://drupal.org/files/projects/massmailer-cvs.tar.gz.

Or you may want to wait until a new version replaces the current 4.5 build.

I hope everything will be fine for you with this.

tulula’s picture

I don't know if this makes any difference - there are two sets of instructions and curious if massmailer and phplist should be separated under two subdirectories under modules? ie:

modules/massmailer/engines/phplist/all files as seems by the folder hierarchical views from the download

OR

- modules/massmailer/engines/phplist/bin
and then separate out of the engine portion the 2nd child file of phplist to
- modules/phplist and all files under this (including that separate ADMIN file) and not under the hierarchy of massmailer

1. the Instructions under mass mailer says:
Place the massmailer directory in the modules directory of your drupal installation
2. the Instructions to continue with thereafter for phplist says:
Place the phplist directory in the modules directory of your drupal installation

Also, if 2., which of the phplist folders should be placed immediately under the modules subdirectory?
phplist/"phplist"/---
or
"phplist"/phplist/---
???

The instructions aren't too clear being that thought I had mastered all with all other modules and their installations... this has me baffled in that it hasn't worked like *magic*!

Currently going to try CVS version install but still the install instructions are vague overall.

Lisa

tulula’s picture

Just read through the above and I'm having the exactly issues as user "jwells".

I do see where cron should be disabled/enabled on the admin/settings/massmailer and I obviously have the box checked because I'm not hosting my website.
I'm seeing only the grey box in the process message queue section AND I do have the BIN folder chmod=777 also.
I can't get any messages to mail out at all though when you check the manage messages section, I see my email "testing: Jan 27, 2005 (submitted) - view | edit | delete" as "submitted"?
I followed all install instructions to a tee.
Is the phplist version correct also as 2.9.3? or Typo in code?

VERY Frustrated!

green monkey’s picture

So let’s see if I can help anyone else get their version working.

I had two problems with mine - but we're going to jump right over those, as I can get a little long winded :-O

"Suggested Steps:" seek professional advice :-)

1) read all of the maintainer’s instruction "twice" just in case I miss a step and read this twice before starting - especially see "note"
1) de - enable both phplist and massmailer - save
2) remove all /phplist and all /massmailer stuff - everything you FTP'ed over
3) we're going to assume your mySQL stuff is ok - so leave that alone
3) be sure to grab the hidden .htacess files under /admin
4) Delete the same stuff from your local hard drive
5) Download Massmalier "CVS" and expand everhthing
6) FTP over all /massmailer - "up" to and including " /engines
7) path should be /modules/massmailer/engines (with engines being empty)
8) FTP over all phplist stuff that came in MassMailer CVS to
9) path should be /modules/phplist/phplist/texts move everything just the way it came - /bin will come over too
10) go to /modules/phplist/phplist/bin and make bin 777 and go t the file in /bin and make that 777 , then this silly but for some reasons I've to do this - make /bin 777 again
11) Ftp over /admin and all subs from phplist at phplist version 2.9.3?
12) path /modules/phplist/phplist/admin
13) do not bring over /texts (you already have one)
14) go to your admin > modules and enable phplist - save
15) go to admin > modules and enable massmailer - save
16) go to admin > settings > massmailer and setup everything - should still be there, because we didn't touch your mySQL remember? !And leave Batch Processing off for now.
17) Create a mailing list of at least 10 "active" name (email addresses)
18) create message and assign to what list - when done press Process Queue

you should see a grey box pop up - you did it !!!!!

a) now you might want to make /bin and the file 755
b) turn process batch on if you want to use it.

NOTE:

1) if this is your first module STOP - load a few other modules first until you understand the basics
2) if you don't know what I mean by 777 and 755 STOP you're going to need a little more help with the basics

______________________________________________________________
There's always enough for everyones need, but never enough for everyones greed.

xmacinfo’s picture

And thanks for all the instructions.

crunchywelch’s picture

Thanks for the reply, this is good information. A quick note about the permissions for the /bin directory. On *nix based systems directories have to be executable or the system can't 'execute' them and descend into them. It's a wierd thing that makes sense when you think about it, but nothing that would occur to you until someone tells you.

Permissions are a bit wierd to get a grasp of, but essentially 0777 means anyone with access to the file on the system can write to it, execute it, do whatever they want. 0755 means that only the owner can write to it, but every one else can only read it and execute it.

Here is a reasonably good tutorial on permissions for those interested:
http://www.elated.com/tutorials/management/unix/permissions/

This is probably one of the hardest modules to install, so don't get down about any troubles. It's the first round and install easiness is high on the list of enhancements. Thanks for trying it out and giving feedback.

rkendall’s picture

It is not possible to really make sense of those instructions.

It would be really good if someone could give a clear indication of which directories go where.

All instructions (so far) are very ambiguous.

Thanks

green monkey’s picture

Hi Rk,
Yes, they are a little shorthand. could you please share wiht me what modules you have already installed?

thanks

rkendall’s picture

Here are the items involved:
- fresh cvs Drupal (today)
- fresh cvs massmailer
- fresh phplist 2.9.3

Here's the steps:
- Drupal install - everything working fine
- untar massmailer into (drupal_root)/modules/
- move (drupal_root)/modules/massmailer/engines/phplist to (drupal_root)/modules/
- untar phplist to /tmp directory
- move /tmp/phplist-2.9.3/public_html/lists/admin to (drupal_root)/modules/phplist/phplist/
- load (drupal_root)/modules/phplist/phplist.mysql into drupal database
- enable modules in Drupal admin etc...

This was my interpretation of your suggested instructions (which it was very good of you to share - even if they were a bit hard to understand, I did get further than with the README and INSTALL files).

But still not working (for me).

What I would like to know is are the directories in the right locations?

Cheers,
Ross.

green monkey’s picture

where is your /bin - its one of the most important things and be sure you use massmailers /bin and not the one in phplist

and did you remember to at least make it 755

rkendall’s picture

hi

quick reply :)

location is (drupal_root)/modules/phplist/bin
(this is from massmailer)

the only items from phplist are this directory and its contents:
(drupal_root)/modules/phplist/phplist/admin

directories and the (drupal_root)/modules/phplist/bin/phplist file are all 755

Thanks

green monkey’s picture

Darn Ross,

Then I don't know what else to tell you, we've hit my experience level. I'm only about two weeks old here and a non-programmer on top of that.

Heck, to be open and honest, I'm still having problems doing manual patches. For the life of me, I can't figure out what 128a135,138 means. And to make it worse, this must be a silly and easy thing, because my forum post has gone unanswered.

Gosh I'm sorry, I really thought the info I posted above was going to help.

jonb-1’s picture

Thanks to Ross and jwells for clarifying the instructions.
I followed your instructions and found only one mistake... the phplist executable is actually found in (drupal_root)/modules/phplist/bin.

Also, I ended up installing a separate php exe compiled for cli.
I made a soft link from the new php to (drupal_root)/modules/phplist/bin/php

I got rid of the (which php) test and simply called the command directly:
modules/phplist/bin/php modules/phplist/phplist/admin/index.php $*

I chmod'd this index.php to 777 (not sure If I had to)
I also had to copy the (drupal_root)/sites/default/settings.php to (drupal_root)/includes/conf.php

Hope this helps anyone else struggling with massmailer.

rkendall’s picture

Cheers jwells for helping out. I hope I can return the favor one time (I am a programmer!).

Seems all is fine with the CLI php.

p.s. well done jonb :)

green monkey’s picture

you're most welcome of course :)

I'm learing fast, when it comes to the Modules the maintainersrs are usually so busy that the members at large have to help each other. Which is fairly good around here. I felt bad, leaving ya hanging at the end. Lucky someone else jumped in.

Since you both seem to be programmers. I'm trying to add a patch to an Articles module and I have to do it manually... no shell. I have it almost all done except for this stype of stuff below.

I'm stuck in this replace instruction.

128a135,138

I would think it would mean
at line 128 add lines 135 through 138

but why wouldn't it be
128a129,131

why the jump?
or why not say

135a135,138 instead

thanks

rkendall’s picture

tulula’s picture

Followed all of your instructions and STILL not working

...confused with your 3) grab htaccess file from admin folder and do what with it?

Anyway, this is my 5000th module install and this one I've done so many times.
- Do the "Active" email addresses need to be current registrars to my site or just any ole active existing email address?
- Does it make a difference if one is hosting his/her own site w/o root access? IF so, what re-writes on phplist, etc need to be done
- I still see nada in the grey box under heading: Process message queue.
- CHMOD is 755, bin file is modules/phplist/,

.. all looks good to me but no worky-worky still...

Lisa

tulula’s picture

Still not working, now seems that all messages (that aren't going anywhere with still nothing in the grey box - are being time stamped as Dec 31, 1969 19:00:00.

If on shared hosting, anything different that needs to be changed in phplist for it to trigger?

Can email out from site with any other module (ie. banner, mail, new user...etc) - why is this not allowing any messages to go further than what's saved or "submitted" on the site?

Lisa

neuromage’s picture

I did everything that jwells asked but it still does not work - I can create mailing lists but can't seem to add subscribers! When I click on "Add Subscribers", the page just hangs forever. The same thing happens when I click on "List Subscriptions" on the menu. I'm using 4.5.2 btw. Any ideas why this might be? Cheers.

---
No electrons were harmed while posting this message

brendan@www.goplies.com’s picture

I guess I'll wait for the movie to come out :P~

BKWill’s picture

And the result is that when I press Process Queue it says message submitted, and then nothing happens. It would be really useful for somep people if you could provide a screen shot of the correct install paths for this module. The directions are not that clear. I appreciate your energy in preparing the information above, however people are still not understanding the install process.

Thanks

Will

paulos’s picture

Not sure what this means?

Fatal Error: Mysql is not supported in your PHP, recompile and try again.
to be more specific my gray box says.
p = processqueue
c = ../../config.php
d = /index.php
h = www.xxxxxxx.ca

p = processqueue
c = ../../config.php
d = /index.php
h = www.xxxxxxx.ca
Fatal Error: Mysql is not supported in your PHP, recompile and try again.

killes@www.drop.org’s picture

"Fatal Error: Mysql is not supported in your PHP, recompile and try again."

Your php command line executable does not support MySQL. This is bad because you will need it. Ask your system administrator to recompile.
--
Drupal services
My Drupal services

stefanoq’s picture

Check civicrm.php in your site/default directory. The variable CIVICRM_MYSQL_PATH may not be set properly.... it needs to point to the directory on the server where mysql binaries are kept so the command line can find them.

cyberchucktx’s picture

All:

I've been struggling with MassMailer as well.

Points:

1) Have a brand-new from-scratch installation of 8.0.3,
2) Created a mailing list in admin
3) Created a message to the list
4) Tried to "process" the message.
5) Log shows:

Type	error
Date	Tuesday, February 22, 2005 - 1:11am
User	cyberchucktx
Location	/admin/massmailer/queue
Message	warning: shell_exec(): Cannot execute using backquotes in Safe Mode in /home/proaction/public_html/modules/phplist/phplist.module on line 695.

6) The line in question is definitely a SHELL_EXEC command that
tries to invoke PHPLIST on the "command line".

No matter what I try, I cannot figure a good way to allow this SHELL_EXEC to work.

Is there NO way around the Safe Mode problem? I asked my ISP and
they refuse to turn off Safe Mode ...

On another front, I was able to download the "SMTP trick" at :

http://cvs.drupal.org/viewcvs/drupal/contributions/tricks/smtp/

And the "example.php" works (!) after a minor change, so I KNOW
that sending EMAIL out is POSSIBLE ... any ideas?

My next attempt will be to muck around with the "shell_exec" function call at
line 695 in phplist.module:

return '<code>'.shell_exec('env -i modules/phplist/bin/phplist -p processqueue -c ../../config.php -d '. $_SERVER['PHP_SELF'] .' -h '. $_SERVER['HTTP_HOST']).'';

C

greypilgrim’s picture

Hello myNewFriends!

I have drupal 4.5.2 and CVS version of massmailer.

When i click on Process Message Queue i see that:

p = processqueue
c = config.php
d = /index.php
h = www.gestionale.prato.it

p = processqueue
c = config.php
d = /index.php
h = www.gestionale.prato.it
Fatal Error: Mysql is not supported in your PHP, recompile and try again.

.

Any help?

Thank you!

moebis’s picture

Ok after reading all the posts here and on CivicSpace I found the solution from Crunchywelch on CivicSpace. If you're running Fedora Core 3 with a normal install, you'll have to do the follow to get it to work, and yes it does work, but I'm sure to find more bugs:

1) Follow the already provided instructions.
2) Copy the config.php in \modules\phplist\config.php to a new directory at \modules\phplist\phplist\config\config.php
3) Edit \modules\phplist\bin\phplist to just read:
php modules/phplist/phplist/admin/index.php $*
Take EVERYTHING ELSE out of phplist.
4) Edit line 25 on \modules\phplist\phplist\admin\index.php to read:
if (PHP_SAPI == "cgi") {
not "cli"

...and voila it will work. Hope this helps someone out there.

www.moebis.com

xmacinfo’s picture

Hi moebis, can you tell me which post from Crunchywelch on CivicSpace to look for?

My CS install massmailer still does not work and I'd like to read what Crunchywelch told you.

I will try your solution later. I don't know yet which kind of Linux is installed on my hosted web site.

moebis’s picture

xmacinfo here is the link. MSG me if you need further help:

http://civicspacelabs.org/home/node/7371#comment-2149

www.moebis.com

Mack Oberman’s picture

I set up massmailer from CVS today on a drupal 4.5.2 installation with phplist 2.9.4. Everything seems to work well so far. I've created a "test" and "announce" list and sent several sets of test emails by clicking "process queue" and by letting drupal's cron.php trigger it.

Here's the dilemma: the emails are sent by the web server process, so the Return-Path: in the header says "apache07@mywebhost.com". I set the From: address to one in my hosted domain, and that works fine for replies. But I assume all the bounces are going to come back to apache07@mywebhost.com...

I deliberately put some bogus email addresses on my test list and sent more emails. Instead of an error, phplist/massmailer just reports they were all sent successfully. I assume this just means they were successfully given to the MTA.

I can live without the "auto-bounce-detect" feature of PHPlist being integrated into massmailer. But I do need to receive actual bounce messages somewhere so I can remove dead addresses from the lists myself. Any ideas?

killes@www.drop.org’s picture

Filing a bug report sounds like a good idea.
--
If you have troubles with a particular contrib project, please consider filing a support request. Thanks. And, by the way, Drupal 4.6 will support PHP 5.

Mack Oberman’s picture

I'm not sure it's a bug, more of a configuration issue. I'll see how PHPlist itself handles this before I file one.

I'm not sure what the relevance of PHP 5 is here. I'm using 4.3.2 with drupal 4.5.2 and based on the 4.6 release notes, I don't plan to upgrade.

I still hope someone can provide me some insight on where bounces go. Since several of you are using massmailer, you must have found a way around this issue. Let me know how you did it please.

Mack Oberman’s picture

By poking around in a full PHPlist 2.9.4 installation, I found the solution.

In [drupal]/modules/phplist/config.php, add:
$message_envelope = 'me@mydomain.com';

PHPlist/massmailer will then use sendmail -f to set the sender, and bounces will return to that account.

Now if there is a solution to the "can't subscribe unless logged in to drupal" problem, I'll be totally happy.

bensheldon’s picture

For anyone afraid of these gigantic threads, the following is what I followed to get the Massmailer module working.

First I was getting some PHP errors, and then the "config file not found" error
but after a long afternoon, I finally have my massmailer sending. I am using CivicSpace, which is a 4.5 release, but I don't see why it wouldn't work for anyone else. These are the two forum comments I followed, plus the little bit at the end that I needed.

http://drupal.org/node/16116#comment-26979
http://drupal.org/node/16116#comment-32679

If you follow these, you should get to the point where you click on "process message queue" in Administer > MassMailer. This will then give you an error along the lines of:

"Could not find default/settings.php"

Then copy the file "(civicspace install dir)/includes/conf.php" and place it (you'll have to create the directories) "(civicspace install dir)/sites/default/settings.php"

Now, click on the "Process Message Queue" it should give a little message about a cron job. AND IT WORKS!!!
I'm also on Dreamhost, but that's another forum.

syawillim’s picture

I think I have this pretty much sorted, thanks to everyone!
When I process the queue I get the folowing message:

Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.10

No input file specified.

Any ideas?

syawillim’s picture

I'm not sure what happened there I only submitted 1 post.

Julie Goldberg’s picture

I've been reading through the posts here and googling around, but I can't get rid of the "cannot find config file" problem. I've tried with the original phplist script in bin as well as the truncated one with just the line php modules/phplist/phplist/admin/index.php $*
I've copied the config.php file into phplist/config/config.php I simply cannot get it to work.

One post said something about re-installing phplist. Should I download it from drupal or from phplist.com? If the latter, are there any things I need to change?

I'm running the version that was installed with civicspace 0.8.0.3.

Thanks in advance.

Julie

killes@www.drop.org’s picture

I am in the process of creating a new version of massmailer.

Can you please get it from here:

http://drupal.org/files/projects/massmailer-cvs.tar.gz

Please remove the massmailer and phplist directories form CS and install what is in this tarball instead. Try to follow the installation instructions included with the tarball only.

Please let me know how it works.

--
Drupal services
My Drupal services

Julie Goldberg’s picture

I got rid of my old massmailer directory and replaced it with the new one. The module was still turned on (of course), and my lists and the test message I wrote yesterday were still there. But I still get the error when I go to "send messages". Any suggestions? Thanks.

Julie

killes@www.drop.org’s picture

Simply replacing the files will probably not be enough. Please go through the README and INSTALL files and check that you followed the prescribed steps.
--
Drupal services
My Drupal services

Julie Goldberg’s picture

Sorry I missed the phplist install instructions before. Now that I went through those, I no longer have the error message Though I still can't get thigns to send (assuming phplist takes less than 20 minutes to send to a 2-person test list).

I created a test message the other day that was scheduled to go out the other night. I went to "send messages", and I don't get the error message, but nothing seems to happen. If I look at the messages, a few say "submitted", but nothing says "sent", and I haven't gotten any e-mail.

One caveat is that I did have the old tables in my database, so I got errors on at least the phplist create table statements. Should I delete certain tables and re-import the sql database?

Thoughts? Thanks.

Julie

killes@www.drop.org’s picture

Which settings have you chosen on
admin/settings/massmailer ? Did you tick the "Cron queue processing" setting? If not, please do so, if yes, try to access http://your.site/cron.php and look if the status of the messages changes.

--
Drupal services
My Drupal services

Julie Goldberg’s picture

I visited cron.php, but no statuses have changed. They're still at submitted.

killes@www.drop.org’s picture

Are there any cron messages in the logs?
--
Drupal services
My Drupal services

Julie Goldberg’s picture

I've got lots of "cron run completed" messages in my logs, since I've got it set up to hit cron hourly. But I did see one error in the logs that looks related:

user error: Table 'jstonewa_stonewall.massmailertemplate' doesn't exist query: SELECT tid AS tid, name AS name, description AS description FROM massmailertemplate ORDER BY weight in /home/jstonewa/public_html/includes/database.mysql.inc on line 125.

I ran the phplist.sql script, so I would have thought it would create all the tables. I got some errors, but I assumed they were all from some tables already being there (from the old civicspace install).

Thoughts?

killes@www.drop.org’s picture

Did you enable the massmailertemplate.module? If yes, you should create its tables or disable it.

--
Drupal services
My Drupal services

Julie Goldberg’s picture

I no longer have errors after visiting cron.php, but the e-mails still say "submitted" and never seem to be sent out.

Any other suggestions?

Thanks.

Julie

BKWill’s picture

Can someone please write an install of this module line for line, no abreviations, everything from top to bottom. I've installed almost every module drupal offers and this one is kicking my butt. I've gone through this the last 48 hours and essentially get as far as hitting the process que button and nothing happens.

I've followed and tried most of the solutions offered in this thread and for the life of me I don't know what I'm doing wrong. If anyone would be so kind as to contact me directly or post better instructions I'll be your new best friend.

Thanks,

will

will@soulatomic.com

killes@www.drop.org’s picture

I've tried to provide exhaustive installation instructions in the massmaielr cvs package. It should work with Drupal 4.6. Please read all the docs.

--
Drupal services
My Drupal services

BKWill’s picture

I have successfully figured this out. It was in the end as easy as reading the instructions, but how those instructions are processed is different by everyone. I posted my install process in a new thread here:

http://drupal.org/node/27090

It covers my install step by step and includes extra comments that I hope helps the non-technical drupal users. Thank you to everyone who offerd help and guidence.

Cheers,

Will

hjuan99’s picture

As of Friday (10/21/2005), there was a bug in the config.php file that was included with the distro of this module.

For those of you who are able to install and get everything to work, but don't get any email sent out, this is possibly the problem.

Line 62 of config.php (in massmailer/engines/phplist) should read
$database_host = $db_info['host'] .':'. $db_info['port'];

The version I downloaded didn't have the dots around the ':', causing a parse error in php, which would never be reported to your browser because it's being run from the command line.

Hope this helps someone.

John
My blog

ethank’s picture

I get this when I press "send messages":

p = processqueue
c = ../../config.php
d = /index.php
h = beta2.murmurs.com

p = processqueue
c = ../../config.php
d = /index.php
h = beta2.murmurs.com

Nothing gets sent. I followed all the instructions :(

mgifford’s picture

I should have done this a while ago, but a big part of debugging the massmailer module's use of the phplist engine is figuring out if the binary is giving the right results (as massmailer runs phplist from the command line).

[root@team2 phplist]# pwd
/home/fairvote/cs/modules/massmailer/engines/phplist
[root@team2 phplist]# ./bin/phplist
./bin/phplist: line 22: php-cli: command not found
Could not open input file: modules/massmailer/engines/phplist/phplist/admin/index.php.

Well, that wasn't a good sign, so I decided to look about and find more about the php-cli file:

[root@team2 phplist]# which php-cli
/usr/bin/which: no php-cli in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/mike/bin)
[root@team2 phplist]# where php-cli
bash: where: command not found
[root@team2 phplist]# rpm -q php
php-5.0.4-10.5

This is a general fedora core 4 install.

So there is a lot of traffic on the use of cli vs cgi mode in the phpList forums:
http://www.phplist.com/forums/viewtopic.php?p=10190

I need to look more into this, but it's a step closer to the problem.

Mike
--
Mike Gifford, OpenConcept Consulting
Free Software for Social Change -> http://www.openconcept.ca

killes@www.drop.org’s picture

miggidy’s picture

After 4 very frustrating days of trying to install various mass mailers versions on my fresh 4.5.7 drupal install (the one that self-installs from an apt-get install) I threw in the towel and figured out how to install the 4.6.5 drupal. I got the 4.6.0 version of mass mailer, and it worked after following the directions. My advice - anyone still trying to get this to work with 4.5.x, forget it - move on.

killes@www.drop.org’s picture

I second that - sort of. You should actually try the current CVS version with 4.6.5.
--
Drupal services
My Drupal services

plutado’s picture

I was able to connect all the dots for phplist except for actually sending emails. The database reflects my current userbase just fine - so I decided to export the email addresses from phplist and import them into Dadamail.

Might not be quite the solution I wanted - but it Dadamail is free and works as well as phplist in many respects. It may work for many of you.

jaymz’s picture

I may have your solution. - I first set up PHPlist independently of drupal. At first I couldn't figure out why everything was working, but no emails were sent.

lists/config/config.php is the PHPlist config file. - Under the section 'debugging and informational' is the following parameter :

# if test is true (not 0) it will not actually send ANY messages,
# but display what it would have sent
define ("TEST",1);

In my installation, the default was at 1... ie PHPlist was running in test mode and not sending any messages.

I still have to figure out how to get massmailer and PHPlist to work together, so I may be off the mark here... but worth checking.

bowerymarc’s picture

adding those dots also fixes this error:

Fatal error: input in flex scanner failed in /var/www/html/modules/massmailer/engines/phplist/phplist/admin on line 1