SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to do a form like?

    hi all,how are you,i wish that you are fine.
    i want you to help me
    i have a site that can a user register on it,i want to send a mail automaticly when a new user register.how can i do this?
    when a new user register on my site,a hello mail send to this user

    and 10x all.

  2. #2
    SitePoint Wizard silver trophy Jelena's Avatar
    Join Date
    Feb 2005
    Location
    Universum, 3rd Corner
    Posts
    3,000
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Have you already looked at mail function or you have tried it already but have problems with it?
    -- Jelena --

  3. #3
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i want a code hwo send automaticly a mail when a new user register in my site,hello mail.i know the function mail but i want a code to send automaticly a mail for a new user

  4. #4
    SitePoint Evangelist Waffles's Avatar
    Join Date
    Nov 2005
    Posts
    435
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well on the register script, simply do this:

    PHP Code:
    <?

    if($register) { //if they registered correctly

    $MailTo $_POST['email']; //their email however you got it
    $MailSubject "Subject";  // email subject
    $MailHeader "From: you@domain.com"//your addy
    $MailBody "Hey there"//what do you want to say?


    mail($MailTo$MailSubject$MailBody$MailHeader);

    }

    ?>

  5. #5
    Wadge! F4nat1c's Avatar
    Join Date
    Oct 2005
    Location
    South Wales, UK
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's hard to give you working code without seeing your HTML registration form.
    OMFG SitePoint ROXORZ TEH BIG ONE111!
    Wish you were invisible?

  6. #6
    SitePoint Member
    Join Date
    Apr 2006
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    10x all for your help,
    10x Waffles for the code,i'll try it.
    10x


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •