Jet-Black Posted January 29, 2008 Share Posted January 29, 2008 Hey, I am trying to write some code for a simple mailing list, but my host doesn't allow fopen and I am having a lot of trouble understanding cUrl. Are there any other alternatives, or is there someone who could break down how to rewrite my code using cUrl. ??? <?php $email = $_POST['email']; if( $email != '' ) echo $email; $myIF = 'mailinglist.txt' or die("couldnt openfile"); $fh = fopen($myIF, "a"); $stringData = "$email\n"; fwrite($fh, $stringData); fclose($fh); ?> Quote Link to comment https://forums.phpfreaks.com/topic/88331-a-simple-mailing-list/ Share on other sites More sharing options...
dlebowski Posted January 29, 2008 Share Posted January 29, 2008 I use dada mail. Works perfect. http://mojo.skazat.com/ Quote Link to comment https://forums.phpfreaks.com/topic/88331-a-simple-mailing-list/#findComment-452051 Share on other sites More sharing options...
Jet-Black Posted January 29, 2008 Author Share Posted January 29, 2008 Thats a great site, but I was really just trying to write a simple script to get something from a text box and add it to a list in a txt file. I dont really want or need all of that. Does anybody have any other suggestions or code samples? Quote Link to comment https://forums.phpfreaks.com/topic/88331-a-simple-mailing-list/#findComment-452269 Share on other sites More sharing options...
dlebowski Posted January 29, 2008 Share Posted January 29, 2008 That is essentially what this scrip does. I have it integrated into a couple of php sites. It generates the text box to add into your site. Let me know if you have other questions about it. I'd be happy to help. Quote Link to comment https://forums.phpfreaks.com/topic/88331-a-simple-mailing-list/#findComment-452545 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.