Results 1 to 10 of 10

Thread: Newsletter

  1. #1

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    Newsletter

    OK, What I wanna do is have a textbox at the bottom of the page that you type your email in and when you click send next to it, it sends a preset message to [email protected] that says something like "[email protected] has signed up for the newsletter. please add them to your address book!"

    -duc

    <------his arm must get tired



  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    ASP, PHP, or CGI?

    Using a server side language, you'd retrieve the email address the viewer puts in, and sends an email to whatever.com address.

    Now, what language? Each one has their own respective forum

  3. #3
    Banned Kyle_Katarn's Avatar
    Join Date
    Jul 2002
    Location
    Toulouse, France
    Posts
    89

  4. #4

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Originally posted by mendhak
    ASP, PHP, or CGI?

    Using a server side language, you'd retrieve the email address the viewer puts in, and sends an email to whatever.com address.

    Now, what language? Each one has their own respective forum
    It really doesnt matter. Whatver one works for you

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by duc
    It really doesnt matter. Whatver one works for you
    Erm... what language does the server support? Is it your muffins site? Or some other site?

  6. #6
    Banned Kyle_Katarn's Avatar
    Join Date
    Jul 2002
    Location
    Toulouse, France
    Posts
    89
    K-ML only require PHP

  7. #7

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Originally posted by mendhak
    Erm... what language does the server support? Is it your muffins site? Or some other site?
    Sniffum.com And it'll support anything you can script

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Originally posted by Kyle_Katarn
    K-ML only require PHP
    He didn't ask for a prebuilt script. I think he wants to do it himself. You know...code and whatnot.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Originally posted by duc
    Sniffum.com And it'll support anything you can script
    Hmm... well, I have a job, so I don't get much time to write scripts for others. I can help you with your script though.

    How well do you know PHP?

    I'll give you a basic overview of it first:

    On a page, you'll have a little box where the user can enter their email address. The next page, which is the form's action, will just have to use the mail() function to send an email to the spammer-guy. Now the mail function takes a couple of arguments.

    PHP Code:
    mail("$to""$subject""$msg""$headers"); 
    $to is obvoius.
    $subject is obvious
    $msg can be set as an HTML string, and would look something like this:

    PHP Code:
    $msg 
    <HTML> 
    <BODY style='font-family:Arial, Verdana, Tahoma; font-size:12px;'> 
    <b>Hi!</b><br>
    You are an idiot. <b>
    $subscribersemailaddress</b> should be added to your address book.  He wants to get spammed by you!
    </BODY> 
    </HTML> 
    "


    And set the $headers like this:

    PHP Code:
    $headers "From: $yourname <$youremail>\nReply-To: $youremail\nContent-Type: text/html; charset=iso-8859-1"
    (Because that'll enable you to send an HTML email)

    Hmm... I may have inadvertantly written some of the script for you, but I'm sure you'll be able to figure out the rest. If you need more help, post again.

  10. #10

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    How well do you know PHP?
    Not well. But what you said made general sense.

Posting Permissions

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



Click Here to Expand Forum to Full Width