Jump to content

hector vox

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

hector vox's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The idea is that you click the link, and confirm that you want to aign up to a mailing list. I can tell that you're going to tell me that the whole method I'm using is wrong. So you click url/confirm?email=you@email.com, which Gets the email adress, signs you up and sends you another email with a little present for signing up. Thats my plan, but as you've probably guessed, I'm not exactly sure what I'm doing. Cheers for your time, Jimmy
  2. Thanks Ray, that's exactly what I needed. This validation thing, am I ok if I limit the lenght of the email? Thankks again, hector.
  3. I'll give that a go. What do you mean by check the email? Is it something to do with that little if at the end.
  4. Is it possible that I have specified the wrong format in the $header variable. I've tried a lot of solutions to this problem, but what ever I do I get the same result as described above. Or, am I doing something really stupid? I've spent a while staring at this one.
  5. Hello, I'm having a lot of difficulty getting HTML into an email. The link won't function in the email: <p> To confirm,  <a>click this link </a> </p>  is what appears in the email. I think it must be to do with the " or ' around the $body bit. tried various things, but  I can't make it work. Help! [code]<?php $headers ="From:newsletter@northavenspeakers.com\r\n"; $headers .="Reply-To:newsletter@northavenspeakers.com\r\n"; $headers .="Content-Type: text/html;\r\n charset=\"iso-8859-1\"\r\n"; if (isset( $_POST['submit'])) { $email = $_POST['email']; $body = ' <html> <head> <title> Subscription to Northaven Speakers Club </head> </head> <body> <P> You have subscribed to receive Northaven Speakers Club newsletter </P> <P> To confirm,  <a "href=www.thethingis.co.uk/speakers/confirm?email=?'.$email.'">click this link </a> </P> </body> </html>'; mail ($_POST['email'], "Subscribe to Northaven Speakers", $body, $headers); echo "trying to send something";     unset ( $_POST['submit'] ) ; }; ?>[/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.