wpMandrill - Version 1.20

Version Description

  • ADDED: Mandrill's Privacy Policy and Terms of Use
  • FIXED: Sending more than one attachment was failing
  • FIXED: Doing a Ping call only when displaying the API Key on the settings page
  • ADDED: Support for Global Merge Vars, Per-Recipient Merge Vars, Google Analytics, and Meta Data in wpMandrill::mail()
  • FIXED: Logging error messages even if WP_DEBUG is false.
Download this release

Release Info

Developer MC_Will
Plugin Icon wp plugin wpMandrill
Version 1.20
Comparing to
See all releases

Code changes from version 1.12 to 1.20

lang/wpmandrill-es_ES.mo CHANGED
Binary file
lang/wpmandrill-es_ES.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: wpMandrill 1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-05-10 10:30-0500\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Will Castillo <will@mailchimp.com>\n"
8
  "Language-Team: Mandrill <will@mailchimp.com>\n"
@@ -116,220 +116,220 @@ msgstr "Para usarla, simplemente instancia un objeto pasándole una Clave API y
116
  msgid "&lt;?php $mandrill = Mandrill($my_api_key); echo $mandrill->ping(); ?&gt;"
117
  msgstr "&lt;?php $mandrill = Mandrill($my_api_key); echo $mandrill->ping(); ?&gt;"
118
 
119
- #: wpmandrill.php:94
120
  msgid "API Settings"
121
  msgstr "Configuración de la API"
122
 
123
- #: wpmandrill.php:95
124
  msgid "API Key"
125
  msgstr "Clave API"
126
 
127
- #: wpmandrill.php:101
128
  msgid "Sender Settings"
129
  msgstr "Configuración del Remitente"
130
 
131
- #: wpmandrill.php:102
132
  msgid "FROM Name"
133
  msgstr "Campo De:"
134
 
135
- #: wpmandrill.php:103
136
  msgid "FROM Email"
137
  msgstr "Campo Email:"
138
 
139
- #: wpmandrill.php:104
140
  msgid "Reply-To Email"
141
  msgstr "Dirección Reply-To"
142
 
143
- #: wpmandrill.php:107
144
  msgid "General Design"
145
  msgstr "Diseño General"
146
 
147
- #: wpmandrill.php:108
148
  msgid "Template"
149
  msgstr "Plantilla"
150
 
151
- #: wpmandrill.php:109
152
  msgid "Content"
153
  msgstr "Contenido"
154
 
155
- #: wpmandrill.php:112
156
  msgid "General Tags"
157
  msgstr "Etiquetas Generales"
158
 
159
- #: wpmandrill.php:113
160
  msgid "&nbsp;"
161
  msgstr "&nbsp;"
162
 
163
- #: wpmandrill.php:119
164
  msgid "Send a test email using these settings"
165
  msgstr "Enviar un correo electrónico de prueba usando estas configuraciones"
166
 
167
- #: wpmandrill.php:120
168
  msgid "Send to"
169
  msgstr "Enviar a"
170
 
171
- #: wpmandrill.php:121
172
  msgid "Subject"
173
  msgstr "Asunto"
174
 
175
- #: wpmandrill.php:122
176
  msgid "Message"
177
  msgstr "Mensaje"
178
 
179
- #: wpmandrill.php:134
180
- #: wpmandrill.php:256
181
  msgid "Mandrill Settings"
182
  msgstr "Configuración de Mandrill"
183
 
184
- #: wpmandrill.php:135
185
  msgid "Mandrill"
186
  msgstr "Mandrill"
187
 
188
- #: wpmandrill.php:143
189
- #: wpmandrill.php:144
190
  msgid "Mandrill Reports"
191
  msgstr "Reportes Mandrill"
192
 
193
- #: wpmandrill.php:166
 
 
 
 
194
  msgid "Mandrill: wp_mail has been declared by another process or plugin, so you won't be able to use Mandrill until the problem is solved."
195
  msgstr "Mandrill: wp?install ha sido declarado por otro proceso o plugin por lo que no podras usar Mandrill hasta que soluciones este inconveniente."
196
 
197
- #: wpmandrill.php:195
198
  msgid "To use this plugin you will need:"
199
  msgstr "Para utilizar este plugin necesitarás:"
200
 
201
- #: wpmandrill.php:197
202
  msgid "Your Mandrill account."
203
  msgstr "Tu cuenta Mandrill"
204
 
205
- #: wpmandrill.php:198
206
  msgid "At least one domain defined in your Mandrill account."
207
  msgstr "Mandrill: ¿Cómo decirle a WordPress que utilice wpMandrill?"
208
 
209
- #: wpmandrill.php:199
210
  msgid "A valid sender email address."
211
  msgstr "Una dirección de correo electrónico de remitente válido."
212
 
213
- #: wpmandrill.php:204
214
  msgid "Once you have properly configured the settings, the plugin will take care of all the emails sent through your WordPress installation."
215
  msgstr "Una vez que hayas completado la configuración, el plugin se hará cargo de todos los correos enviados a través de tu instalación WordPress."
216
 
217
- #: wpmandrill.php:205
218
  msgid "However, if you need to customize any part of the email before sending, you can do so by using the WordPress filter <strong>mandrill_payload</strong>."
219
  msgstr "De cualquier forma, si alguna vez necesitas alterar cualquier parte del email antes de que este sea enviado, lo podrás hacer utilizando el filtro WordPress <strong>mandrill_payload</strong>."
220
 
221
- #: wpmandrill.php:206
222
  msgid "This filter has the same structure as Mandrill's API call <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send\" target=\"_blank\">/messages/send</a>, except that it can have one additional parameter when the email is based on a template. The parameter is called \"<em>template</em>\", which is an associative array of two elements (the first element, a string whose key is \"<em>template_name</em>\", and a second parameter whose key is \"<em>template_content</em>\". Its value is an array with the same structure of the parameter \"<em>template_content</em>\" in the call <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send-template\" target=\"_blank\">/messages/send-template</a>.)"
223
  msgstr "Este filtro tiene la misma estructura de la llamada a la API de Mandrill <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send\" target=\"_blank\">/messages/send</a>, excepto que esta podría tener un parámetro adicional cuando el email está basado en una plantilla. El parametro se llama \"<em>template</em>\", el cual es un arreglo asociativo de dos elementos (el primero, una cadena de caracteres cuya clave es \"<em>template_name</em>\", y un segundo parámetro cuya clave es \"<em>template_content</em>\" y su valor es una arreglo con la misma estructura del parámetro \"<em>template_content</em>\" de la llamada <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send-template\" target=\"_blank\">/messages/send-template</a>.)"
224
 
225
- #: wpmandrill.php:207
226
  msgid "Note that if you're sending additional headers in your emails, the only valid headers are <em>From:</em>, <em>Reply-To:</em>, and <em>X-*:</em>. <em>Bcc:</em> is also valid, but Mandrill will send the blind carbon copy to only the first address, and the remaining will be silently discarted."
227
  msgstr "Ten en cuenta que si estás intentando enviar cabeceras adicionales en tus correos, las únicas cabeceras válidas serán <em>From:</em>, <em>Reply-To:</em> y <em>X-*:</em>. <em>Bcc:</em> también es válido, pero Mandrill sólo enviará la copia oculta a la primera dirección, descartando silenciosamente el resto de las direcciones especificadas en el campo Bcc: que envíes."
228
 
229
- #: wpmandrill.php:208
230
  msgid "Also note that if any error occurs while sending the email, the plugin will try to send the message again using the native WordPress mailing capabilities."
231
  msgstr "También ten presente que si ocurre cualquier error durante el envío del correo, el plugin intentará enviar el mensaje otra vez, utilizando las capacidades de envío de correo nativas de WordPress."
232
 
233
- #: wpmandrill.php:209
234
- msgid "Confirm that any change you made to the payload is in line with the <a href=\"http://mandrillapp.com/api/docs/\" target=\"_blank\">Mandrill's API's documentation</a>. Also, the <em>X-*:</em> headers, must be in line with the <a href=\"http://help.mandrill.com/customer/portal/articles/456744-smtp-headers-api\" target=\"_blank\">SMTP API documentation</a>. By using this plugin, you agree that you and your website will adhere to <a href=\"http://mandrill.com/legal/terms/\" target=\"_blank\">Mandrill's Terms of Use</a>."
235
- msgstr "Asegúrate que cualquier cambio que hagas en el payload esté cónsono con la <a href=\"http://mandrillapp.com/api/docs/\" target=\"_blank\">Documentacion de la API de Mandrill</a>. También, las cabeceras <em>X-*:</em> deben estar en línea con la <a href=\"http://help.mandrill.com/customer/portal/articles/456744-smtp-headers-api\" target=\"_blank\">Documentación de la API SMTP</a>. Al utilizar este plugin estás aceptando adherirte tu y tu sitio web a los <a href=\"http://mandrill.com/legal/terms/\" target=\"_blank\">Términos y Condiciones de Mandrill</a>."
236
 
237
- #: wpmandrill.php:210
238
  msgid "if you have any question about Mandrill or this plugin, visit the <a href=\"http://help.mandrill.com/\" target=\"_blank\">Mandrill's Support Center</a>."
239
  msgstr "Si tienes alguna pregunta sobre mandrill o este plugin, visita el <a href=\"http://help.mandrill.com/\" target=\"_blank\">Centro de Soporte de Mandrill</a>."
240
 
241
- #: wpmandrill.php:228
242
  msgid "Settings"
243
  msgstr "Configuraciones"
244
 
245
- #: wpmandrill.php:231
246
  msgid "Reports"
247
  msgstr "Reportes"
248
 
249
- #: wpmandrill.php:247
250
  #: stats.php:1
251
  msgid "You do not have sufficient permissions to access this page."
252
  msgstr "No tienes suficiente permisología para acceder a esta página."
253
 
254
- #: wpmandrill.php:277
255
- msgid "Send Email"
256
- msgstr "Campo Email:"
257
-
258
  #: wpmandrill.php:295
 
 
 
 
259
  msgid "Latest from Mandrill..."
260
  msgstr "Lo último de Mandrill..."
261
 
262
- #: wpmandrill.php:309
263
  msgid "News from MailChimp..."
264
  msgstr "Noticias de MailChimp"
265
 
266
- #: wpmandrill.php:336
267
  msgid "Mandrill How-Tos"
268
  msgstr "Mandrill: ¿Cómo hago?"
269
 
270
- #: wpmandrill.php:363
271
  msgid "You must define a valid sender email."
272
  msgstr "Debes definir un correo electrónico de remitente válido."
273
 
274
- #: wpmandrill.php:643
275
- msgid "Test email send failed. "
276
  msgstr "El correo electrónico de prueba falló."
277
 
278
- #: wpmandrill.php:660
279
  #, php-format
280
  msgid "Test executed: %d emails sent, %d emails queued and %d emails rejected"
281
  msgstr "Prueba ejecutada: %d emails enviados, %d emails encolados y %d emails rechazados"
282
 
283
- #: wpmandrill.php:675
284
  msgid "To get your API key, please visit your <a href=\"http://mandrillapp.com/settings/index\" target=\"_blank\">Mandrill Settings</a>"
285
  msgstr "Para obtener tu Clave API, por favor visita tu <a href=\"http://mandrillapp.com/settings/index\" target=\"_blank\">Configuración Mandrill</a>"
286
 
287
- #: wpmandrill.php:677
288
- msgid "We are connected to your Mandrill Account."
289
- msgstr "Estamos conectados a tu cuenta Mandrill."
290
-
291
- #: wpmandrill.php:679
292
- msgid "Sorry, invalid API key."
293
  msgstr "Lo siento, Clave API inválida."
294
 
295
- #: wpmandrill.php:695
296
  msgid "No domains found."
297
  msgstr "No se encontraros dominios."
298
 
299
- #: wpmandrill.php:707
300
  msgid "This address will be used as the sender of the outgoing emails:"
301
  msgstr "Esta dirección será utilizada como el remitente para los correos salientes:"
302
 
303
- #: wpmandrill.php:713
304
  msgid "If you need to add a new domain, please visit your <a href=\"https://mandrillapp.com/settings/sending-domains\" target=\"_blank\">Mandrill Settings</a>"
305
  msgstr "Si necesita agregar un nuevo dominio, por favor visita tu <a href=\"https://mandrillapp.com/settings/sending-domains\" target=\"_blank\">Configuracipón Mandrill</a>"
306
 
307
- #: wpmandrill.php:723
308
  msgid "Name the recipients will see in their email clients:"
309
  msgstr "Nombre que los destinatarios verán en sus clientes de correo:"
310
 
311
- #: wpmandrill.php:735
312
  msgid "This address will be used as the recipient where replies from the users will be sent to:"
313
  msgstr "Esta dirección será utilizada como el destinatario a donde irán las respuestas de los remitentes:"
314
 
315
- #: wpmandrill.php:737
316
  msgid "Leave blank to use the FROM Email. If you want to override this setting, you must use the <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em> WordPress filter."
317
  msgstr "Deja en blanco para usar el Campo Email. Si quisieras cambiar esta configuración para casos particulares, deberás usar el filtro WordPress <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em>."
318
 
319
- #: wpmandrill.php:746
320
- #: wpmandrill.php:756
321
  msgid "No templates found."
322
  msgstr "No se encontraron plantillas."
323
 
324
- #: wpmandrill.php:765
325
  msgid "Select the template to use:"
326
  msgstr "Seleccione la plantilla a utilizar:"
327
 
328
- #: wpmandrill.php:771
329
  msgid "<small>The selected template must have a <strong><em>mc:edit=\"main\"</em></strong> placeholder defined. The message will be shown there.</small>"
330
  msgstr "<small>La plantilla seleccionada debe tener una sección <strong><em>mc:edit=\"main\"</em></strong> definida. El mensaje será mostrado ahí.</small>"
331
 
332
- #: wpmandrill.php:780
333
  msgid ""
334
  "Replace all line feeds (\"\\n"
335
  "\") by &lt;br/&gt; in the message body?"
@@ -337,259 +337,263 @@ msgstr ""
337
  "Reemplazar todas las Nuevas Líneas (\"\n"
338
  "\") por <br/> en el cuerpo del mensaje?"
339
 
340
- #: wpmandrill.php:782
341
  msgid "<small>If you are sending HTML emails already keep this setting deactivated.<br/>But if you are sending text only emails (WordPress default) this option might help your emails look better.</small>"
342
  msgstr "<small>Si ya estás enviando correos HTML mantén esta opción desactivada.<br/>Pero si estás enviando correos de solo texto (forma predeterminada de WordPress) esta opción podría ayudarte a que los correos se vean mejor.</small>"
343
 
344
- #: wpmandrill.php:791
345
  msgid "If there are tags that you want appended to every call, list them here, one per line:"
346
  msgstr "Si hay etiquetas que quieras agregar a cada llamada, lístalas aquí, una por línea."
347
 
348
- #: wpmandrill.php:793
349
  msgid "Also keep in mind that you can add or remove tags using the <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em> WordPress filter."
350
  msgstr "También recuerda que puedes agregar o eliminar etiquetas utilizando el filtro WordPress <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em>."
351
 
352
- #: wpmandrill.php:1017
353
  msgid "Mandrill Recent Statistics"
354
  msgstr "Estadistas Recientes de Mandrill"
355
 
356
- #: wpmandrill.php:1102
357
- #: wpmandrill.php:1357
358
  msgid "Sending Volume"
359
  msgstr "Volumen de Envío"
360
 
361
- #: wpmandrill.php:1103
362
- #: wpmandrill.php:1358
363
  msgid " emails"
364
  msgstr " emails"
365
 
366
- #: wpmandrill.php:1104
367
- #: wpmandrill.php:1359
368
  msgid "Total Volume per Day"
369
  msgstr "Volumen Total por Período"
370
 
371
- #: wpmandrill.php:1106
372
- #: wpmandrill.php:1361
373
  msgid "in the last few days"
374
  msgstr "en los últimos días"
375
 
376
- #: wpmandrill.php:1107
377
- #: wpmandrill.php:1362
378
  msgid "in the last few months"
379
  msgstr "en los últimos meses"
380
 
381
- #: wpmandrill.php:1108
382
- #: wpmandrill.php:1363
383
  msgid "Today"
384
  msgstr "Hoy"
385
 
386
- #: wpmandrill.php:1109
387
- #: wpmandrill.php:1364
388
  msgid "Last 7 Days"
389
  msgstr "Últimos 7 Días"
390
 
391
- #: wpmandrill.php:1110
392
- #: wpmandrill.php:1365
393
  msgid "Last 30 Days"
394
  msgstr "Últimos 30 Días"
395
 
396
- #: wpmandrill.php:1111
397
- #: wpmandrill.php:1366
398
  msgid "Last 60 Days"
399
  msgstr "Últimos 60 Días"
400
 
401
- #: wpmandrill.php:1112
402
- #: wpmandrill.php:1367
403
  msgid "Last 90 Days"
404
  msgstr "Últimos 90 Días"
405
 
406
- #: wpmandrill.php:1113
407
- #: wpmandrill.php:1368
408
  msgid "Periods"
409
  msgstr "Períodos"
410
 
411
- #: wpmandrill.php:1114
412
- #: wpmandrill.php:1369
413
- #: stats.php:30
414
  msgid "Volume"
415
  msgstr "Volumen"
416
 
417
- #: wpmandrill.php:1115
418
- #: wpmandrill.php:1370
419
  msgid "Total:"
420
  msgstr "Cuota:"
421
 
422
- #: wpmandrill.php:1116
423
- #: wpmandrill.php:1371
424
  msgid "Unopened"
425
  msgstr "No abiertos"
426
 
427
- #: wpmandrill.php:1117
428
- #: wpmandrill.php:1372
429
  msgid "Bounced or Rejected"
430
  msgstr "Rebotes o Rechazos"
431
 
432
- #: wpmandrill.php:1118
433
- #: wpmandrill.php:1373
434
  msgid "Opened"
435
  msgstr "Abiertos"
436
 
437
- #: wpmandrill.php:1121
438
- #: wpmandrill.php:1376
439
  msgid "Average Sending Volume"
440
  msgstr "Volumen de Envío Promedio"
441
 
442
- #: wpmandrill.php:1122
443
- #: wpmandrill.php:1377
444
  msgid "/day"
445
  msgstr "/día"
446
 
447
- #: wpmandrill.php:1123
448
- #: wpmandrill.php:1378
449
  msgid "Average Volume per Day"
450
  msgstr "Volumen Promedio por Período"
451
 
452
- #: wpmandrill.php:1260
453
- #: stats.php:8
454
  msgid "There was a problem retrieving statistics."
455
  msgstr "Hubo un problema recuperando las estadísticas."
456
 
457
- #: wpmandrill.php:1289
458
- #: stats.php:57
459
  msgid "Filter by:"
460
  msgstr "Filtrar por:"
461
 
462
- #: wpmandrill.php:1291
463
- #: stats.php:59
464
  msgid "No filter"
465
  msgstr "Sin Filtro"
466
 
467
- #: wpmandrill.php:1292
468
- #: stats.php:60
469
  msgid "Sender:"
470
  msgstr "Remitente:"
471
 
472
- #: wpmandrill.php:1299
473
- #: stats.php:67
474
  msgid "Tag:"
475
  msgstr "Etiqueta:"
476
 
477
- #: wpmandrill.php:1307
478
- #: stats.php:80
479
  msgid "Display:"
480
  msgstr "Mostrar:"
481
 
482
- #: wpmandrill.php:1309
483
- #: stats.php:82
484
  msgid "Total Volume per Period"
485
  msgstr "Volumen Total por Período"
486
 
487
- #: wpmandrill.php:1310
488
- #: stats.php:83
489
  msgid "Average Volume per Period"
490
  msgstr "Volumen Promedio por Período"
491
 
492
- #: stats.php:4
493
  msgid "Mandrill Service Report"
494
  msgstr "Reporte del Servicio Mandrill"
495
 
496
- #: stats.php:20
497
  msgid "Hourly Sending Volume and Open/Click Rate"
498
  msgstr "Volumen de Envío y Tasa de Apertura y Cliqueo Por Horas"
499
 
500
- #: stats.php:21
501
  msgid "Hours"
502
  msgstr "Horas"
503
 
504
- #: stats.php:22
505
  msgid "Hour"
506
  msgstr "Hora"
507
 
508
- #: stats.php:24
509
  msgid "Daily Sending Volume and Open/Click Rate"
510
  msgstr "Volumen de Envío y Tasa de Apertura y Cliqueo Diario"
511
 
512
- #: stats.php:25
513
  msgid "Days"
514
  msgstr "Días"
515
 
516
- #: stats.php:26
517
  msgid "Day"
518
  msgstr "Día"
519
 
520
- #: stats.php:28
521
  msgid "in the last 30 days"
522
  msgstr "en los últimos 30 días"
523
 
524
- #: stats.php:29
525
  msgid "Open & Click Rate"
526
  msgstr "Tasa de Apertura y Cliqueo"
527
 
528
- #: stats.php:31
529
  msgid "emails"
530
  msgstr "emails"
531
 
532
- #: stats.php:32
533
  msgid "Open Rate"
534
  msgstr "Tasa de Apertura"
535
 
536
- #: stats.php:33
537
  msgid "Click Rate"
538
  msgstr "Tasa de Cliqueo"
539
 
540
- #: stats.php:37
541
  #, php-format
542
  msgid "All-time statistics since %s: "
543
  msgstr "Estadísticas desde %s:"
544
 
545
- #: stats.php:40
546
  msgid "Reputation:"
547
  msgstr "Reputación:"
548
 
549
- #: stats.php:41
550
  msgid "Quota:"
551
  msgstr "Cuota:"
552
 
553
- #: stats.php:41
554
  msgid "sends/hour"
555
  msgstr "envíos/hora"
556
 
557
- #: stats.php:42
558
  msgid "Emails sent:"
559
  msgstr "Correos enviados:"
560
 
561
- #: stats.php:43
562
  msgid "Emails delivered:"
563
  msgstr "Correos entregados:"
564
 
565
- #: stats.php:44
566
  msgid "Tracked opens:"
567
  msgstr "Aperturas registradas:"
568
 
569
- #: stats.php:45
570
  msgid "Tracked clicks:"
571
  msgstr "Clicks registrados:"
572
 
573
- #: stats.php:47
574
  msgid "Rejects:"
575
  msgstr "Rechazos:"
576
 
577
- #: stats.php:48
578
  msgid "Complaints:"
579
  msgstr "Quejas:"
580
 
581
- #: stats.php:49
582
  msgid "Current backlog:"
583
  msgstr "Backlog actual:"
584
 
585
- #: stats.php:56
586
  msgid "Filtered statistics:"
587
  msgstr "Estadísticas filtradas:"
588
 
589
- #: stats.php:358
590
  msgid "For more detailed statistics, please visit your Mandrill Dashboard"
591
  msgstr "Para estadísticas más detalladas, por favor visita tu Tablero Mandrill"
592
 
 
 
 
 
593
  #~ msgid "At least one verified domain."
594
  #~ msgstr "Al menos un dominio verificado."
595
  #~ msgid "Mandrill Test"
2
  msgstr ""
3
  "Project-Id-Version: wpMandrill 1.0\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-08-07 12:04-0500\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: Will Castillo <will@mailchimp.com>\n"
8
  "Language-Team: Mandrill <will@mailchimp.com>\n"
116
  msgid "&lt;?php $mandrill = Mandrill($my_api_key); echo $mandrill->ping(); ?&gt;"
117
  msgstr "&lt;?php $mandrill = Mandrill($my_api_key); echo $mandrill->ping(); ?&gt;"
118
 
119
+ #: wpmandrill.php:98
120
  msgid "API Settings"
121
  msgstr "Configuración de la API"
122
 
123
+ #: wpmandrill.php:99
124
  msgid "API Key"
125
  msgstr "Clave API"
126
 
127
+ #: wpmandrill.php:105
128
  msgid "Sender Settings"
129
  msgstr "Configuración del Remitente"
130
 
131
+ #: wpmandrill.php:106
132
  msgid "FROM Name"
133
  msgstr "Campo De:"
134
 
135
+ #: wpmandrill.php:107
136
  msgid "FROM Email"
137
  msgstr "Campo Email:"
138
 
139
+ #: wpmandrill.php:108
140
  msgid "Reply-To Email"
141
  msgstr "Dirección Reply-To"
142
 
143
+ #: wpmandrill.php:111
144
  msgid "General Design"
145
  msgstr "Diseño General"
146
 
147
+ #: wpmandrill.php:112
148
  msgid "Template"
149
  msgstr "Plantilla"
150
 
151
+ #: wpmandrill.php:113
152
  msgid "Content"
153
  msgstr "Contenido"
154
 
155
+ #: wpmandrill.php:116
156
  msgid "General Tags"
157
  msgstr "Etiquetas Generales"
158
 
