Forums

wp_mail() versus PHP's mail()? (4 posts)

  1. Joe Hall
    Member
    Posted 2 years 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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    I think wp_mail() uses the default php mail() function.

  3. Joe Hall
    Member
    Posted 2 years ago #

    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?

  4. joehuffman2
    Member
    Posted 1 year ago #

    I think its because you can add other functions and variables that are inside WordPress without calling them. Like adding categories, tags etc.

Topic Closed

This topic has been closed to new replies.

About this Topic