WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
Function on Costume PHP Page (2 posts)

  1. Harris Marfel
    Member
    Posted 4 months ago #

    Hello,

    I usualy use function bellow to send email on my costume page.

    wp_mail($emailTo, $subject, $message, $headers);
    $emailSent = true;

    how do i call mandrill function to send email from costume page?
    should be like this?

    wpMandrill::mail($emailTo, $subject, $message, $headers);
    $emailSent = true;

    Thank You

    https://wordpress.org/plugins/wpmandrill/

  2. jcow
    Member
    Posted 3 months ago #

    I hope you figured this out, but it does say pretty clearly in the first paragraph on the plugin's description:

    It replaces the wp_mail function included with WordPress.

    So no need to change from wp_mail.

    Also, you could use this

    $emailSent = wp_mail($emailTo, $subject, $message, $headers);

    And then $emailSent would actually mean something.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.