Share » Forums » Extensions » CJW Newsletter - how it works?

CJW Newsletter - how it works?

CJW Newsletter - how it works?

Monday 25 April 2011 12:24:55 am - 8 replies

Author Message

Romain Bremaud

Friday 27 May 2011 1:14:28 am

Hello Fatima,

Can you explain more precisly that you don't understand ? Maybe I can help you.

Romain

Romain Bremaud
Les clefs du net

Fátima Chapri

Saturday 28 May 2011 12:22:27 pm

Hi Romain and thanks for your answer.

I've been trying to put the newsletter to work. It's already installed and the users can subscribe to it.

But I don't know how to send the newsletters.

Romain Bremaud

Monday 30 May 2011 5:35:43 am

Hello Fatima.

In the newsletter tab you should create a cjw_newsletter_edition. Inside you can create cjw_newsletter_article. After that your newsletter become a "draft". 

After click on your draft newsletter. You have two buttons one for send a test and another for send the newsletter. 

Verify the settings in cjw_newsletter.ini : 

[NewsletterMailSettings]
# smtp, sendmail, file
# newsletterTransportMethodCronjob=file
# test newsletter

TransportMethodPreview=sendmail
# subscribe, infomailTransportMethodDirectly=file
# where to store mails send by TransportMethod = fileFile

TransportMailDir=var/log/mail
# http://ezcomponents.org/docs/api/latest/introduction_Mail.html#mta-qmail# HeaderLineEnding#    auto - try to find correct settings#           default is LF#    CRLF - windows - \r\n#    CR   - mac - \r#    LF   - UNIX-MACOSX - \nHeaderLineEnding=auto
# Configuration for SMTP

SmtpTransportServer=

SmtpTransportPort=25

SmtpTransportUser=Smtp

TransportPassword=# Connection type in SMTP: <empty>(no encryption)|ssl|sslv2|sslv3|tls

SmtpTransportConnectionType=

You have tree methods for sending mail. mail/smtp/file

In a first time check if your newsletter test works. After you can send the real newsletter. 

You sould execute two scripts for sending the newsletter :

-   php runcronjobs.php -s siteaccess cjw_newsletter_mailqueue_create

- php runcronjobs.php -s siteaccess cjw_newsletter_mailqueue_process

 

Romain

Romain Bremaud
Les clefs du net

Fátima Chapri

Thursday 02 June 2011 12:59:19 am

Hi Romain.

Only now i realized that my newsletter were send out, but a specific folder var/log/mail, because my transport method was file.

Now I have the  correct settings, but I can't send a test newsletter and even create a new newsletter edition in my newsletter list, because the button "create newsletter here" is disabled.

Is there any other setting I have to configure?

Thanks.

Romain Bremaud

Tuesday 07 June 2011 1:17:32 am

Hi Fatima

Maybe you have the good right for create a newsletter. Are you connected with the admin account ?

In the order : 

Newsletter Root -> Newsletter System -> Newsletter List -> Newsletter edition -> (Newsletter Article)

 

Romain

Romain Bremaud
Les clefs du net

Fátima Chapri

Thursday 09 June 2011 2:55:24 am

Hi Romain,

My user didn't have the proper rights to create or to send the newsletter.

I tried now to check if your newsletter test works. I've inserted my e-mail as test, and the result was:

Test newsletter sent result: Newsletter Edition 1

And a table with the following details:

Nr Subject Email Sender
Email Receiver
Content Type
Charset
Transport
1. [Newsletter] Newsletter Edition 1 sender_mail@example.com
receiver_mail@example.com
multipart/alternative
utf-8
smtp
       

But I didn't receive any e-mail.

I tried runing the cronjob:

/usr/bin/php -C runcronjobs.php cjw_newsletter

and cleared the cache. But nothing.

 

Is there anything I'm missing?

Romain Bremaud

Friday 10 June 2011 5:27:55 am

Hi Fatima

Several things :

- You use the smtp method are you sure your smtp works ?

- Try to use the send mail method in cjw_newsletter.ini 

# test newsletter

TransportMethodPreview=sendmail

- The test and the real newsletter are independent.

- check in the log var/plain_site/cjw_newsletter if you can see anything

Romain 

Romain Bremaud
Les clefs du net

Fátima Chapri

Monday 13 June 2011 12:49:10 am

Hi,

Finally, the newsletter is working. The log file had some errors.

Thank's a lot for your great help.

Fatima.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu