Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Replacing available tokens before sending email, postponing only user…

… dependent ones
  • Loading branch information...
commit 925d5bceb3d5fa1ab0f5f979294108122b753768 1 parent 281d271
authored December 22, 2010

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  messaging_sendgrid.inc
4  messaging_sendgrid.inc
@@ -34,8 +34,10 @@ class Messaging_Sendgrid_Method extends Messaging_HTML_Mail_Method {
34 34
   function bulk_build($destinations, $message) {
35 35
     // Disable token replacement for message
36 36
     $template = $message->get_template();
  37
+    // We do token replacement with tokens for available objects (no user or destination)
  38
+    // But avoid to clear the ones that don't have a value yet
37 39
     $template->set_option('clear', FALSE);
38  
-    $template->set_option('replace', FALSE);
  40
+    //$template->set_option('replace', FALSE);
39 41
       
40 42
     // First build a message using the default mail as 'to' address
41 43
     $defaults = $this->default_params();

0 notes on commit 925d5bc

Please sign in to comment.
Something went wrong with that request. Please try again.