The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to pass users pw through email?
Ok long story short, hostmonster (my host) shut off my outgoing emails because someone reported the birthday email as spam. They said I need an auto opt out link put in place before they enable my outgoing emails.
I installed ... https://vborg.vbsupport.ru/showthread.php?t=246163 and then asked them to enable my emails. They said no because it's not an auto opt out. They said since the user has to click on the confirm button it's not automated. So I need to know how to pass the users pw in the automated emails to them, and pass the userid and userpw back to the system in order to automatically log them in, and then automatically opt them out of the emails. I don't think this is a good idea (to pass the login info back and forth), but it's what the host demands and I need to get it done asap. |
#2
|
|||
|
|||
I'm not sure how you'd go about doing that, but I have another idea that might work - put the email address on the url as a parameter, then use a plugin similar to the one for the mod you have installed excpet that the query would check the email address rather than the userid (which it could do without being logged in). It's true that with that scheme anyone who knew a member's email address could unsubscribe them, but that's not really a serious security issue. If you wanted, later you could add something like an automatic PM to the user telling them they'd been unsubscribed, so they could resubscribe if it's a mistake.
If you did implement this, one thing you might want to do is change the plugin code so that it only ever displays one message (like "thank you, you're unsubscribed") even if you're passed an invalid email, that way it couldn't be used to guess at member's emails. |
#3
|
|||
|
|||
Hi again Kevin
I want to thank you for all of your help today sure made it go a lot faster However I don't have a clue about how to make this plugin. I thought that you had to login in order to change settings, are you saying that the plugin will change the settings for the user based on their email address without them having to log in? I had an idea, include the form in the outgoing emails ... but would it work? I can't really test this as the host has outgoing emails turned off, and I don't have any email clients configured on my localhost |
#4
|
|||
|
|||
Quote:
Quote:
Quote:
You could write a plugin that checks the username and password if it was passed in a form, but it would have to be html email and so it would depend on the user viewing the mail in html. |
#5
|
|||
|
|||
You are klh over there right?
I'll have to go through this tomorrow as I'm a bit too tired to be working on it now I mainly need this for the birthday emails since that is what has been reported by some disgruntled members. Would it be as simple as replacing $username with whatever the email variable is? So instead of saying hello John Lester blah blah blah it would say hello jlester@whatever.com Then making a plugin (that's where I'll need the most help) that will set the user options without them having to login? |
#6
|
|||
|
|||
Yeah, I guess I'll have to be more careful - I thought I was relatively anonymous over there.
It's late for me as well. I don't think inserting the address will be a problem. Maybe tomorrow I can throw something together. |
#7
|
|||
|
|||
Morning Kevin
So I had a thought, all this plugin would have to do is move the user to a different user group when the "unsubscribe" link is clicked on from their email. |
#8
|
|||
|
|||
You could move the user to another group if that's what you want. The mod you have installed unsubscribes the user from admin emails using pretty much the same sql that we talked about in the other thread, so that should work too.
I've been thinking about this too. What I wanted was a way to either automatically add the link to every email that goes out, or else have a way to put something in the email body phrase that would insert the link. I haven't figured out either one yet. But that doesn't mean we couldn't come up with something just for the birthday emails, if that's your current problem. I was thinking I might come up with something general that could be released and might help others, but that can wait. |
#9
|
|||
|
|||
Well my plan was to edit every outgoing email body phrase to add the link What I'm unsure of is how to execute the link permission wise. I'm still a complete noob more or less when it comes to coding.
Sometimes I can take a mod and tweak it (like I did with unsubscribe one), but as far as knowing how to do something from scratch ... well I can't |
#10
|
|||
|
|||
Quote:
The problem with that (using my scheme, anyway) is that the user's email address can be in a different variable for each body phrase. I also think that the address would need to be encoded in some way to be part of a url, so that makes it more complicated. There may not be any "good" way (using only hooks) to do what I was thinking about. But I think it's exactly the same problem if you need a way around the user having to log in, no matter how you choose to do it. I suppose to some people it's important enough that it's worth editing one or more of the vb files if necessary. BTW, I was just wondering - someone else asked about this same problem just yesterday - is that someone else from your site? Or maybe someone having the same problem with the same host. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|