159
+ #: wpmandrill.php:117
160
  msgid "&nbsp;"
161
  msgstr "&nbsp;"
162
 
163
+ #: wpmandrill.php:123
164
  msgid "Send a test email using these settings"
165
  msgstr "Enviar un correo electrónico de prueba usando estas configuraciones"
166
 
167
+ #: wpmandrill.php:124
168
  msgid "Send to"
169
  msgstr "Enviar a"
170
 
171
+ #: wpmandrill.php:125
172
  msgid "Subject"
173
  msgstr "Asunto"
174
 
175
+ #: wpmandrill.php:126
176
  msgid "Message"
177
  msgstr "Mensaje"
178
 
179
+ #: wpmandrill.php:138
180
+ #: wpmandrill.php:274
181
  msgid "Mandrill Settings"
182
  msgstr "Configuración de Mandrill"
183
 
184
+ #: wpmandrill.php:139
185
  msgid "Mandrill"
186
  msgstr "Mandrill"
187
 
188
+ #: wpmandrill.php:147
189
+ #: wpmandrill.php:148
190
  msgid "Mandrill Reports"
191
  msgstr "Reportes Mandrill"
192
 
193
+ #: wpmandrill.php:171
194
+ msgid "<strong>wpMandrill is activated!</strong> Each site on your network must be connected individually by an admin on that site."
195
+ msgstr "<strong>wpMandrill está activado!</strong> Cada sitio en tu red debe ser conectado manualmente por su administrador."
196
+
197
+ #: wpmandrill.php:179
198
  msgid "Mandrill: wp_mail has been declared by another process or plugin, so you won't be able to use Mandrill until the problem is solved."
199
  msgstr "Mandrill: wp?install ha sido declarado por otro proceso o plugin por lo que no podras usar Mandrill hasta que soluciones este inconveniente."
200
 
201
+ #: wpmandrill.php:210
202
  msgid "To use this plugin you will need:"
203
  msgstr "Para utilizar este plugin necesitarás:"
204
 
205
+ #: wpmandrill.php:212
206
  msgid "Your Mandrill account."
207
  msgstr "Tu cuenta Mandrill"
208
 
209
+ #: wpmandrill.php:213
210
  msgid "At least one domain defined in your Mandrill account."
211
  msgstr "Mandrill: ¿Cómo decirle a WordPress que utilice wpMandrill?"
212
 
213
+ #: wpmandrill.php:214
214
  msgid "A valid sender email address."
215
  msgstr "Una dirección de correo electrónico de remitente válido."
216
 
217
+ #: wpmandrill.php:219
218
  msgid "Once you have properly configured the settings, the plugin will take care of all the emails sent through your WordPress installation."
219
  msgstr "Una vez que hayas completado la configuración, el plugin se hará cargo de todos los correos enviados a través de tu instalación WordPress."
220
 
221
+ #: wpmandrill.php:220
222
  msgid "However, if you need to customize any part of the email before sending, you can do so by using the WordPress filter <strong>mandrill_payload</strong>."
223
  msgstr "De cualquier forma, si alguna vez necesitas alterar cualquier parte del email antes de que este sea enviado, lo podrás hacer utilizando el filtro WordPress <strong>mandrill_payload</strong>."
224
 
225
+ #: wpmandrill.php:221
226
  msgid "This filter has the same structure as Mandrill's API call <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send\" target=\"_blank\">/messages/send</a>, except that it can have one additional parameter when the email is based on a template. The parameter is called \"<em>template</em>\", which is an associative array of two elements (the first element, a string whose key is \"<em>template_name</em>\", and a second parameter whose key is \"<em>template_content</em>\". Its value is an array with the same structure of the parameter \"<em>template_content</em>\" in the call <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send-template\" target=\"_blank\">/messages/send-template</a>.)"
227
  msgstr "Este filtro tiene la misma estructura de la llamada a la API de Mandrill <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send\" target=\"_blank\">/messages/send</a>, excepto que esta podría tener un parámetro adicional cuando el email está basado en una plantilla. El parametro se llama \"<em>template</em>\", el cual es un arreglo asociativo de dos elementos (el primero, una cadena de caracteres cuya clave es \"<em>template_name</em>\", y un segundo parámetro cuya clave es \"<em>template_content</em>\" y su valor es una arreglo con la misma estructura del parámetro \"<em>template_content</em>\" de la llamada <a href=\"http://mandrillapp.com/api/docs/messages.html#method=send-template\" target=\"_blank\">/messages/send-template</a>.)"
228
 
229
+ #: wpmandrill.php:222
230
  msgid "Note that if you're sending additional headers in your emails, the only valid headers are <em>From:</em>, <em>Reply-To:</em>, and <em>X-*:</em>. <em>Bcc:</em> is also valid, but Mandrill will send the blind carbon copy to only the first address, and the remaining will be silently discarted."
231
  msgstr "Ten en cuenta que si estás intentando enviar cabeceras adicionales en tus correos, las únicas cabeceras válidas serán <em>From:</em>, <em>Reply-To:</em> y <em>X-*:</em>. <em>Bcc:</em> también es válido, pero Mandrill sólo enviará la copia oculta a la primera dirección, descartando silenciosamente el resto de las direcciones especificadas en el campo Bcc: que envíes."
232
 
233
+ #: wpmandrill.php:223
234
  msgid "Also note that if any error occurs while sending the email, the plugin will try to send the message again using the native WordPress mailing capabilities."
235
  msgstr "También ten presente que si ocurre cualquier error durante el envío del correo, el plugin intentará enviar el mensaje otra vez, utilizando las capacidades de envío de correo nativas de WordPress."
236
 
237
+ #: wpmandrill.php:224
238
+ msgid "Confirm that any change you made to the payload is in line with the <a href=\"http://mandrillapp.com/api/docs/\" target=\"_blank\">Mandrill's API's documentation</a>. Also, the <em>X-*:</em> headers, must be in line with the <a href=\"http://help.mandrill.com/forums/20689696-smtp-integration\" target=\"_blank\">SMTP API documentation</a>. By using this plugin, you agree that you and your website will adhere to <a href=\"http://www.mandrill.com/terms/\" target=\"_blank\">Mandrill's Terms of Use</a> and <a href=\"http://mandrill.com/privacy/\" target=\"_blank\">Privacy Policy</a>."
239
+ msgstr "Asegúrate que cualquier cambio que hagas en el payload esté cónsono con la <a href=\"http://mandrillapp.com/api/docs/\" target=\"_blank\">Documentacion de la API de Mandrill</a>. También, las cabeceras <em>X-*:</em> deben estar en línea con la <a href=\"http://help.mandrill.com/forums/20689696-smtp-integration\" target=\"_blank\">Documentación de la API SMTP</a>. Al utilizar este plugin estás aceptando adherirte tu y tu sitio web a los <a href=\"http://www.mandrill.com/terms/\" target=\"_blank\">Términos y Condiciones de Mandrill</a> así como con su <a href=\"http://mandrill.com/privacy/\" target=\"_blank\">Política de Privacidad</a>."
240
 
241
+ #: wpmandrill.php:225
242
  msgid "if you have any question about Mandrill or this plugin, visit the <a href=\"http://help.mandrill.com/\" target=\"_blank\">Mandrill's Support Center</a>."
243
  msgstr "Si tienes alguna pregunta sobre mandrill o este plugin, visita el <a href=\"http://help.mandrill.com/\" target=\"_blank\">Centro de Soporte de Mandrill</a>."
244
 
245
+ #: wpmandrill.php:243
246
  msgid "Settings"
247
  msgstr "Configuraciones"
248
 
249
+ #: wpmandrill.php:246
250
  msgid "Reports"
251
  msgstr "Reportes"
252
 
253
+ #: wpmandrill.php:262
254
  #: stats.php:1
255
  msgid "You do not have sufficient permissions to access this page."
256
  msgstr "No tienes suficiente permisología para acceder a esta página."
257
 
 
 
 
 
258
  #: wpmandrill.php:295
259
+ msgid "Send Test"
260
+ msgstr "Enviar Prueba"
261
+
262
+ #: wpmandrill.php:313
263
  msgid "Latest from Mandrill..."
264
  msgstr "Lo último de Mandrill..."
265
 
266
+ #: wpmandrill.php:327
267
  msgid "News from MailChimp..."
268
  msgstr "Noticias de MailChimp"
269
 
270
+ #: wpmandrill.php:356
271
  msgid "Mandrill How-Tos"
