Get support from Xavier Media
It is currently Sun Dec 08, 2013 7:36 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Call me when you register, OK?
PostPosted: Sun Jun 17, 2007 7:48 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
Can you get me a script to add to Cookie Password Protection 2.9 that will send a mail to an address each time there is a new user registration?

Thanks!

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Jun 18, 2007 3:07 pm 
Offline
XavierForum.com Admin
XavierForum.com Admin
Super VIP Member
Super VIP Member
User avatar

Joined: Tue Mar 15, 2005 4:37 pm
Posts: 1082
Location: Sweden
Points: 1500
In join.php you simply add this code:
Code:
mail("youremail@sampleaddress.com","New user signup","$username just signed up as a member at your website","From: youremail@sampleaddress.com");

directly after this code:
Code:
               $from = "From: ". mysql_result($webmaster_info,0,"info");
               mail($useremail,"Your password",$message,$from);


Remember to replace youremail@sampleaddress.com with your email address.

_________________
Xavier Media®
Join me at LinkedIn | Get your latest blog post in your signature you too


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Mon Jun 18, 2007 7:41 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
bylla wrote:
Remember to replace *****@sampleaddress.com with your email address.


But, what If I want all my friend at the good ship sampleadress to receive bulletins of my new members?

:-)

Thanks for the code. You=genius.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 19, 2007 6:05 am 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
Just adjust the first value accordingly.

Code:
mail("*****@sampleaddress.com; *****@sampleaddress.com; *****@sampleaddress.com","New user signup","$username just signed up as a member at your website","From: *****@sampleaddress.com");

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Tue Jun 19, 2007 5:01 pm 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
Julz wrote:
Just adjust the first value accordingly.


I was just being facetious about having to change the address from "sampleaddress" :-) Sorry. My humor is dangerously suited for an audience of only me.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 20, 2007 2:00 am 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
kcsteve wrote:
My humor is dangerously suited for an audience of only me.

So it seems.

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Wed Jun 20, 2007 4:56 am 
Offline
Rookie
Rookie
User avatar

Joined: Thu Jul 14, 2005 12:59 am
Posts: 44
Location: los angeles / san francisco
Points: 0
Julz wrote:
So it seems.

Oooooh, spank me like I like it Julz.

And for the voyeurs out there, the code as our friend Julz wrote will get you an error code . . .

Code:
Warning: mail(): SMTP server response: 501 5.5.4 Invalid Address in D:\hshome\server\site.com\join.php on line 167


Just replace the semicolons separating the e-mail addresses in her code with comma's and you're gold.

Thanks both of you for the help. Nerd smart with Elvis cool.

_________________
dig the sounds of the greatest singer that you haven't heard of yet, cory phillips. i promise you'll thank me for turning you on to it first.


Report this post
Top
 Profile Send private message  
Reply with quote  
 Post subject:
PostPosted: Thu Jun 21, 2007 12:42 am 
Offline
XavierForum.com Moderator
XavierForum.com Moderator
Member
Member

Joined: Fri Jun 10, 2005 2:51 am
Posts: 110
Points: 0
Sorry, I had a different keyboard setting on the computer I used to type that, which swapped the , with ; and changed some of the letters around too.

_________________
XMG Forum Moderator & Webmaster
Xavier Media™ Australia & New Zealand and Xavier Media™ Europe


Report this post
Top
 Profile Send private message  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Registered users: No registered users


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Portal » Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[
SEO MOD © 2007 StarTrekGuide ]