Hello,
I was wondering if it would be possible to integrate this awesome module with Mail Editor module that allows editing of the Mail templates.
I am needing this as it allows different email to be sent depending on the language. If from /en I want the email sent in English and from /ja sent in Japanese. The Mail Editor would allow the emails to be sent fully customized with different placeholders and all.
Also, I need the links to be sent as below because depending on the url the user gets another role.
English email = give link http://www.example.com/en/user/register = role A when registered
Japanese email = give link http://www.example.com/ja/user/register = role B when registered
Thank you!
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | interdiff-806450-13-15.txt | 5.31 KB | mrded |
| #15 | invite-806450-15.patch | 20.25 KB | mrded |
Comments
Comment #1
YK85 commentedsubscribing - Im looking to use Invite module and need this as well.
Comment #2
nicedawg commentedHere's a patch which tries to do just that.
It defines the necessary hooks for integration with the Mail Editor module.
Thanks!
Brady
Comment #3
robby.smith commentedNice! This works great =)
Comment #4
YK85 commented+1 for commit, thanks!
Comment #5
YK85 commentedHappy New Year!
Thanks for all of your hard work in 2010.
I look forward to using and following the development of Invite module in 2011.
Please review this patch when you have time and commit.
Comment #6
nyleve101 commentedHi,
will this allow users to send out invites like the ones currently sent out by groupon?
Hope all is well!
Thanks,
Evelyn
Comment #7
chuckbar77 commentedGreat work! RTBC
Comment #8
warmth commentedAny news about committing this and porting it to Drupal 7.x?
I asked for Mail Editor module support here: #1878342: Invite support but the developer told me:
So I guess the support must be given by you. Any chances?
Comment #9
warmth commentedComment #10
matt.rad commented@Bilmar,
I am in the same boat as you with registration URLs. I know its been a while, but did you figure this one our?
Matt
Comment #11
mrded commentedNeed to be converted to 4.x branch.
Comment #12
mrded commentedGuys, what do you think if I move all email settings from invite entity to mail_edit?
Thus we will get rid of following fields:
In this case users will not be able to edit subject and body every time will be used template from mail_edit. But it will simplify the module a lot by delegating most email of work to mail_edit
Comment #13
mrded commentedPlease, take a look my patch, there many things has been changed.
Following variables/settings has been deleted:
All email logic has been moved to mail_edit module.
Now if you need user to create invite with custom text - you need to print [invite:field-invitation-email-body] & [invite:field-invitation-email-subject] fields inside your invite template.
As you can see it has simplified code a lot. And I hope it's the best time to apply the patch because module still in beta.
Thanks.
Comment #14
mrded commentedNew version of the patch will delete field_invitation_email_subject and field_invitation_email_body from entity if they are not editable.
Comment #15
mrded commentedSorry, wrong file.
Comment #16
alfthecat commentedpatch in #15 seems solid. After cache clear I was able to use mail_edit and provide multilingual email text.
Comment #17
ckngPatch rejected :)
First, not everyone is using/want to use mail_edit. Second, do not find adding additional dependency is attractive and on top of that, it is rather not nice to break existing installs when they update. If you could tweak the patch to support mail_edit when it is available, leaving the rest as it is, will add it in.