wpMandrill::mail
-
Hi, I need a very quick consultation, I’m using the wpmandrill plugin for wordpress to send emails using a template that is on mandrill.
I’m using the following code:
wpMandrill::mail($to, $subject, $html, $headers = ”, $attachments = array(), $tags = array(), $from_name = ‘cursos edu2’, $from_email = ‘[email protected]’, $template_name = ‘bienvenida-dibujo’, $merge_vars = array( array(
‘rcpt’ => $to,
‘vars’ => array(
array( ‘name’ => ‘nombre’, ‘content’ => ‘pepito perez’ ),
array( ‘name’ => ‘lastname”, ‘content’ => $lastname ),
)
))
);and in mandrill theme am using {{nombre}} and {{lastname}} to insert the dynamic data. The mail is sent using the template but the {{name}} and {{lastname}} are not replaced on the mail for the variable data.
What I’m doing wrong?
- The topic ‘wpMandrill::mail’ is closed to new replies.