+ Start a Discussion

Method does not exist or incorrect signature: debugEmail.sendmail(String)

I am trying to send myself an email with debugging information inside a trigger and  I am trying to pass a debugging message to debugEmail.sendMail


In the  trigger code upon compiling at the "debugEmail.sendMail(msg)" statement I get the error message  "Method does not exist or incorrect signature: debugEmail.sendmail(String)".  What does this mean and how do I fix it?


Trigger code has statements


msg = 'delta' ;




as an Apex class I have the following:


public class debugEmail {
    public static void sendMail(String msg) {