PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > sending user an email after they have completed registration successfully
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
sending user an email after they have completed registration successfully

Réponse
 
LinkBack Outils de la discussion
Vieux 07/07/2007, 02h22   #1
Kevin Raleigh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut sending user an email after they have completed registration successfully

I would like to send my user an email telling them that they have logged in
successfully.

I would run a google search on this but I don't know how to phrase the
question.
Can anyone advise my on how to send an auto responder to the user after
registrating.

I would like to use class.phpMailer.php as I have had very limited success
with it. That and I need to learn how to use it so I can begin the next
segment of the web project.

insight would be appreciated
thank you
Kevin


  Réponse avec citation
Vieux 08/07/2007, 21h34   #2
Virginner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sending user an email after they have completed registration successfully

Kevin,

have you simply tried the mail() function?


  Réponse avec citation
Vieux 13/07/2007, 00h12   #3
Kevin Raleigh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sending user an email after they have completed registration successfully

Sorry about the top post I hid one of the old messages.
I would indeed give you a cut if I were making any money on this site.
I am developing what is my first php web site for my church.

I appreciate the
Kevin

"Virginner" <the.bin@LOSEITvirgin.net> wrote in message
news:f758gs$ngd$1@aioe.org...
> "Kevin Raleigh" <kraleigh@sbcglobal.net> wrote in message
> news:zI-dnZmw2YepLwjbnZ2dnUVZ_qOpnZ2d@giganews.com...
> >I am using your second suggestion, whereby the user is sent an email link
> > with a random number on it that resides in the database along with the
> > user
> > "id". However I am having trouble understanding what the page should

look
> > like that handles the incoming data from:
> > web address=
> > http://www.myUrl.com/pageThatHandlesScript.php?id="id&randNum="randNum"
> >

> <SNIP>
>
> Hi Kevin (plse don't top post!)
>
> URL shouild look like http://www.fred.com/validate.php?id=999&code=1234
>
> validate.php:
>
> check existance of both $_GET["id"] and $_GET["code"]
> look up $_GET["id"] in database and retrieve matching code
> if $_GET["code"] matches code found in database, then
> update datebase validated field to true or 'Y' or whatever
> display appropriate message
> else
> display error message
>
> Now, do I get a cut?
>
>



  Réponse avec citation
Vieux 13/07/2007, 09h58   #4
Virginner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sending user an email after they have completed registration successfully

"Kevin Raleigh" <kraleigh@sbcglobal.net> wrote in message
news:raOdnUq6sPrcKQvbnZ2dnUVZ_gadnZ2d@giganews.com ...
> Sorry about the top post I hid one of the old messages.
> I would indeed give you a cut if I were making any money on this site.
> I am developing what is my first php web site for my church.
>
> I appreciate the
> Kevin
>
> "Virginner" <the.bin@LOSEITvirgin.net> wrote in message
> news:f758gs$ngd$1@aioe.org...
>> "Kevin Raleigh" <kraleigh@sbcglobal.net> wrote in message
>> news:zI-dnZmw2YepLwjbnZ2dnUVZ_qOpnZ2d@giganews.com...
>> >I am using your second suggestion, whereby the user is sent an email
>> >link
>> > with a random number on it that resides in the database along with the
>> > user
>> > "id". However I am having trouble understanding what the page should

> look
>> > like that handles the incoming data from:
>> > web address=
>> > http://www.myUrl.com/pageThatHandlesScript.php?id="id&randNum="randNum"
>> >

>> <SNIP>
>>
>> Hi Kevin (plse don't top post!)
>>
>> URL shouild look like http://www.fred.com/validate.php?id=999&code=1234
>>
>> validate.php:
>>
>> check existance of both $_GET["id"] and $_GET["code"]
>> look up $_GET["id"] in database and retrieve matching code
>> if $_GET["code"] matches code found in database, then
>> update datebase validated field to true or 'Y' or whatever
>> display appropriate message
>> else
>> display error message
>>
>> Now, do I get a cut?
>>


That was a top post!
Is that script working now?


  Réponse avec citation
Vieux 14/07/2007, 01h24   #5
Kevin Raleigh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: sending user an email after they have completed registration successfully

I have what I think is the correct logic.

I set the registration up check it
If no errors and data is loaded, I call an email function that sends my
email to my pastor to approve the registrant.
If the pastor clears the person for access to the protected area of the
website an email is sent to the registrant from the site welcoming them to
the site.

I just need to test it out. I haven't had a chance yet.
Been pretty busy on this end. Will probably tackel it late saturday
afternoon.

Will post back with results, and if you like I will post the code that I
came up with for the entire process. I would welcome feedback on it. I think
that it is a little bloated in some areas and could possibly be peared down,
but that is a task for another time.

Thank you
Kevin Raleigh
"Virginner" <theDOTbin@virginLOSEIT.net> wrote in message
news:n9Hli.8420$XR.4201@newsfe4-win.ntli.net...
> "Kevin Raleigh" <kraleigh@sbcglobal.net> wrote in message
> news:raOdnUq6sPrcKQvbnZ2dnUVZ_gadnZ2d@giganews.com ...
> > Sorry about the top post I hid one of the old messages.
> > I would indeed give you a cut if I were making any money on this site.
> > I am developing what is my first php web site for my church.
> >
> > I appreciate the
> > Kevin
> >
> > "Virginner" <the.bin@LOSEITvirgin.net> wrote in message
> > news:f758gs$ngd$1@aioe.org...
> >> "Kevin Raleigh" <kraleigh@sbcglobal.net> wrote in message
> >> news:zI-dnZmw2YepLwjbnZ2dnUVZ_qOpnZ2d@giganews.com...
> >> >I am using your second suggestion, whereby the user is sent an email
> >> >link
> >> > with a random number on it that resides in the database along with

the
> >> > user
> >> > "id". However I am having trouble understanding what the page should

> > look
> >> > like that handles the incoming data from:
> >> > web address=
> >> >

http://www.myUrl.com/pageThatHandlesScript.php?id="id&randNum="randNum"
> >> >
> >> <SNIP>
> >>
> >> Hi Kevin (plse don't top post!)
> >>
> >> URL shouild look like http://www.fred.com/validate.php?id=999&code=1234
> >>
> >> validate.php:
> >>
> >> check existance of both $_GET["id"] and $_GET["code"]
> >> look up $_GET["id"] in database and retrieve matching code
> >> if $_GET["code"] matches code found in database, then
> >> update datebase validated field to true or 'Y' or whatever
> >> display appropriate message
> >> else
> >> display error message
> >>
> >> Now, do I get a cut?
> >>

>
> That was a top post!
> Is that script working now?
>
>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 20h46.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12721 seconds with 13 queries