PDA

Click to See Complete Forum and Search --> : read detail from notepad file


youngnoviceinneedofh
Mar 3rd, 2007, 10:54 AM
Hi, I have an email program, and i want it to take the address to send the email to from a notepad document on the server, because i want it to send multiple emails to all the addresses that are in the notepad file when send is clicked,
At the moment the email to send to has to be typed in, but i want to be able to send the same message to multiple email addresses, and have those addresses saved in the notepad file that i will have saved on the server, so maybe there are ten email addresses in the document, it sends an email to each of them.
Thanks
Alex

watson516
Mar 3rd, 2007, 11:35 AM
You could open the file and then explode the contents

youngnoviceinneedofh
Mar 3rd, 2007, 11:39 AM
little explanation needed please

watson516
Mar 3rd, 2007, 11:42 AM
little explanation needed please

fopen (http://ca.php.net/manual/en/function.fopen.php) opens the text file

explode (http://ca.php.net/manual/en/function.explode.php) creates an array of items in a list

penagate
Mar 3rd, 2007, 10:16 PM
What's a "notepad file"?