edtiting a post after published send a mail. How to change this ?

10 views
Skip to first unread message

ibbranco

unread,
Sep 10, 2010, 7:15:14 AM9/10/10
to MailPress
We change quite often ou posts by editing them after having published.
Mail press send to subscribers a mail everytime we edit. We would like
the mail to be sent only one time per post, when its published and not
when we edit later.

How to change in the settings ? Is there a solution ?

thanks in advance
Isabel

andré renaut

unread,
Sep 10, 2010, 7:35:32 AM9/10/10
to mail...@googlegroups.com
wordpress fires the 'publish post' event each time a post is published or modified (if already published).
To prevent duplicate mails

* On mailpress install, for each published post, mailpress stores in wp postmeta table the following meta_key :
   _MailPress_prior_to_install

* On new post published, for that published post, mailpress stores in wp postmeta table the following meta_key :
   _MailPress_published

if you are using category_newsletter add-on,
   _MailPress_published_category_(cat_id)

So each time the event 'publish post' is fired by wp

MailPress tests if the post is not
"_MailPress_prior_to_install"
OR
 "_MailPress_published" for per_post newsletter OR "_MailPress_published_category_(cat_id)" for per_post category newsletter

to prevent duplicate mails


2010/9/10 ibbranco <pari...@gmail.com>
--
=== Please Donate ! https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2erenaut%40gmail%2ecom&lc=US&item_name=MailPress&item_number=gg&amount=5%2e00&currency_code=EUR&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest ===

You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en



--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

ibbranco

unread,
Sep 10, 2010, 7:53:42 AM9/10/10
to MailPress
Thank you so much for the quick reply. But, I am not an expert,
therefore, I do not know what to do, after reading what you said ! I'm
learning...

I undersatnd the process, but where shall I go to check and or change
the settings or code to prevent duplicates? Can you give the path ?

Many thanks ...

ISabel

On 10 sep, 13:35, andré renaut <andre.ren...@gmail.com> wrote:
> wordpress fires the 'publish post' event each time a post is published or
> modified (if already published).
> To prevent duplicate mails
>
> * On mailpress install, for each published post, mailpress stores in wp
> postmeta table the following meta_key :
>    _MailPress_prior_to_install
>
> * On new post published, for that published post, mailpress stores in wp
> postmeta table the following meta_key :
>    _MailPress_published
>
> if you are using category_newsletter add-on,
>    _MailPress_published_category_(cat_id)
>
> So each time the event 'publish post' is fired by wp
>
> MailPress tests if the post is not
> "_MailPress_prior_to_install"
> OR
>  "_MailPress_published" for per_post newsletter OR
> "_MailPress_published_category_(cat_id)" for per_post category newsletter
>
> to prevent duplicate mails
>
> 2010/9/10 ibbranco <parisr...@gmail.com>
>
>
>
> > We change quite often ou posts by editing them after having published.
> > Mail press send to subscribers a mail everytime we edit. We would like
> > the mail to be sent only one time per post, when its published and not
> > when we edit later.
>
> > How to change in the settings ? Is there a solution ?
>
> > thanks in advance
> > Isabel
>
> > --
> > === Please Donate !
> >https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=andre%2...
>
> > You received this message because you are subscribed to the Google
> > Groups "MailPress" group.
> > To post to this group, send email to mail...@googlegroups.com
> > To unsubscribe from this group, send email to
> > mailpress+...@googlegroups.com<mailpress%2Bunsu...@googlegroups.com>

andré renaut

unread,
Sep 10, 2010, 8:59:25 AM9/10/10
to mail...@googlegroups.com
you should not have duplicates !!

code is rather complex

per_post newsletter scheduling :
mailpress\mp-includes\class\options\newsletter\schedulers\post.php and post_cat.php
with \mailpress\mp-includes\class\options\MP_Newsletters_scheduler_post_abstract.class

and

per_post newsletter processing :
mailpress\mp-includes\class\options\newsletter\processors\now.php

2010/9/10 ibbranco <pari...@gmail.com>


You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

ibbranco

unread,
Sep 10, 2010, 9:11:40 AM9/10/10
to MailPress
Ok, I have 2 problems with Mail press:

1. when editing after published, it sends again an email (I have just
made it and the mail was sent)
2. and, when I dit it the users received 2 mails , in duplicate, the
same mail.

Well, I not an expert to change the codes. You say I should not
happen. I will leave the mailpress activated and delay the posting of
today (to avoid the problem with my subscribers). Can you check on my
blog what is the problem?? http://parisrivedroiterivegauche.com

I activated the batch send with 50 posts per batch. the server seems
to work.

Thank you


ISabel


On 10 sep, 14:59, andré renaut <andre.ren...@gmail.com> wrote:
> you should not have duplicates !!
>
> code is rather complex
>
> per_post newsletter scheduling :
> mailpress\mp-includes\class\options\newsletter\schedulers\post.php and
> post_cat.php
> with
> \mailpress\mp-includes\class\options\MP_Newsletters_scheduler_post_abstract.class
>
> and
>
> per_post newsletter processing :
> mailpress\mp-includes\class\options\newsletter\processors\now.php
>
> 2010/9/10 ibbranco <parisr...@gmail.com>
> > <mailpress%2Bunsu...@googlegroups.com<mailpress%252Buns...@googlegroups.com>

andré renaut

unread,
Sep 10, 2010, 9:20:05 AM9/10/10
to mail...@googlegroups.com
je te recontacte via ton formulaire de contact !

2010/9/10 ibbranco <pari...@gmail.com>


You received this message because you are subscribed to the Google
Groups "MailPress" group.
To post to this group, send email to mail...@googlegroups.com
To unsubscribe from this group, send email to
mailpress+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/mailpress?hl=en

ibbranco

unread,
Sep 12, 2010, 2:24:58 AM9/12/10
to MailPress
I would like to thank André for his support and help, which has solved
the problems I was encountering. The site works perfectly now ! Many
thanks .... It's really nice to participate in this sharing at
internet specially when you are not a specialist or an expert !!!!!!

On 10 sep, 15:20, andré renaut <andre.ren...@gmail.com> wrote:
> je te recontacte via ton formulaire de contact !
>
> 2010/9/10 ibbranco <parisr...@gmail.com>
>
>
>
> > Ok, I have 2 problems with Mail press:
>
> > 1. when editing after published, it sends again an email (I have just
> > made it and the mail was sent)
> > 2. and, when I dit it the users received 2 mails , in duplicate, the
> > same mail.
>
> > Well, I not an expert to change the codes. You say I should not
> > happen. I will leave the mailpress activated and delay the posting of
> > today (to avoid the problem with my subscribers). Can you check on my
> > blog what is the problem??http://parisrivedroiterivegauche.com
> > > > <mailpress%2Bunsu...@googlegroups.com<mailpress%252Buns...@googlegroups.com>
> > <mailpress%252Buns...@googlegroups.com<mailpress%25252Bun...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages