|
-
Jan 13th, 2006, 10:44 AM
#1
Thread Starter
New Member
Help with reading an external file and using the information in my application
I have created an application that sends emailsto multiple recipients.
I use a connection to Outlook to send the mail.
All is working well except that everytime some peice of information changes such as email address or name i have to amend my code and recompile.
Also for every address that i want to send to i have to have a seperate procedure and at the end of each it calls the next one.
is there a way i can hold all the details (email address etc) in an external file (such as CSV or TXT) that the application can read in and during a looping process goes through the list until it reaches the end and then continues with the program.
The details i need in my external file are Shop number (5 digits eg 00011), Shop Name (upto 25 char eg Northcote Road) and Email Address (eg [email protected])
In each loop of the procedure the following changes: Shop Name, Shop Number, Email Address.
Any help would be greatly appreciated
Thanks
-
Jan 13th, 2006, 10:56 AM
#2
Re: Help with reading an external file and using the information in my application
-
Jan 13th, 2006, 11:11 AM
#3
Addicted Member
Re: Help with reading an external file and using the information in my application
Here is a possibly easier solution. Why not create Distribution Lists to cover who should receive the emails and then mail to that DL. You probably should still use a config file to define which DLs to send to, but if you send to DLs, you shouldn't even really need to modify anything in the config file very often.
Just my $.02
Steve
-
Jan 13th, 2006, 11:21 AM
#4
Thread Starter
New Member
Re: Help with reading an external file and using the information in my application
This would be ok if i was sending the same file to all address, but it is a different file for each address.
thanks anyway
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|