News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Adding New User Profile Variables to E-mails

Started by Miker1029, June 27, 2016, 01:28:53 PM

Previous topic - Next topic

Miker1029

Hey All,

   I was wondering if anyone knows how, or can point me in the right direction, to add New User Profile Variables???

What I'm trying to Accomplish, Is I send out Mass E-mails on holidays and such, And to be "NON-SPAM" Compliant I need a way to have a link on the Bottom of the E-mail to take the user to "Delete Account" in the Profile... And Yes, I WANT them to delete there account.... As I also use this time to validate Legitimate E-mail address'......So If they don't want the E-mail, they need to just go on and go.....

I've looked into E-mail Redirects, Like When Someone Might need to use the "CODE" to Validate the E-mail Address on Registration...

So If I could find something to the Effect of http://blah.com?delete_account,  and they click the link, Login and get taken to the delete account in profile....

Thanks for ANY help or idea on how to do this.... Or anything you think might work....


Mike

Illori

SMF does not have anyway by default to unsub from the newsletters or delete an account without being signed into that account.

Miker1029

Right, I know, And If the need to sign in, that's fine, what I'm trying for is something like:

(In The MASS SEND E-mail, Variables are Examples)

Dear $NAME,

   Happy Fourth From $FORUM

IF you do not wish to Receive E-Mails you can Delete your Account at:

http://www.android-x86.net/index.php?action=profile;area=deleteaccount;$UID

(THEY RECEIVE)

Dear Mike,

   Happy Fourth From Android - X86 Forums

IF you do not wish to Receive E-Mails you can Delete your Account at:

http://www.android-x86.net/index.php?action=profile;area=deleteaccount;u=1

---------------------------------------------------------

Ya they'll have to log-in but it'll take them to the Delete Account after words, So i'd need to Add the $UID Variable to the Sent E-mails....

Mike

Illori

you dont need to add the userid to the string, the url will take them to their profile if that is not provided, in the correct section.

Miker1029

I've Tried that I get the Error:

An Error Has Occurred!
The user whose profile you are trying to view does not exist.

With the the link with the uid, deleteaccount, Omitted and the with just the profile, they all give me the above error....

Mike

Illori

i tested it here and the page came up without issue.

Miker1029

Yes when the ID Is present, Why I need to add it.... They have Variables for UserName, Forumname, Etc, Why I need to ADD one for the UID....


Miker1029

Anyone have an Idea On How to do this?!?!  Or should I post in another location?

Thanks

Mike

P.S. Reason I'm Asking is I sent out the 4th E-mails and this is what It looks like....

QuoteHello Everyone,

First let me say (for those of you who celebrate) Happy Independence Day!

If you don't celebrate have a Great Weekend!

And Be SAFE Out there!!!

For those of you subscribed to recieve New Download Alerts, I'm going to be working on the Downloads section over the next week or so...

If you Receive Alerts About "New Downloads" During this time the Probably Aren't, Just a Heads up.

Regards,

         Mike

The Android - X86 Forums Team.

{$board_url}

<font size="1">You have subscribed to receiving E-mails from {$board_url} by Accepting the Registration Agreement.
To Unsubscribe to the E-mails from {$board_url} go to:
Android - X86 Forums » Forum » Profile » Account Settings » Delete This Account
And you will no longer receive E-mails from us.  Thank you.
</font>

YUCK!

Miker1029

NO WAY!  Ok I've found it in the Docs, I SWEAR I searched for this Years ago and it wasn't an Option.... This is Untested as of yet (still have 2700 Mails going out....)

{$board_url} - The URL to your forum.
{$current_time} - The current time.
{$member.email} - The current member's email.
{$member.link} - The current member's link.
{$member.id} - The current member's ID.
{$member.name} - The current member's name.
{$latest_member.link} - The most recently registered member's link.
{$latest_member.id} - The most recently registered member's id.
{$latest_member.name} - The most recently registered member's name.

http://wiki.simplemachines.org/smf/SMF2.0:News_and_newsletters

I'm not going to mark this solved till I can test it, When I verify I'll Mark...

Sorry for the waste of time all....

Mike

Miker1029

Ok it worked, Thanks for the help all.

http://www.android-x86.net/index.php - The URL to your forum.
July 03, 2016, 04:30:47 PM - The current time.
[email protected] - The current member's email.
MikeR1029 - The current member's link.
1 - The current member's ID.
MikeR1029 - The current member's name.
crashmonster - The most recently registered member's link.
6969 - The most recently registered member's id.
crashmonster - The most recently registered member's name.

Thanks for the help.

Mike

Advertisement: