Jump to content

Archived

This topic is now archived and is closed to further replies.

evon83

questions on email notification

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!

Share this post


Link to post
Share on other sites
Are you looking for a complete membership system or just the approval email sending part?

Ronald  8)

Share this post


Link to post
Share on other sites
Have you started any of this?  Can you post some code?  Do you have the approval part done or any of the admin panel?

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites
Do you have script tags in the code? Some html/php code causes this due to a secrity script running on the server. If its a script tag ad spaces around the brakets eg:
[code]< script >code here< /script >[/code]

Share this post


Link to post
Share on other sites
No script tags! However, I have some newlines \n in the example. Can't be.

Ronald  :cool:

Share this post


Link to post
Share on other sites
Post your code to pastebin.com and provide a link to your posted code instead.

Share this post


Link to post
Share on other sites
I put it on my server. For the sample go to [url=http://www.goosen-verdonk.nl/emailcode.php]http://www.goosen-verdonk.nl/emailcode.php[/url]

Ronald  8)

Share this post


Link to post
Share on other sites
Wow !! Thank you so so much guys!
I thought no one will post any messages here!!
Thanks Thanks!!! many thanks!!

Share this post


Link to post
Share on other sites
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 !!

Share this post


Link to post
Share on other sites
anyone know how to do it?? or can give a little suggestions maybe??
Thanks!
look forward to hear from any experts' advice! thanks!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites

×

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.