Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Newsletter Plugin: How to send emails from command line using nph-email.cgi?

Quote Reply
Newsletter Plugin: How to send emails from command line using nph-email.cgi?
I have purchased the Newsletter plugin.

I want to send out all of my mailings via the command line. How do I do this?

When i run ./nph-email.cgi it says:

Quote:

[optimusprime@marx admin]$ ./nph-email.cgi
Usage: ./nph-email.cgi mailing_id
./nph-email.cgi will attempt to send all the e-mails associated with that ID.
[optimusprime@marx admin]$ ./nph-email.cgi 0
Usage: ./nph-email.cgi mailing_id
./nph-email.cgi will attempt to send all the e-mails associated with that ID.


I assume that you can run it from the command. If you can't then I need a refund.
Quote Reply
Re: [smsltd] Newsletter Plugin: How to send emails from command line using nph-email.cgi? In reply to
Hello,

what does it say when you try perl nph-email.cgi??

normally nph-scripts like
nph-build.cgi
nph-email.cgi
nph-verify.cgi should be started with perl nph-<scriptname>.cgi
Quote Reply
Re: [ridesworld] Newsletter Plugin: How to send emails from command line using nph-email.cgi? In reply to
Erm, in this regard running

./nph-email.cgi

is exactly the same as

perl nph-email.cgi

(Am I missing something about your question?!)

Anyone have any ideas?
Quote Reply
Re: [smsltd] Newsletter Plugin: How to send emails from command line using nph-email.cgi? In reply to
Quote:
[optimusprime@marx admin]$ ./nph-email.cgi
Usage: ./nph-email.cgi mailing_id
./nph-email.cgi will attempt to send all the e-mails associated with that ID.
[optimusprime@marx admin]$ ./nph-email.cgi 0
Usage: ./nph-email.cgi mailing_id
./nph-email.cgi will attempt to send all the e-mails associated with that ID.

You need to enter something like;

perl ./nph-email.cgi 1234

... where "1234" is the ID number of the mailing that you want to send out.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [smsltd] Newsletter Plugin: How to send emails from command line using nph-email.cgi? In reply to
In Reply To:
Erm, in this regard running

./nph-email.cgi

is exactly the same as

perl nph-email.cgi

(Am I missing something about your question?!)

Anyone have any ideas?

Hi.

I think Eric was just trying to say that its good practice to pass in "perl /path/command.cgi", rather than excluding the "perl" part. The only reason behind this, is that not all servers work by just typing "script.cgi" , and you need to prefex the script name with the command it needs to be run through (in this case, perl).

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Newsletter Plugin: How to send emails from command line using nph-email.cgi? In reply to
Hi Andy,

I've already tried that. Problem is that there are no mailings defined - it uses a single newsletter template and there are no mailings defined in the relevant mysql table.

I will email Jack.
Quote Reply
Re: [Andy] Newsletter Plugin: How to send emails from command line using nph-email.cgi? In reply to
Hi Andy,

Thanks for your help. This really isn't the problem. I've been running Links SQL/Links for five years now and I have no problems running nph scripts.