I'm using version 6.x-1.14
When I "Send Page by Mail", it works great when there is a node id. http://example.com/printmail/32
When I go to the /printmail page without a nid (http://example.com/printmail), I see the form.
I can submit this form but if I do I see the WSOD and no email is sent.
Ideally, this module should either not allow you to submit the form if you don't have a nid OR it should allow you to submit it and send the email without any reference to a node.
Thanks,
Ttamniwdoog
Comments
Comment #1
jcnventuraActually, it should be sending the site's frontpage in the e-mail.. I'll look into it.
Comment #2
ttamniwdoog commentedIt looks like there are a couple places in the print_mail.module where it could fallback to use the home page if no nid is present. But I don't see where that functionality already exists. Perhaps I am looking in the wrong places?
Comment #3
jcnventuraHi,
Actually, when not suplying a nid, it should use the referral page.. However that wasn't working for the printmail because by the time the form is submitted, the referral page is the input form itself.
I've fixed it now to redirect to the correct page in the printmail case.. And as a bonus, when no referral page exists, it uses the site's frontpage..
João
Comment #4
ttamniwdoog commentedGreat solution. Thank you.