Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Iki

  1. Hi all, I've got this website where people who run online roleplaying games can post announcements that they are looking for players. It's all done automatically with PHP scripts that I wrote. What happens is, they submit their name, email, web site and announcement, and this information is stored in a MySQL database along with a unique numeric identifier (which I call their "key") assigned to that announcement. A confirmation email is then sent to them containing the "key" and they have to come back to the site and enter the "key" to approve their ad before it appears on the site. By requiring and checking the email addresses in this way, I get zero spam on the site, which is good. But, the game master's email addresses have to be included as part of their ad so interested players can contact them about joining their games. So basically, the site is full of valid email addresses... a spammer's dream come true. For every announcement posted, the site generates this "key", along with a randomly generated 15 digit alpha-numeric "code" which is stored in the database. This "key" and this "code" are only valid for 10 days - after 10 days an announcement is deleted from the site and the database. What I'd like is where their email is displayed on the site, if it said [key] @my domain .com, but when someone clicked that link to email them, if their real email would come up instead. I have no idea how to make that happen, where to start to looking for such a thing, or if it's even possible. Any ideas on where I can start? Thanks in advance, -Iki
  2. This is great news since I had need to run a script earlier this year that only works in PHP5, and so had to go to a different hosting company. Now I can once again be ALL TCH ALL THE TIME!! Whee!
  3. I'm no expert, but I did hear that the meta keywords tag is dead. I tend to visit Search Engine Watch for info on that sort of thing - most of it is a little over my head for my own personal sites, but some of it did come in handy for one I needed to show up on the engines. Search Engine Watch Good luck!
  4. I'm about to do this same thing, except I've got 7 virtual accounts and who knows how many databases. If I have the help desk transfer these 1 at a time (which is great advice, thanks!), I'm wondering what happens to the databases? I'm guessing the usernames/database names won't be the same as they are now, and that's going to completely disable most of the sites. Would it be better just to take a database backup of each site, have it transfered and then import the database myself?
  5. Perfect, thanks! The submitted code bits in the online manual are all waaaaaayyyy more complicated than I needed to get me started, and surprisingly the O'Reilly Programming PHP book doesn't even address fopen except from a security standpoint. Thanks again for the example!
  6. Hi all, Need some input on where to start with this. I've got a nightly CRON job set up that refers to a PHP file that goes through my database and deletes any entries that are over 10 days old. What I'd like it to do is write to a file how many entries were deleted. I'd like it to append the information to the end of the file so I'd have a running record of what was deleted each night. Eventually I'd like it to put today's date in the file, the titles of the entries over 10 days old, and then a confirmation line that those were deleted. For instance, I'd like the file to say something like: 2006-07-02: Entry Title1 Entry Title2 Entry Title3 Total of 3 entries deleted 2006-07-03: Entry Title4 Entry Title5 Total of 2 entries deleted 2006-07-04: Entry Title6 Entry Title7 Entry Title8 Entry Title9 Total of 4 entries deleted I can pull today's date and the entry titles that will be deleted out of the database, and then run the mysql delete command to get rid of them. I mean, I can set up the script to output this information in this format - what I'm not getting is how to send that information to a file. I'm guessing from my research so far I'll need to use fopen() to do it, but the examples I'm finding are WAY too complicated for my pea brain to process. Anyone got a sample SIMPLE fopen() example?
  7. Just a heads up - this DOES work. I did get an "undeliverable" email a couple days ago from someone's input. So it is coming back to me now. Thanks again!
  8. Excellent! Jumping off point, anyway. My return address was held in the variable $maili so it's: >mail($email, $subject, $message, $headers, "-f $maili"); or mail($email, $subject, $message, $headers, "-f$maili"); The space in there doesn't seem to matter, I get this either way. >Return-Path: <postings@pbem2.com> But putting that period in there gives me this in the headers: >Return-Path: <.postings@pbem2.com> If your return address isn't held in a variable, and say it's "return@me.com", you can just put it in there like this: >mail($email, $subject, $message, $headers, "-freturn@me.com"); and that works too. Either way, you're definitely going to need those quotes. Oh, have I mentioned this? ... I fired up this site last night and already have 5 or 6 people who aren't getting the emails... hopefully this will help them. Should have checked in here last night. (Although I can't help them with their spam filters or software... alas.) Many many thanks!
  9. I can't even remember where I got those headers now. *lol* When I first made this function I was just using the from, subject, to, and message body variables. And still, it botched the return path: >Return-Path: <nobody@server98.tchmachines.com> Received: from mxsf30.cluster1.charter.net ([]) by mtao02.charter.net (InterMail vM. 201-2131-123-105-20051025) with ESMTP id <20060427065837.KZGU4189.mtao02.charter.net@mxsf30.cluster1.charter.net> for <myemail@charter.net>; Thu, 27 Apr 2006 02:58:37 -0400 Received: from mxip09a.cluster1.charter.net (mxip09a.cluster1.charter.net []) by mxsf30.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id k3R6wILe016444 for <myemail@charter.net>; Thu, 27 Apr 2006 02:58:36 -0400 Received: from server98.tchmachines.com ([]) by mxip09a.cluster1.charter.net with ESMTP; 27 Apr 2006 02:58:32 -0400 X-IronPort-AV: i="4.04,160,1144036800"; d="scan'208"; a="60988341:sNHT22002374" Received: from nobody by server98.tchmachines.com with local (Exim 4.52) id 1FZ0Sv-0005yh-4k for myemail@charter.net; Thu, 27 Apr 2006 02:59:05 -0400 To: myemail@charter.net Subject: Your Game Posting Announcement Number From: nobody@pbem2.com Reply-To: nobody@pbem2.com X-Mailer: PHP/4.4.2 Message-Id: <E1FZ0Sv-0005yh-4k@server98.tchmachines.com> Date: Thu, 27 Apr 2006 02:59:05 -0400 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server98.tchmachines.com X-AntiAbuse: Original Domain - charter.net X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - server98.tchmachines.com X-Source: X-Source-Args: X-Source-Dir: I'd read somewhere that this "nobody" address was a spam trigger, so I went looking for some better headers in an attempt to stop the emails from going into people's spam folders. I'm thinking the "nobody@server98" thing is what happens when the email originates from PHP. You can reply to these emails, and they come back to me like they should. But bounced email must be going into a blackhole. And that's fine with me - I just don't want to wake up one day and find my TCH account suspended because of something to do with this mailer.
  10. You're probably right. But my headers aren't putting that in the email; it's being added somewhere along the line. I'm specifying the return path right in my headers, but that line never makes it into the actual headers. I just deleted the first header line (the blank one) and put the return path line at the very top and it still doesn't make it into the actual email headers. Oh well. Thanks for trying!
  11. I don't know where yours is, so I sent one to myself. Here's the headers: >Return-Path: <nobody@server98.tchmachines.com> Received: from mxsf41.cluster1.charter.net ([]) by mtao01.charter.net (InterMail vM. 201-2131-130-20051209) with ESMTP id <20060530220733.ISMG12200.mtao01.charter.net@mxsf41.cluster1.charter.net> for <myemail@charter.net>; Tue, 30 May 2006 18:07:33 -0400 Received: from mxip02a.cluster1.charter.net (mxip02a.cluster1.charter.net []) by mxsf41.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id k4UM7Bpm024035 for <myemail@charter.net>; Tue, 30 May 2006 18:07:31 -0400 Received: from server98.tchmachines.com ([]) by mxip02a.cluster1.charter.net with ESMTP; 30 May 2006 18:07:28 -0400 X-IronPort-AV: i="4.05,191,1146456000"; d="scan'208"; a="196301475:sNHT18154656" Received: from nobody by server98.tchmachines.com with local (Exim 4.52) id 1FlCN8-0007nO-F8 for myemail@charter.net; Tue, 30 May 2006 18:07:30 -0400 To: myemail@charter.net Subject: Key Code For Your Game Announcement X-Sender: myemail@charter.net <myemail@charter.net> From: "postings@pbem2.com" <postings@pbem2.com> Reply-To: "postings@pbem2.com" <postings@pbem2.com> Date: Tue, 30 May 2006 18:07:30 -0400 Message-ID: <20060530180730postings@www.pbem2.com> Subject: Key Code For Your Game Announcement Delivered-to: postings@pbem2.com <postings@pbem2.com> MIME-Version: 1.0 Content-type: text/plain;charset=ISO-8859-9 X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal X-Mailer: My Mailer With PHP! X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server98.tchmachines.com X-AntiAbuse: Original Domain - charter.net X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12] X-AntiAbuse: Sender Address Domain - server98.tchmachines.com X-Source: X-Source-Args: X-Source-Dir:
  12. You can go try it at http://www.pbem2.com/add_game.php just fill in garbage in the fields but use your correct email address. (Make sure there's something in all the fields or you'll get a little smackdown. Can I add a cc: to the headers so I get a copy eveytime it sends an email?
  13. You got spam filters? It might be in your trash.
  14. Sorry it took so long. Nap time for the night shift worker. Email is coming your way.
  15. Here's what I've got: >$maili = "postings@pbem2.com"; $subject = 'Key Code For Your Game Announcement'; $message = 'blah blah blah'; $message = wordwrap($message, 70); $headers=""; $headers .= "X-Sender: $email <$email>\n"; $headers .="From: $maili <$maili>\n"; $headers .= "Reply-To: $maili <$maili>\n"; $headers .= "Date: ".date("r")."\n"; $headers .= "Message-ID: <".date("YmdHis")."postings@".$_SERVER['SERVER_NAME'].">\n"; $headers .= "Subject: $subject\n"; $headers .= "Return-Path: $maili <$maili>\n"; $headers .= "Delivered-to: $maili <$maili>\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/plain;charset=ISO-8859-9\n"; $headers .= "X-Priority: 3\n"; $headers .= "Importance: Normal\n"; $headers .= "X-MSMail-Priority: Normal\n"; $headers .= "X-Mailer: My Mailer With PHP!\n"; mail($email, $subject, $message, $headers); Shouldn't the undeliverable stuff come back to the $maili address? Because it doesn't.
  16. I've got a custom site working where people fill out a form and an email is sent to them containing a "secret code" using php's mail() function. I was thinking about adding a regex check to see if the email address they entered is valid, but I'm torn. What do I care if the email they entered is valid or not? If it's not, all it means is they won't get the email, and I don't care if they ever get the email. I know the script works on several different emails - charter, gmail, yahoo, other TCH domains. If they can't get their secret code using an AOL account, all I've got to say is get yourself a REAL isp. We'll call the domain running this script domain1. Then I started thinking about the server; is something going to come back to the server? The return path and return address are valid - I have domain1 set up so any email sent to domain1 gets forwarded to me. But no matter what I put in the email field on the form, nothing ever comes back to me. I've also got domain2, and that's set up for :fail: if you send to an unrouted address. So earlier I used a non-existent domain2 address on the form, figuring I'd get something at one place or the other, right? I didn't get anything back at either domain1 or domain2. So what I'm wondering is, what happens to undeliverable email using php's mail() script? Does the server take a hit? I'm not seeing anything in my error logs. How do I tell?
  17. I've printed them out, studying them now. Thanks!
  18. I've got a question about this Ultimate Form Mail - I'm Q'ing up the upload right now and I notice there's a file in there called "contact.php". Isn't this what was just filtered out and then reinstated? So if the problem happens again, this script isn't going to work either, is it? Anybody know if there's a way to rename that file to something else? Something that won't get filtered the next time the spammers run amok? You know how those pesky spammers are... they never give up.
  19. Iki

    Mt 3.15

    It was a different dog. The dog in my avatar picture is Bebe the Amazing Bionic Pit Bull.
  20. Iki

    Mt 3.15

    No problem. I've done the same thing a million times... get all into the problem and get so frustrated I can't see the answer when it's staring me in the face. I hate when that happens. Good luck! -Iki
  21. Iki

    Mt 3.15

    It's not your PC. Your blog isn't in your root directory, that's why you can't see it. It's publishing to a directory called "mt". That's the software's default behavior; you didn't change the weblog configuration to put it in the root directory. That'd be step 5. Also, it shows up with no style because in your index template you're saying the stylesheet is located in your root directory, and it's not - it's probably also located under the "mt" directory because you didn't change the configuration. -Iki
  22. It seems to load alright for me. What's wrong with it again?
  23. Iki

    Mt 3.15

    Did you configure the weblog? Instructions for that are at http://www.movabletype.org/docs/mtmanual_w...fig.html#weblog configuration Usually the first things I do are: 1. Install the software 2. Login using the default Melody/Nelson login 3. Go change Melody/Nelson to what I want my username and password to be, via "Edit Your Profile" 4. Go to "Config Weblog" under the default blog "First Weblog" 5. Adjust the blog name to what I want and the paths to where I want the blog to show up 6. Set my local time 7. Click save at the bottom 8. Go to Preferences 9. Choose my preferences - default language, whether I'll allow comments or trackbacks, etc. 10. Click save at the bottom 11. Go to Archiving 12. Add Category archiving and make sure the box is checked 13. Click save at the bottom 14. Rebuild the blog using the "Rebuild Site" button on the lower left menu. And the blog (albeit empty) shows up. Did you do all those things? -Iki
  24. Iki

    Mt 3.15

    Hi, You have to rebuild the site in order for it to show up. -Iki
  • Create New...