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&amp;signature=6ccfb02187b53852a60b6addf9da9e10" title="http://www.example.com/notifications/unsubscribe/subscription/7?timestamp=1330962760&amp;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

kangnamkid’s picture

My 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:".

efc84’s picture

Thanks for the quick reply, i have just changed the format option to filtered html and then full html and got the same problem?

kangnamkid’s picture

Hmmm....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...

efc84’s picture

I currently have the Drupal Mail filters set to Full HTML and Safe HTML and have also tried a few different combinations of this.

kangnamkid’s picture

What's your email send method? And you are using Notifications version 6.x-4.0-beta7?

efc84’s picture

My email method is just Drupal Mail and yes i have Notifications version 6.x-4.0-beta7 installed.

kangnamkid’s picture

Somebody 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...

efc84’s picture

thanks i'll give it a try and report back

efc84’s picture

Do i have to amend anything in the destination.inc for #4(It is not 100% clear)? I have done what was asked in #3

I look at the code in destination.inc and default method "mail" of drupal works because the key of array is "mail" and the variable $key is "mail" too (in the row $method = $values['destination_methods'][$type] the variable $type is equal "mail"). Therefore right value will be returned:
 [destination_methods] => Array
 (
 [mail] => mail
 )

BUT! When will you use mimemail the key of array will be replaced by "mimemail" and because the $type is equal "mail" it will not return right value. Another bug is the value of the array because it is "mail" instead "mimemail":
 [destination_methods] => Array
 (
 [mimemail] => mail
 )

@skapto
 I confirm your fix works!
kangnamkid’s picture

Sorry 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....

kangnamkid’s picture

Issue summary: View changes

text added

efc84’s picture

@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'.