WordPress.org

Ready to get started?Download WordPress

Forums

mail to wp_mail (2 posts)

  1. samhamilton81
    Member
    Posted 2 years ago #

    I'm using a theme which has it's own simple mail function (sendmail.php) for a built in contact form.

    How can I change this mail() function to use wp_mail()?

    I've tried simply swapping them over but no such luck.

    http://pastebin.com/Besqc32E

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  2. samhamilton81
    Member
    Posted 2 years ago #

    Looking at wp_mail() documentation I can't see why this doesn't work.

    http://codex.wordpress.org/Function_Reference/wp_mail

Topic Closed

This topic has been closed to new replies.

About this Topic