When executing perl code inside a provisioning module, when I got o use the mail utility function, how can I know to $to address that the admins have configured to be the vcl administrator e-mail address?

Thanks!
Brian


Brian Bouterse
NEXT Services
919.698.8796

On Oct 20, 2009, at 8:46 AM, Aaron Peeler wrote:

If you don't care about the message also going to the vcld.log file.

You can call the utils mail routine from any of the other modules.

mail($to,$subject,$mailstring, $from)

$from is optional

Aaron

--On October 19, 2009 5:12:55 PM -0400 Brian Bouterse <bmbou...@gmail.com > wrote:

As esxthin.pm manages the image library hosted on a NetApp storage
system, the module monitors for important events, and would like to
notify an administrator more pro-actively then logging it as a critical. Is there a VCL utility function, or existing example code which would be
able to send an e-mail to the VCL administrator?

This code would be a stop-gap until a more formal storage provisioning
architecture is worked out in the future.

Thanks,
Brian


Brian Bouterse
NEXT Services
919.698.8796





Reply via email to