272
  msgstr "Mandrill: ¿Cómo hago?"
273
 
274
+ #: wpmandrill.php:385
275
  msgid "You must define a valid sender email."
276
  msgstr "Debes definir un correo electrónico de remitente válido."
277
 
278
+ #: wpmandrill.php:660
279
+ msgid "Test failed. "
280
  msgstr "El correo electrónico de prueba falló."
281
 
282
+ #: wpmandrill.php:677
283
  #, php-format
284
  msgid "Test executed: %d emails sent, %d emails queued and %d emails rejected"
285
  msgstr "Prueba ejecutada: %d emails enviados, %d emails encolados y %d emails rechazados"
286
 
287
+ #: wpmandrill.php:692
288
  msgid "To get your API key, please visit your <a href=\"http://mandrillapp.com/settings/index\" target=\"_blank\">Mandrill Settings</a>"
289
  msgstr "Para obtener tu Clave API, por favor visita tu <a href=\"http://mandrillapp.com/settings/index\" target=\"_blank\">Configuración Mandrill</a>"
290
 
291
+ #: wpmandrill.php:700
292
+ msgid "Sorry. Invalid API key."
 
 
 
 
293
  msgstr "Lo siento, Clave API inválida."
294
 
295
+ #: wpmandrill.php:717
296
  msgid "No domains found."
297
  msgstr "No se encontraros dominios."
298
 
299
+ #: wpmandrill.php:729
300
  msgid "This address will be used as the sender of the outgoing emails:"
301
  msgstr "Esta dirección será utilizada como el remitente para los correos salientes:"
302
 
303
+ #: wpmandrill.php:735
304
  msgid "If you need to add a new domain, please visit your <a href=\"https://mandrillapp.com/settings/sending-domains\" target=\"_blank\">Mandrill Settings</a>"
305
  msgstr "Si necesita agregar un nuevo dominio, por favor visita tu <a href=\"https://mandrillapp.com/settings/sending-domains\" target=\"_blank\">Configuracipón Mandrill</a>"
306
 
307
+ #: wpmandrill.php:745
308
  msgid "Name the recipients will see in their email clients:"
309
  msgstr "Nombre que los destinatarios verán en sus clientes de correo:"
310
 
311
+ #: wpmandrill.php:757
312
  msgid "This address will be used as the recipient where replies from the users will be sent to:"
313
  msgstr "Esta dirección será utilizada como el destinatario a donde irán las respuestas de los remitentes:"
314
 
315
+ #: wpmandrill.php:759
316
  msgid "Leave blank to use the FROM Email. If you want to override this setting, you must use the <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em> WordPress filter."
317
  msgstr "Deja en blanco para usar el Campo Email. Si quisieras cambiar esta configuración para casos particulares, deberás usar el filtro WordPress <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em>."
318
 
319
+ #: wpmandrill.php:770
320
+ #: wpmandrill.php:780
321
  msgid "No templates found."
322
  msgstr "No se encontraron plantillas."
323
 
324
+ #: wpmandrill.php:789
325
  msgid "Select the template to use:"
326
  msgstr "Seleccione la plantilla a utilizar:"
327
 
328
+ #: wpmandrill.php:795
329
  msgid "<small>The selected template must have a <strong><em>mc:edit=\"main\"</em></strong> placeholder defined. The message will be shown there.</small>"
330
  msgstr "<small>La plantilla seleccionada debe tener una sección <strong><em>mc:edit=\"main\"</em></strong> definida. El mensaje será mostrado ahí.</small>"
331
 
332
+ #: wpmandrill.php:804
333
  msgid ""
334
  "Replace all line feeds (\"\\n"
335
  "\") by &lt;br/&gt; in the message body?"
337
  "Reemplazar todas las Nuevas Líneas (\"\n"
338
  "\") por <br/> en el cuerpo del mensaje?"
339
 
340
+ #: wpmandrill.php:806
341
  msgid "<small>If you are sending HTML emails already keep this setting deactivated.<br/>But if you are sending text only emails (WordPress default) this option might help your emails look better.</small>"
342
  msgstr "<small>Si ya estás enviando correos HTML mantén esta opción desactivada.<br/>Pero si estás enviando correos de solo texto (forma predeterminada de WordPress) esta opción podría ayudarte a que los correos se vean mejor.</small>"
343
 
344
+ #: wpmandrill.php:815
345
  msgid "If there are tags that you want appended to every call, list them here, one per line:"
346
  msgstr "Si hay etiquetas que quieras agregar a cada llamada, lístalas aquí, una por línea."
347
 
348
+ #: wpmandrill.php:817
349
  msgid "Also keep in mind that you can add or remove tags using the <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em> WordPress filter."
350
  msgstr "También recuerda que puedes agregar o eliminar etiquetas utilizando el filtro WordPress <em><a href=\"#\" onclick=\"jQuery('a#contextual-help-link').trigger('click');return false;\">mandrill_payload</a></em>."
351
 
352
+ #: wpmandrill.php:1043
353
  msgid "Mandrill Recent Statistics"
354
  msgstr "Estadistas Recientes de Mandrill"
355
 
356
+ #: wpmandrill.php:1130
357
+ #: wpmandrill.php:1387
358
  msgid "Sending Volume"
359
  msgstr "Volumen de Envío"
360
 
361
+ #: wpmandrill.php:1131
362
+ #: wpmandrill.php:1388
363
  msgid " emails"
364
  msgstr " emails"
365
 
366
+ #: wpmandrill.php:1132
367
+ #: wpmandrill.php:1389
368
  msgid "Total Volume per Day"
369
  msgstr "Volumen Total por Período"
370
 
371
+ #: wpmandrill.php:1134
372
+ #: wpmandrill.php:1391
373
  msgid "in the last few days"
374
  msgstr "en los últimos días"
375
 
376
+ #: wpmandrill.php:1135
377
+ #: wpmandrill.php:1392
378
  msgid "in the last few months"
379
  msgstr "en los últimos meses"
380
 
381
+ #: wpmandrill.php:1136
382
+ #: wpmandrill.php:1393
383
  msgid "Today"
384
  msgstr "Hoy"
385
 
386
+ #: wpmandrill.php:1137
387
+ #: wpmandrill.php:1394
388
  msgid "Last 7 Days"
389
  msgstr "Últimos 7 Días"
390
 
391
+ #: wpmandrill.php:1138
392
+ #: wpmandrill.php:1395
393
  msgid "Last 30 Days"
394
  msgstr "Últimos 30 Días"
395
 
396
+ #: wpmandrill.php:1139
397
+ #: wpmandrill.php:1396
398
  msgid "Last 60 Days"
399
  msgstr "Últimos 60 Días"
400
 
401
+ #: wpmandrill.php:1140
402
+ #: wpmandrill.php:1397
403
  msgid "Last 90 Days"
404
  msgstr "Últimos 90 Días"
405
 
406
+ #: wpmandrill.php:1141
407
+ #: wpmandrill.php:1398
408
  msgid "Periods"
409
  msgstr "Períodos"
410
 
411
+ #: wpmandrill.php:1142
412
+ #: wpmandrill.php:1399
413
+ #: stats.php:31
414
  msgid "Volume"
415
  msgstr "Volumen"
416
 
417
+ #: wpmandrill.php:1143
418
+ #: wpmandrill.php:1400
419
  msgid "Total:"
420
  msgstr "Cuota:"
421
 
422
+ #: wpmandrill.php:1144
423
+ #: wpmandrill.php:1401
424
  msgid "Unopened"
425
  msgstr "No abiertos"
426
 
427
+ #: wpmandrill.php:1145
428
+ #: wpmandrill.php:1402
429
  msgid "Bounced or Rejected"
430
  msgstr "Rebotes o Rechazos"
431
 
432
+ #: wpmandrill.php:1146
433
+ #: wpmandrill.php:1403
434
  msgid "Opened"
435
  msgstr "Abiertos"
436
 
437
+ #: wpmandrill.php:1149
438
+ #: wpmandrill.php:1406
439
  msgid "Average Sending Volume"
440
  msgstr "Volumen de Envío Promedio"
441
 
442
+ #: wpmandrill.php:1150
443
+ #: wpmandrill.php:1407
444
  msgid "/day"
445
  msgstr "/día"
446
 
447
+ #: wpmandrill.php:1151
448
+ #: wpmandrill.php:1408
449
  msgid "Average Volume per Day"
450
  msgstr "Volumen Promedio por Período"
451
 
