Auto Mail new member

This is a discussion on "Auto Mail new member" within the Website Planning section. This forum, and the thread "Auto Mail new member are both part of the Planning Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old May 19th, 2007, 10:44
New Member
Join Date: May 2007
Location: Washington, UK
Age: 29
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question Auto Mail new member

Hi all

Here's another one I can't get my head around...

I'm currently building a large community website. It's running on a Linux server and is built with Dreamweaver MX in PHP using a MySQL backend.

I've no problems setting up the member registration system, however this is the first site where the new member needs to be emailed their login information.

Basically, once they've completed the registration form and have proceeded to the confirmation page, how do I go about mailing their username & password and a general welcome message to their email address (which they will have provided during registration)?

On a slightly different note - is it a similar process if the member forgets their username and/or password and wants to retrieve either using their registered email address?

Any and all assistance is greatly appreciated!

John H
Darecia Interactive
http://www.darecia.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old May 19th, 2007, 20:06
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Auto Mail new member

Sounds like you really need to learn to hand code your sites....lol. I would start with learning XHTML/CSS. Then you could move on to PHP/MySQL!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old May 19th, 2007, 20:07
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Auto Mail new member

Oh forgot to answer the question. You should just be able to echo the username and password, then email that echo.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old May 19th, 2007, 22:38
New Member
Join Date: May 2007
Location: Washington, UK
Age: 29
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Cool Re: Auto Mail new member

Hi

Thanks for the response.

I do most of my work hand coded. I just have difficulty with a few aspects of the PHP language - otherwise I'd consider myself quite fluent in PHP

Anyways, here is the code I've added to the confirmation page. I'm having difficulty calling the information using 'echo' from the recordset.

Please take a look and see if you can spot an error!

PHP: Select all

<?php
$to      
'<?php echo $row_rsReg['email']; ?>';
$subject 'Your Registration Information';
$message 'Welcome to the community.  

Your Username is <?php echo $row_rsReg['
username']; ?> and your password is <?php echo $row_rsReg['password']; ?>';
$headers 'From: noreply@darecia.com' "\r\n" .
    
'Reply-To: noreply@darecia.com' "\r\n" .
    
'X-Mailer: PHP/' phpversion();

mail($to$subject$message$headers);
?>
I know that there are more PHP headers within the script, but if I take these out I get a parse error.

What's the correct syntax in this instance?

Cheers!

John H
Darecia Interactive
http://www.darecia.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
php mail member

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
auto div height Phenomena0 Web Page Design 4 May 24th, 2008 12:26
how to send auto email in mail box not in junk art PHP Forum 3 Jul 4th, 2006 16:56
visitors name not displayed in mail after filling in mail form made on earth PHP Forum 7 Nov 16th, 2005 22:43
Auto Responder handshakeit Classic ASP 1 Oct 14th, 2005 12:30


All times are GMT. The time now is 20:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42