I tried this method
but don't work
Is there an error?
function mailremoveditem($item) {
osc_sendmail(array(
"username" => "*******@gmail.com",
"password" => "******",
"host" => "smtp.gmail.com",
"port" => "465",
"from" => "*******@gmail.com",
"to" => "*******@gmail.com",
"subject" => "Test Mail",
"body" => "This $item Is Deleted"
));
}
osc_add_hook('removed_item', 'mailremoveditem');