Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I'm using the Anonymous Subscriptions module and i have a problem that when an event notification email is sent out it does not render properly, it still shows the tags and does not convert the links correctly. I have tried all the different combinations of email options but want to know if i'm doing something wrong or is it a bug? Thanks
An example is below
<p>Greetings,<br />
A item to which you are subscribed has been updated<br />
Theme Profiles<br />
--<br />
This is an automatic message from <a href="http://www.example.com/" title="http://www.example.com/">http://www.example.com/</a><br />
You can unsubscribe to only this tag <a href="http://www.example.com/notifications/unsubscribe/subscription/7?timestamp=1330962760&signature=6ccfb02187b53852a60b6addf9da9e10" title="http://www.example.com/notifications/unsubscribe/subscription/7?timestamp=1330962760&signature=6ccfb02187b53852a60b6addf9da9e10">http://www.example.com/notifications/unsubscribe/subscripti...</a><br />
You can manage your subscriptions here <a href="http://www.example.com/user/1/notifications" title="http://www.example.com/user/1/notifications">http://www.example.com/user/1/notifications</a></p>
Comments
Comment #1
kangnamkid CreditAttribution: kangnamkid commentedMy guess is you have an input filter setting incorrect somewhere....first place to look would be filter setting for the email template itself. See pull-down menu options for filters under "manage templates" for each template. The label on the pull-down menu is "Format:".
Comment #2
efc84 CreditAttribution: efc84 commentedThanks for the quick reply, i have just changed the format option to filtered html and then full html and got the same problem?
Comment #3
kangnamkid CreditAttribution: kangnamkid commentedHmmm....try also looking at Message settings-->Send methods-->Filters. What send method are you using, and what filter do you have set for it?
If that doesn't work, sorry but that's the end of what I can guess offhand....but it's not a bug...it's a send method/filter problem somewhere...
Comment #4
efc84 CreditAttribution: efc84 commentedI currently have the Drupal Mail filters set to Full HTML and Safe HTML and have also tried a few different combinations of this.
Comment #5
kangnamkid CreditAttribution: kangnamkid commentedWhat's your email send method? And you are using Notifications version 6.x-4.0-beta7?
Comment #6
efc84 CreditAttribution: efc84 commentedMy email method is just Drupal Mail and yes i have Notifications version 6.x-4.0-beta7 installed.
Comment #7
kangnamkid CreditAttribution: kangnamkid commentedSomebody correct me if I am wrong, but I think the basic Drupal email send method will not do HTML. Need to use send method provided by either the Mime Mail module or the PHPmail sub-module that comes with Messaging module.
I use Notifications version 6.x-4.0-beta7 and could never get PHPmail working. Needs SMTP authentication settings, etc. Instead I used Mime Mail module....but to make it work with Notifications version 6.x-4.0-beta7 needs a hack for anonymous users to subscribe. For hack that worked for me, see comment #3 for the hack and comment #4 for *why* the hack works -- at http://drupal.org/node/1099658
Hope that helps efc84...
Comment #8
efc84 CreditAttribution: efc84 commentedthanks i'll give it a try and report back
Comment #9
efc84 CreditAttribution: efc84 commentedDo i have to amend anything in the destination.inc for #4(It is not 100% clear)? I have done what was asked in #3
Comment #10
kangnamkid CreditAttribution: kangnamkid commentedSorry I meant to say it was the hack in comment #3 that worked for me. Comment #4 is just further rambling explication of *why* #3 works. I edited my earlier post to reflect this. Give it a try....
Comment #10.0
kangnamkid CreditAttribution: kangnamkid commentedtext added
Comment #11
efc84 CreditAttribution: efc84 commented@kangnamkid That works perfect, thanks for all your help
The only things i had to do was re-subscribe to my test 'tag' as the mail sending method will still be set a 'mail' and not 'mime mail' and also under /admin/messaging/notifications/subscriptions/anonymous i had to change the 'Allowed messaging methods:' to 'mime mail'.