Forums
Home / Plugins / wp_mail() versus PHP’s mail()?
(@redbmedia)
14 years, 8 months ago
What are the major differences between the wp_mail() function and PHP’s default mail() function?
I am currently creating a plugin that sends email and want to know which is the preferred method.
(@esmi)
I think wp_mail() uses the default php mail() function.
Yeah, I have read that else where, but then I ask myself, if that’s the case, then why does it exist?? I mean why create a function that does the exact same thing that the default does?
(@joehuffman2)
14 years, 5 months ago
I think its because you can add other functions and variables that are inside WordPress without calling them. Like adding categories, tags etc.