Jump to content

Recommended Posts

Hello !

Im new here!
honestly, not really, it's just that i havent been here for ages...T-T

im developing an admin application for my club where i need to make them active ....
After i approved them to be an active member, this will generate a new email telling them that they are the new member of the club and and stuff...
the name of the person will be put into the mail merge and then send to them...

Does anyone have any idea how to write the code??
or you have the similar coding??
please help..
i have no idea how to start it...
thanks!
Link to comment
https://forums.phpfreaks.com/topic/19120-questions-on-email-notification/
Share on other sites

Somehow I can't get my code between [nobbc][code][/code][/nobbc] tags in here. This forum will not let me post the code sample!!  ??? ???

It gives me a "server not found" message. Must have something to do with the code itself, I don't know.

Give me your email adres via personal mail and I'll mail it to you.

Ronald  8)
Actually i already have the mail merged template, i just need to know like...
once i click on the activate button....how to make the field values pass to the template and then automatically send the email to the new members???!!!!

Please give me some hints or ideas....or if possible samples....
Thank u so so much !!
quick example only with no support.


on the memebers table you add another field called activated.

activated
varchar 3 not null

add a email snippet at the bottom off the registration code.php

pull the members email from the table and add that to the email snippet

when the user has finished filling out the registration form then the email snippet should email the client with a link going to a page to update the database

link example
[code]
<?php session_start();

echo "<a href='myurl.com/update_registration.php?id=$id&cmd=update'>";
?>
[/code]


when the user got the link from there email address the link goes to an update page

[code]

<?php session_start();

select database

if($_GET['cmd']=="update"){

$activated="yes";

$query="update members set activated='$activated' where id='".$_GET['id']."'";
$result=mysql_query($query);

header("location: index.php");
}
?>

[/code]

now the database has been added with a yes in the members activated field in the database.


on the login code you need to let the script no that if activated ==1 then redirect them to the members page.


good luck.
Thank you very much for the suggestion!
But how is the code like to send the email to the members?
actually the situation is like this:

On the admin page, once i approved them to become active member....
so i will tick the "activate" field ...
so after that an official email membership will email to them...

how does the code works??
anyone has the sample?
thanks!
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.