Nout - Zon Executive Posted February 8, 2011 Report Posted February 8, 2011 Hello there, We have a system where pilots can submit schedules that they wish to add to our databases. They are then validated and added by one of the admins. Given that I know the pilot's ID is there a built in function/class that will allow me to send the pilot an email with i.e. "Hi there, your schedule request was accepted and added" Of course, there is the long way of sending an email with PHP, but phpvms has so many built in features, I am wondering if a mailing feature is also present. Nout 1 Quote
Moderators mark1million Posted February 8, 2011 Moderators Report Posted February 8, 2011 Ha thats what i have its just a form with a auto responder it collects the pilot ID when he sends the form so i know who if needed to respond to, i suppose you could personally contact them but i find a responder is just fine. Quote
Guest lorathon Posted February 8, 2011 Report Posted February 8, 2011 Use the Util class Util::SendEmail($email, $subject, $message, $fromname='', $fromemail=''); You can even use a template as the message $message = Template::GetTemplate('email_template.tpl', true); So a simple code would be something like $pilot = PilotData::getPilotData($pilotid); $subject = 'Schedule Received'; $message = 'We received your schedule and an Administrator will review it and get back to you'; Util::SendEmail($pilot->email, $subject, $message); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.