WordPress.org

Ready to get started?Download WordPress

Forums

wpMandrill
Function on Costume PHP Page (2 posts)

  1. Harris Marfel
    Member
    Posted 1 year 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. Jupitercow
    Member
    Posted 11 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.