You've briefly described a process that will include many steps from finding contact records, composing a message for the email body, possibly creating PDF to attach to it and then sending out the actual mass email. At which point in this process do you need help?(Start with the first point where you get stuck and we'll start from there.)
A more detailed description of your tables and how they are related will help also.
I created a table for mailing. In this i made some buttons for selecting the group to mail, lfor instance persons who are inthe tabel/layout persons that are marked as friend of my company.
for now i turn it around, making the selection in persons, run my smtpit mailscript from there copying the mail layout in it as html.
This does'nt work yet eather, but seams more simple for now.
"doesn't work yet either" doesn't give me much to go on.
Does your button perform a script that successfully pulls up the group of records of the people you want to send the email?
If it does, can you manually do the steps for your mass mailing?
Assuming your script works to find your recipients, what is it that you need to do next?
Pull up/create a report to send to them? If so, what report and from what data in your system?
Note: I don't have the smtpit plug in so can't help you with that plug in if you decide to use it.
Reading your answer about doing it manually I thought of the answer. I hav to put a go to layout in the script.
I'm totally new at this but i'll learn some day.
one more thing,
When i write a script to select the records with option 1 and option 2 cheched, I get only the records with 1 and 2 checked.
how do i get records with 1 and/or 2 checked.?
To get an "or" find result, use a separate request for each set of criteria or extend your found set.
enter criteria for option 1
Select new request from the requests menu
enter criteria for option 2
Perform your find
A script can do the same thing by using New Record/Request while in find mode to create additional requests.
The other option is to enter find mode, specify criteria for option 1 and perform the find, then return to find mode specify criteria for option 2, but select 'extend found set' instead of 'perform find' so that the results of this second find are merged with those found by the first. Again, this can also be scripted.
Ok i've got a working scrip now exept for one little thing.
thefirst search is fine, but with a second search, the findings of the first are also still there. If i perform a select all records first and then search its fine, putting that in front of my search script should do the trick, but doesn't. what am I missing.
The current found set has no effect on the results produced by perform find.
Sounds like you are not useing perform find, but either extend found set or perform find/replace.
I found my mistake I started with a search wich i left empty and thereafter something like discard records (I use the dutch version so i don't know the exact scriptnames in english) to be sleft with no selected rcords. From there I use extend finds. so if i check one caracterisic to search for I get only these records.
Now i filled in the first search with something that wil at least give a view results and then after that leaving them out again. End of problem.
But why do that instead of just Perform Find?
I have contacts with a few selections say a b c
I have a mail script where i also can selact a b c
if i have script like if mail a is 1 perform search contacts with a is one
if b is 1 extend search contacts with b is 1
If i don't select a then i will do an extend search on all records, this does'nt work so I've got to start with no records selected at all. and do only extended searches.
OK, but a search with NO results would make more sense than performing a find for SOME results here...
If i do a search with no results i will get a warning, now i don't.
WIth Set Error Capture [on] There will be no dialog interrupting your script if no records are found. That's not to say you have to change your current script...