sendMail question

sendMail question

I have a field called input.Stakeholders in the active form.  It's selecting the names of stakeholders from "New Stakeholder" via a lookup.  I wish to get the email addresses associated and map them to the "to" field in the sendmail function.  Any help is greatly appreciated.

if(input.Job_Status  ==  "Shipped")
{
sendmail
[
from:zoho.adminuserid
to:(NEED HELP)
subject:"Job: " + input.Job_ + " has been shipped!"
message: "test"
content type:HTML
]
}