Closed (won't fix)
Project:
Simplenews
Version:
6.x-1.0-beta3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2008 at 10:11 UTC
Updated:
3 Aug 2009 at 19:54 UTC
Jump to comment: Most recent file
Comments
Comment #1
sutharsan commentedAll simplenews newsletters should be listed under either admin/content/simplenews/ or admin/content/simplenews/notsent. Do you use Localizer module?
Comment #2
1st-angel commentedOK, the news is listed under admin/content/simplenews/notsent. can you tell me why it is not send?
Comment #3
1st-angel commentedThe "Default send action:" under admin/settings/simplenews/newsletter is set to "Send newsletter"
Comment #4
sutharsan commentedWhen you save the node using the node add/edit form and the newsletter is send depending on the 'Default send action'. I have no experience with creating a node using mailhandler.
Comment #5
z.stolar commentedAFAIK simplenews is not behaving like any other node type. It adds/removes some control of the node edit.
Are you trying to send a mail to your site, which will be immediately sent out to your subscribers? If you do, you might want to check our listhandler module.
Comment #6
1st-angel commentedhi,
i just "fixed" the problem for me.
The problem was that mailhandler does not create a form. When simplenews-nodes are submited simplenews reads values from the form and saves them to the database. If there was no form all the values are empty and mysql-default-values are saved to that database fields.
My patch simply inserts the default values to the node in the 'validate' step if they are empty.
This way the simplenews-default-values are saved and the mails are send out.
I don't know if this is the correct approach to the problem but it works for me.
Could someone please review the patch and tell me if my patch is OK.
thanks
Angel
Comment #7
z.stolar commentedYou can implement hook_mailhandler in simplenews.module, and this will allow you to pass simplenews the necessary commands (like a "send" command which will have "not now, to test, now" as optional values)
Comment #8
1st-angel commentedhi,
i thought about this. But that would only solve this problem with mailhandler. If you use simplenews whith other modules the same problem will occur.
Comment #9
sutharsan commentedI will not commit this patch. The solution of z.stolar would be the better approach.
Comment #10
jonathanbloom commentedI'm curious as to how to implement the hook. Do I just add hook_mailhandler somewhere in simplenews.module?
Comment #11
kuemerle5 commentedWhat exactly would the content of the 'hook_mailhandler' method look like if it only needs to tell Simplenews to parse an email as sent?
Comment #12
sutharsan commentedTo find out how to implement a hook_mailhandler, you can study the Mailhandler module and modules which already implement hook_mailhandler. For the latter see: Casetracker, mail2web and mailsave.
Comment #13
kuemerle5 commentedAlright, thank you very much. Hopefully I can get this working and if I do I'll see if I can upload a patch (and maybe you could apply it =).