452
+ #: wpmandrill.php:1290
453
+ #: stats.php:9
454
  msgid "There was a problem retrieving statistics."
455
  msgstr "Hubo un problema recuperando las estadísticas."
456
 
457
+ #: wpmandrill.php:1319
458
+ #: stats.php:58
459
  msgid "Filter by:"
460
  msgstr "Filtrar por:"
461
 
462
+ #: wpmandrill.php:1321
463
+ #: stats.php:60
464
  msgid "No filter"
465
  msgstr "Sin Filtro"
466
 
467
+ #: wpmandrill.php:1322
468
+ #: stats.php:61
469
  msgid "Sender:"
470
  msgstr "Remitente:"
471
 
472
+ #: wpmandrill.php:1329
473
+ #: stats.php:68
474
  msgid "Tag:"
475
  msgstr "Etiqueta:"
476
 
477
+ #: wpmandrill.php:1337
478
+ #: stats.php:81
479
  msgid "Display:"
480
  msgstr "Mostrar:"
481
 
482
+ #: wpmandrill.php:1339
483
+ #: stats.php:83
484
  msgid "Total Volume per Period"
485
  msgstr "Volumen Total por Período"
486
 
487
+ #: wpmandrill.php:1340
488
+ #: stats.php:84
489
  msgid "Average Volume per Period"
490
  msgstr "Volumen Promedio por Período"
491
 
492
+ #: stats.php:5
493
  msgid "Mandrill Service Report"
494
  msgstr "Reporte del Servicio Mandrill"
495
 
496
+ #: stats.php:21
497
  msgid "Hourly Sending Volume and Open/Click Rate"
498
  msgstr "Volumen de Envío y Tasa de Apertura y Cliqueo Por Horas"
499
 
500
+ #: stats.php:22
501
  msgid "Hours"
502
  msgstr "Horas"
503
 
504
+ #: stats.php:23
505
  msgid "Hour"
506
  msgstr "Hora"
507
 
508
+ #: stats.php:25
509
  msgid "Daily Sending Volume and Open/Click Rate"
510
  msgstr "Volumen de Envío y Tasa de Apertura y Cliqueo Diario"
511
 
512
+ #: stats.php:26
513
  msgid "Days"
514
  msgstr "Días"
515
 
516
+ #: stats.php:27
517
  msgid "Day"
518
  msgstr "Día"
519
 
520
+ #: stats.php:29
521
  msgid "in the last 30 days"
522
  msgstr "en los últimos 30 días"
523
 
524
+ #: stats.php:30
525
  msgid "Open & Click Rate"
526
  msgstr "Tasa de Apertura y Cliqueo"
527
 
528
+ #: stats.php:32
529
  msgid "emails"
530
  msgstr "emails"
531
 
532
+ #: stats.php:33
533
  msgid "Open Rate"
534
  msgstr "Tasa de Apertura"
535
 
536
+ #: stats.php:34
537
  msgid "Click Rate"
538
  msgstr "Tasa de Cliqueo"
539
 
540
+ #: stats.php:38
541
  #, php-format
542
  msgid "All-time statistics since %s: "
543
  msgstr "Estadísticas desde %s:"
544
 
545
+ #: stats.php:41
546
  msgid "Reputation:"
547
  msgstr "Reputación:"
548
 
549
+ #: stats.php:42
550
  msgid "Quota:"
551
  msgstr "Cuota:"
552
 
553
+ #: stats.php:42
554
  msgid "sends/hour"
555
  msgstr "envíos/hora"
556
 
557
+ #: stats.php:43
558
  msgid "Emails sent:"
559
  msgstr "Correos enviados:"
560
 
561
+ #: stats.php:44
562
  msgid "Emails delivered:"
563
  msgstr "Correos entregados:"
564
 
565
+ #: stats.php:45
566
  msgid "Tracked opens:"
567
  msgstr "Aperturas registradas:"
568
 
569
+ #: stats.php:46
570
  msgid "Tracked clicks:"
571
  msgstr "Clicks registrados:"
572
 
573
+ #: stats.php:48
574
  msgid "Rejects:"
575
  msgstr "Rechazos:"
576
 
577
+ #: stats.php:49
578
  msgid "Complaints:"
579
  msgstr "Quejas:"
580
 
581
+ #: stats.php:50
582
  msgid "Current backlog:"
583
  msgstr "Backlog actual:"
584
 
585
+ #: stats.php:57
586
  msgid "Filtered statistics:"
587
  msgstr "Estadísticas filtradas:"
588
 
589
+ #: stats.php:359
590
  msgid "For more detailed statistics, please visit your Mandrill Dashboard"
591
  msgstr "Para estadísticas más detalladas, por favor visita tu Tablero Mandrill"
592
 
593
+ #~ msgid "Send Email"
594
+ #~ msgstr "Campo Email:"
595
+ #~ msgid "We are connected to your Mandrill Account."
596
+ #~ msgstr "Estamos conectados a tu cuenta Mandrill."
597
  #~ msgid "At least one verified domain."
598
  #~ msgstr "Al menos un dominio verificado."
599
  #~ msgid "Mandrill Test"
