WordPress.org

Ready to get started?Download WordPress

Forums

Email form - users 'your@address.com' is sent specified email address (10 posts)

  1. slambert
    Member
    Posted 8 years ago #

    This probably already exist in some other form, I'd just like to know how to do it. What I'd like is a form where the user could enter their email address and it is sent to another specific email address.

    What I'd be using this for is to sign up people on my pre-existing mailing list. My mailing list is subscribe@blahblah.com Right now I have to hotlink the address and the user has to send an email. I'd like to make it so they enter their address, press the send button, and it's done. They get the confirmation email in their inbox.

    So, where do I find this code? Does it involve CGI? Thanks in advance.

  2. slambert
    Member
    Posted 8 years ago #

    Sorry about the grammer errors. I can actually write english, it's just later than I realized.

  3. Mark (podz)
    Support Maven
    Posted 8 years ago #

  4. slambert
    Member
    Posted 8 years ago #

    Thanks, but I believe that plugin creates a new email list? I have a list already that is run through my host. There's over 600 people on it right now, so I don't want to switch to a different system. But thanks.

  5. skippy
    Member
    Posted 8 years ago #

    It's not entirely clear to me what you're trying to do. What's wrong with asking people to send an email to the official list subscription address?

  6. slambert
    Member
    Posted 8 years ago #

    There's nothing wrong with asking them to send an email to the list subscription address, and that is my fall back plan. In fact, that's how I'm doing it now and have done it for years.

    However, I think it would be easier for people to enter their email into a form and press a button instead of having their mail program open & send a message. Plus, when they are actually sending an email, sometimes they write additional messages in the body, which I will never see. Ultimately, it's to make the process as simple as possible for the user.

    I'll admit I may be overly picky about how I want to do this. I just have a feeling that the code is already out there. If it's a pain, I can totally settle on asking people to send an email.

  7. sadish
    Member
    Posted 8 years ago #

    you can use this plugin.

    http://www.briangroce.com/software/wp-email-notification.html

    this one uses a table to store all the subscribers.

    you can create an empty table first and them import your 400 people into this table.

    and once you have done it, anytime u click on publish, it will send an email to all of them automatically.

    try it out !

  8. oriecat
    Member
    Posted 8 years ago #

    Could you modify the Contact Page plugin to do this?

  9. skippy
    Member
    Posted 8 years ago #

    It's trivial to write a PHP form to accept user input, and mail it somewhere. If you want the form to be the glue between the user's email address and your mailing list, this might help get you started:

    <?php
    $email = $_GET['email'];
    $headers = "From: $emailn";
    mail('mylist-subscribe@example.com', 'subscribe', 'subscribe', $headers);
    ?>

    Obviously you'd want to check the user input for safety. You could also use coffee2code's wpPHPmailer plugin to ensure that the mail actually gets sent "as" the user, instead of as your web server.

  10. slambert
    Member
    Posted 8 years ago #

    Skippy, Oriecat, these suggestions look promising. I will check them out in the coming days and post my results here. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic