Hello,
I want to use the Bulk Mail example script but convert it to sendmail to a range of start with letters. For example: sendmail if records fetched Last_Name startswith A through L.
Example Bulk Email Code:
- emp = Employees[(age > input.age_1 && age < input.age_2)];
- users = "";
- for each x in emp
- {
- sendmail
- (
- To : x.Email
- From : zoho.adminuserid
- Subject : "welcome"
- Message : ""
- )
- users = users + " -------- " + x.Email;
- }
- info "mail sent to the following users :" + users;
I have tried everything I can think of but none of my scripts work. Do I need to convert the first letter to a number and then use greater than and less than comparison?
If so, how do I convert a letter to a number?
Thanks,
Bryan