lib/mandrill.class.php CHANGED
@@ -10,7 +10,7 @@ class Mandrill {
10
  var $output;
11
 
12
  // PHP 4.0
13
- function Mandrill() { $this->__construct(); }
14
 
15
  // PHP 5.0
16
  function __construct($api) {
@@ -530,7 +530,7 @@ class Mandrill {
530
  if ( !function_exists('get_magic_quotes') ) {
531
  function get_magic_quotes() { return false; }
532
  }
533
- if ( !function_exists('st_magic_quotes') ) {
534
  function set_magic_quotes($value) { return true;}
535
  }
536
 
10
  var $output;
11
 
12
  // PHP 4.0
13
+ function Mandrill($api) { $this->__construct($api); }
14
 
15
  // PHP 5.0
16
  function __construct($api) {
530
  if ( !function_exists('get_magic_quotes') ) {
531
  function get_magic_quotes() { return false; }
532
  }
533
+ if ( !function_exists('set_magic_quotes') ) {
534
  function set_magic_quotes($value) { return true;}
535
  }
536
 
readme.txt CHANGED
@@ -83,6 +83,13 @@ If your account has more than 20 senders registered or more than 40 tags used, t
83
 
84
  == Changelog ==
85
 
 
 
 
 
 
 
 
86
  = 1.12 =
87
  * FIXED: Issue with the CSS declaration of the RSS icon displayed on the settings page. ** Thanks Nicholas Ciske! **
88
  * FIXED: Highcharts' Exporting module not loaded for dashboard widget
83
 
84
  == Changelog ==
85
 
86
+ = 1.20 =
87
+ * ADDED: Mandrill's Privacy Policy and Terms of Use
88
+ * FIXED: Sending more than one attachment was failing
89
+ * FIXED: Doing a Ping call only when displaying the API Key on the settings page
90
+ * ADDED: Support for Global Merge Vars, Per-Recipient Merge Vars, Google Analytics, and Meta Data in wpMandrill::mail()
91
+ * FIXED: Logging error messages even if WP_DEBUG is false.
92
+
93
  = 1.12 =
94
  * FIXED: Issue with the CSS declaration of the RSS icon displayed on the settings page. ** Thanks Nicholas Ciske! **
95
  * FIXED: Highcharts' Exporting module not loaded for dashboard widget
wpmandrill.php CHANGED
@@ -5,7 +5,7 @@ Description: wpMandrill sends emails, generated by WordPress using Mandrill.
5
  Author: Mandrill
6
  Author URI: http://mandrillapp.com/
7
  Plugin URI: http://connect.mailchimp.com/integrations/wpmandrill
8
- Version: 1.12
9
  Text Domain: wpmandrill
10
  */
11
  /* Copyright 2012 MailChimp (email : will@mailchimp.com )
@@ -181,7 +181,7 @@ class wpMandrill {
181
  }
182
 
183
  static function showAdminEnqueueScripts($hook_suffix) {
184
- if( $hook_suffix == self::$report && self::isReady() ) {
185
  wp_register_script('mandrill-report-theme', plugins_url("js/themes/gray.js", __FILE__), array(''), null, true);
186
  wp_register_script('mandrill-report-script', plugins_url("js/mandrill.js", __FILE__), array('highcharts'), null, true);
187
  wp_register_script('mandrill-report-export', plugins_url("js/modules/exporting.js", __FILE__), array('highcharts'), null, true);
@@ -221,7 +221,7 @@ class wpMandrill {
221
  . '<p>' . __('This filter has the same structure as Mandrill\'s API call <a href="http://mandrillapp.com/api/docs/messages.html#method=send" target="_blank">/messages/send</a>, except that it can have one additional parameter when the email is based on a template. The parameter is called "<em>template</em>", which is an associative array of two elements (the first element, a string whose key is "<em>template_name</em>", and a second parameter whose key is "<em>template_content</em>". Its value is an array with the same structure of the parameter "<em>template_content</em>" in the call <a href="http://mandrillapp.com/api/docs/messages.html#method=send-template" target="_blank">/messages/send-template</a>.)', self::WPDOMAIN).'</p>'
222
  . '<p>' . __('Note that if you\'re sending additional headers in your emails, the only valid headers are <em>From:</em>, <em>Reply-To:</em>, and <em>X-*:</em>. <em>Bcc:</em> is also valid, but Mandrill will send the blind carbon copy to only the first address, and the remaining will be silently discarted.', self::WPDOMAIN).'</p>'
223
  . '<p>' . __('Also note that if any error occurs while sending the email, the plugin will try to send the message again using the native WordPress mailing capabilities.', self::WPDOMAIN).'</p>'
224
- . '<p>' . __('Confirm that any change you made to the payload is in line with the <a href="http://mandrillapp.com/api/docs/" target="_blank">Mandrill\'s API\'s documentation</a>. Also, the <em>X-*:</em> headers, must be in line with the <a href="http://help.mandrill.com/customer/portal/articles/456744-smtp-headers-api" target="_blank">SMTP API documentation</a>. By using this plugin, you agree that you and your website will adhere to <a href="http://mailchimp.com/legal/terms/" target="_blank">Mandrill\'s Terms of Use</a>.', self::WPDOMAIN).'</p>'
225
  . '<p>' . __('if you have any question about Mandrill or this plugin, visit the <a href="http://help.mandrill.com/" target="_blank">Mandrill\'s Support Center</a>.', self::WPDOMAIN).'</p>'
226
  ;
227
  }
@@ -242,7 +242,7 @@ class wpMandrill {
242
 
243
  $settings = array('settings' => '<a href="options-general.php?page=wpmandrill">' . __('Settings', self::WPDOMAIN) . '</a>');
244
 
245
- if ( self::isReady() ) {
246
  $report = array('report' => '<a href="index.php?page=wpmandrill-reports">' . __('Reports', self::WPDOMAIN) . '</a>');
247
  $actions = array_merge($settings, $actions, $report);
248
  } else {
@@ -292,7 +292,7 @@ class wpMandrill {
292
  <?php do_settings_sections('wpmandrill-test'); ?>
293
  </div>
294
 
295
- <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e('Send Email', self::WPDOMAIN) ?>" /></p>
296
  </form>
297
  <?php } ?>
298
 
@@ -433,32 +433,18 @@ jQuery(document).bind( 'ready', function() {
433
  return $default;
434
  }
435
 
436
- /**
437
- * @return boolean
438
- */
439
- static function isReady() {
440
- return isset(self::$mandrill);
441
- }
442
-
443
  /**
444
  * @return boolean
445
  */
446
  static function isConnected() {
447
- $result = false;
448
-
449
- if ( self::isReady() ) {
450
- try {
451
- $result = ( self::$mandrill->users_ping() == 'PONG!' );
452
- } catch ( Exception $e ) {}
453
- }
454
- return $result;
455
  }
456
 
457
  static function getConnected() {
458
  if ( !isset(self::$mandrill) ) {
459
  try {
460
  require_once( plugin_dir_path( __FILE__ ) . '/lib/mandrill.class.php');
461
- wpMandrill::$mandrill = new Mandrill( self::getAPIKey() );
462
  } catch ( Exception $e ) {}
463
  }
464
  }
@@ -611,17 +597,13 @@ jQuery(document).bind( 'ready', function() {
611
  static function listVerifiedDomains() {
612
  self::getConnected();
613
 
614
- if ( !self::isConnected() ) return array();
 
 
 
 
 
615
 
616
- $domains = self::$mandrill->senders_domains();
617
- if ( is_wp_error($domains) || empty($domains) ) return false;
618
- /*
619
- foreach ( $domains as $index => $domain ) {
620
- if ( !$domains[$index]['is_enabled'] ) {
621
- unset($domains[$index]);
622
- }
623
- }
624
- */
625
  return array_values($domains);
626
  }
627
 
@@ -709,8 +691,12 @@ jQuery(document).bind( 'ready', function() {
709
  if ( empty($api_key) ) {
710
  ?><br/><span class="setting-description"><small><em><?php _e('To get your API key, please visit your <a href="http://mandrillapp.com/settings/index" target="_blank">Mandrill Settings</a>', self::WPDOMAIN); ?></em></small></span><?php
711
  } else {
 
 
712
  wpMandrill::getConnected();
713
- if ( !wpMandrill::isConnected() ) {
 
 
714
  ?><br/><span class="setting-description"><small><em><?php _e('Sorry. Invalid API key.', self::WPDOMAIN); ?></em></small></span><?php
715
  }
716
  }
@@ -1663,16 +1649,46 @@ JS;
1663
  * @param string $from_name the name to use in the From field of the message
1664
  * @param string $from_email a valid email address to use with this account
1665
  * @param string $template_name a valid template name for the account
 
 
 
 
 
 
 
 
 
1666
  * @return array|WP_Error
1667
  */
1668
- static function mail( $to, $subject, $html, $headers = '', $attachments = array(), $tags = array(), $from_name = '', $from_email = '', $template_name = '' ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1669
  try {
1670
- $message = compact('html', 'text', 'subject', 'from_name', 'from_email', 'to', 'headers', 'attachments');
1671
- return self::sendEmail($message, $tags, $template_name);
 
 
 
 
 
 
 
 
1672
  } catch ( Exception $e ) {
1673
- if ( defined('WP_DEBUG') && WP_DEBUG !== false ) {
1674
- error_log( "\nwpMandrill::mail: Exception Caught => ".$e->getMessage()."\n" );
1675
- }
1676
  return new WP_Error( $e->getMessage() );
1677
  }
1678
  }
@@ -1681,9 +1697,8 @@ JS;
1681
  * @return boolean
1682
  */
1683
  static function wp_mail_native( $to, $subject, $message, $headers = '', $attachments = array() ) {
1684
- if ( defined('WP_DEBUG') && WP_DEBUG !== false ) {
1685
- error_log( "\nwpMandrill::wp_mail_native: $to ($subject)\n" );
1686
- }
1687
  require plugin_dir_path( __FILE__ ) . '/legacy/function.wp_mail.php';
1688
  }
1689
 
@@ -1857,9 +1872,7 @@ JS;
1857
  }
1858
 
1859
  } catch ( Exception $e) {
1860
- if ( defined('WP_DEBUG') && WP_DEBUG !== false ) {
1861
- error_log( "\nwpMandrill::sendEmail: Exception Caught => ".$e->getMessage()."\n" );
1862
- }
1863
  return new WP_Error( $e->getMessage() );
1864
  }
1865
  }
@@ -1872,10 +1885,8 @@ JS;
1872
  try {
1873
  $attachments[$index] = Mandrill::getAttachmentStruct($attachment);
1874
  } catch ( Exception $e ) {
1875
- if ( defined('WP_DEBUG') && WP_DEBUG !== false ) {
1876
- error_log( "\nwpMandrill::processAttachments: $attachment => ".$e->getMessage()."\n" );
1877
- }
1878
- return new WP_Error( $e->getMessage() );
1879
  }
1880
  }
1881
 
5
  Author: Mandrill
6
  Author URI: http://mandrillapp.com/
7
  Plugin URI: http://connect.mailchimp.com/integrations/wpmandrill
8
+ Version: 1.20
9
  Text Domain: wpmandrill
10
  */
11
  /* Copyright 2012 MailChimp (email : will@mailchimp.com )
181
  }
182
 
183
  static function showAdminEnqueueScripts($hook_suffix) {
184
+ if( $hook_suffix == self::$report && self::isConnected() ) {
185
  wp_register_script('mandrill-report-theme', plugins_url("js/themes/gray.js", __FILE__), array(''), null, true);
186
  wp_register_script('mandrill-report-script', plugins_url("js/mandrill.js", __FILE__), array('highcharts'), null, true);
187
  wp_register_script('mandrill-report-export', plugins_url("js/modules/exporting.js", __FILE__), array('highcharts'), null, true);
221
  . '<p>' . __('This filter has the same structure as Mandrill\'s API call <a href="http://mandrillapp.com/api/docs/messages.html#method=send" target="_blank">/messages/send</a>, except that it can have one additional parameter when the email is based on a template. The parameter is called "<em>template</em>", which is an associative array of two elements (the first element, a string whose key is "<em>template_name</em>", and a second parameter whose key is "<em>template_content</em>". Its value is an array with the same structure of the parameter "<em>template_content</em>" in the call <a href="http://mandrillapp.com/api/docs/messages.html#method=send-template" target="_blank">/messages/send-template</a>.)', self::WPDOMAIN).'</p>'
222
  . '<p>' . __('Note that if you\'re sending additional headers in your emails, the only valid headers are <em>From:</em>, <em>Reply-To:</em>, and <em>X-*:</em>. <em>Bcc:</em> is also valid, but Mandrill will send the blind carbon copy to only the first address, and the remaining will be silently discarted.', self::WPDOMAIN).'</p>'
223
  . '<p>' . __('Also note that if any error occurs while sending the email, the plugin will try to send the message again using the native WordPress mailing capabilities.', self::WPDOMAIN).'</p>'
224
+ . '<p>' . __('Confirm that any change you made to the payload is in line with the <a href="http://mandrillapp.com/api/docs/" target="_blank">Mandrill\'s API\'s documentation</a>. Also, the <em>X-*:</em> headers, must be in line with the <a href="http://help.mandrill.com/forums/20689696-smtp-integration" target="_blank">SMTP API documentation</a>. By using this plugin, you agree that you and your website will adhere to <a href="http://www.mandrill.com/terms/" target="_blank">Mandrill\'s Terms of Use</a> and <a href="http://mandrill.com/privacy/" target="_blank">Privacy Policy</a>.', self::WPDOMAIN).'</p>'
225
  . '<p>' . __('if you have any question about Mandrill or this plugin, visit the <a href="http://help.mandrill.com/" target="_blank">Mandrill\'s Support Center</a>.', self::WPDOMAIN).'</p>'
226
  ;
227
  }
242
 
243
  $settings = array('settings' => '<a href="options-general.php?page=wpmandrill">' . __('Settings', self::WPDOMAIN) . '</a>');
244
 
245
+ if ( self::isConnected() ) {
246
  $report = array('report' => '<a href="index.php?page=wpmandrill-reports">' . __('Reports', self::WPDOMAIN) . '</a>');
247
  $actions = array_merge($settings, $actions, $report);
248
  } else {
292
  <?php do_settings_sections('wpmandrill-test'); ?>
293
  </div>
294
 
295
+ <p class="submit"><input type="submit" name="Submit" class="button-primary" value="<?php _e('Send Test', self::WPDOMAIN) ?>" /></p>
296
  </form>
297
  <?php } ?>
298
 
433
  return $default;
434
  }
435
 
 
 
 
 
 
 
 
436
  /**
437
  * @return boolean
438
  */
439
  static function isConnected() {
440
+ return isset(self::$mandrill);
 
 
 
 
 
 
 
441
  }
442
 
443
  static function getConnected() {
444
  if ( !isset(self::$mandrill) ) {
445
  try {
446
  require_once( plugin_dir_path( __FILE__ ) . '/lib/mandrill.class.php');
447
+ self::$mandrill = new Mandrill( self::getAPIKey() );
448
  } catch ( Exception $e ) {}
449
  }
450
  }
597
  static function listVerifiedDomains() {
598
  self::getConnected();
599
 
600
+ try {
601
+ $domains = self::$mandrill->senders_domains();
602
+ if ( empty($domains) ) throw new Exception('No Domains');
603
+ } catch ( Exception $e ) {
604
+ return array();
605
+ }
606
 
 
 
 
 
 
 
 
 
 
607
  return array_values($domains);
608
  }
609
 
691
  if ( empty($api_key) ) {
692
  ?><br/><span class="setting-description"><small><em><?php _e('To get your API key, please visit your <a href="http://mandrillapp.com/settings/index" target="_blank">Mandrill Settings</a>', self::WPDOMAIN); ?></em></small></span><?php
693
  } else {
694
+ $api_is_valid = false;
695
+
696
  wpMandrill::getConnected();
697
+ if ( wpMandrill::isConnected() ) $api_is_valid = ( wpMandrill::$mandrill->users_ping() == 'PONG!' );
698
+
699
+ if ( !$api_is_valid ) {
700
  ?><br/><span class="setting-description"><small><em><?php _e('Sorry. Invalid API key.', self::WPDOMAIN); ?></em></small></span><?php
701
  }
702
  }
1649
  * @param string $from_name the name to use in the From field of the message
1650
  * @param string $from_email a valid email address to use with this account
1651
  * @param string $template_name a valid template name for the account
1652
+ * @param boolean $track_opens whether or not to track opens for the email
1653
+ * @param boolean $track_clicks whether or not to track clicks for the email
1654
+ * @param boolean $url_strip_qs whether or not to strip the query string from URLs when aggregating tracked URL data
1655
+ * @param boolean $merge whether to evaluate merge tags in the message. Will automatically be set to true if either merge_vars or global_merge_vars are provided.
1656
+ * @param array $global_merge_vars Global merge variables to use for all recipients. You can override these per recipient.
1657
+ * @param array $merge_vars Per-recipient merge variables, which override global merge variables with the same name.
1658
+ * @param array $google_analytics_domains An array of strings indicating for which any matching URLs will automatically have Google Analytics parameters appended to their query string automatically.
1659
+ * @param array|string $google_analytics_campaign Optional string indicating the value to set for the utm_campaign tracking parameter. If this isn't provided the email's from address will be used instead.
1660
+ * @param array $meta_data Associative array of user metadata. Mandrill will store this metadata and make it available for retrieval. In addition, you can select up to 10 metadata fields to index and make searchable using the Mandrill search api.
1661
  * @return array|WP_Error
1662
  */
1663
+ static function mail( $to, $subject, $html, $headers = '', $attachments = array(),
1664
+ $tags = array(),
1665
+ $from_name = '',
1666
+ $from_email = '',
1667
+ $template_name = '',
1668
+ $track_opens = true,
1669
+ $track_clicks = true,
1670
+ $url_strip_qs = false,
1671
+ $merge = true,
1672
+ $global_merge_vars = array(),
1673
+ $merge_vars = array(),
1674
+ $google_analytics_domains = array(),
1675
+ $google_analytics_campaign = array(),
1676
+ $meta_data = array()
1677
+
1678
+ ) {
1679
  try {
1680
+ $message = compact('html', 'text', 'subject', 'from_name', 'from_email', 'to', 'headers', 'attachments',
1681
+ 'url_strip_qs',
1682
+ 'merge',
1683
+ 'global_merge_vars',
1684
+ 'merge_vars',
1685
+ 'google_analytics_domains',
1686
+ 'google_analytics_campaign',
1687
+ 'meta_data'
1688
+ );
1689
+ return self::sendEmail($message, $tags, $template_name, $track_opens, $track_clicks);
1690
  } catch ( Exception $e ) {
1691
+ error_log( "\nwpMandrill::mail: Exception Caught => ".$e->getMessage()."\n" );
 
 
1692
  return new WP_Error( $e->getMessage() );
1693
  }
1694
  }
1697
  * @return boolean
1698
  */
1699
  static function wp_mail_native( $to, $subject, $message, $headers = '', $attachments = array() ) {
1700
+ error_log( "\nwpMandrill::wp_mail_native: $to ($subject)\n" );
1701
+
 
1702
  require plugin_dir_path( __FILE__ ) . '/legacy/function.wp_mail.php';
1703
  }
1704
 
1872
  }
1873
 
1874
  } catch ( Exception $e) {
1875
+ error_log( "\nwpMandrill::sendEmail: Exception Caught => ".$e->getMessage()."\n" );
 
 
1876
  return new WP_Error( $e->getMessage() );
1877
  }
1878
  }
1885
  try {
1886
  $attachments[$index] = Mandrill::getAttachmentStruct($attachment);
1887
  } catch ( Exception $e ) {
1888
+ error_log( "\nwpMandrill::processAttachments: $attachment => ".$e->getMessage()."\n" );
1889
+ return new WP_Error( $e->getMessage() );
 
 
1890
  }
1891
  }
1892