Hello everyone, one final question...
Below is the standard code for sending an email at point of record entry to include the information of the record being added.
Dim dkeys
message =""
dkeys = dict.keys
For n = 0 To dict.Count-1
message = message & dkeys(n) & " : " & dict(dkeys(n)) & vbcrlf
Next
email="name@domain.com"
subject="Your Subject Here"
sendmail email, subject, message
What I would like to do and I dont know if it is possible is send email to different people based on one particular field in the submission table (called Call Log).
Eg In the call log table if the value for the field called Region is south australia then send an email to x@domain.com but if the region field is Victoria then it goes to y@domain.com and so on... I would need to do this for the following regions
Metro Melbourne
East Victoria
North Victoria
West Victoria
Tasmania
South Australia
Is this possible and if so how would I write the code for this.
Thanks folks for your help.
Speak soon
Mick.