[guides] Fix method name inconsistency in a mailer example

[ci skip]
Merge pull request #18018 from yuki24/fix-method-name-inconsistency-in-mailer-example

[guides] Fix method name inconsistency in a mailer example