daberelay
Forum Replies Created
-
Hi,
why not use 2 plugins?You should be able to install this:
https://www.ads-software.com/plugins/email-verification-on-signups/
for the verifications,
and the current plugin (https://www.ads-software.com/plugins/email-templates/) for designing the way emails look.it should work just fine.
AFAIK, This plugin doesn’t send emails, just templates them.
you should add a plugin that does email verifications, or handle it programmatically.
The development version works now, thank you Damian!
Thanks Damian,
Checking again, pluggable.php [line 394] turns the list of recipients to phpmailer from a list of emails to list of arrays (email+empty name)
so if you pass
wp_mail([“1_at_gmail.com”,”2_at_gmail.com”]…)
it turns into:
[
[“1_at_gmail.com”,””],
[“2_at_gmail.com”,””]
]so your fix still doesn’t work, you need to extract the string from 2 arrays, not just one.
I suggest:
while(is_array($email))
$email = reset($email);or something similar…
thanks again.
- This reply was modified 7 years, 1 month ago by daberelay.
Hi Damian,
Your fix works, but has a bug in it when email arrays are passed instead of email string.
some plugins/functions.php use wp_mail passing array instead of a single recipient
(allowed by documentation https://developer.www.ads-software.com/reference/functions/wp_mail/)
but your code throws exception:
notice: Array to string conversion in /wp-content/plugins/email-templates/includes/class-mailtpl-mailer.php on line 184
Call Stack
12 2.6815 33140800 Mailtpl_Mailer->send_email( ??? ) …/class-wp-hook.php:286
13 2.6846 33166224 Mailtpl_Mailer->replace_placeholders( ???, ??? ) …/class-mailtpl-mailer.php:73
14 4.2549 33178520 str_replace ( ???, ???, ??? ) …/class-mailtpl-mailer.php:184can you please circumvent it?
thanks in advance!
Yes, Thank you Damian, I will let you know soon
just to clarify, I need it in order to generate an unsubscribe link, its the only way possible. not sure how other users are sending emails without it…
cheers.
Thank you Damian, I appreciate you getting back to me with this.
The user id OR user email of the receipient is what I’m after, not necesserily the currently logged in user.
the address email would be enough.
many thanks!
Dear Damian, not sure why you won’t respond, you promised here (https://www.ads-software.com/support/topic/unsubscribe-link-7/) that you would add the “to” argument to the placeholder list…
at least give me a reason?
I’ve had to clone your plugin and cannot update it until you provide a solution.
please?
Forum: Plugins
In reply to: [Multiple Admin Email Addresses] Problem with confirmation emailsI did update the description, and also warned you here on the new field ??
anyway, glad it works now.
Forum: Plugins
In reply to: [Multiple Admin Email Addresses] Problem with confirmation emailsOk, I think i covered all the places that states the plugin version and got it all in sync.
you should be able to download version 1.1.2 now.
let me know if it finally works
thanks for your patience!
- This reply was modified 7 years, 3 months ago by daberelay.
Forum: Plugins
In reply to: [Multiple Admin Email Addresses] Problem with confirmation emailsHi Terry,
I’m not sure why, but I’ve uploaded and committed a v1.1 – no idea why it is not being shown ??
As per the wp_options table – I don’t actually change the admin_email in wp_options, but I override the result when someone query’s about this value.
you should find another option called “multiple_admin_emails” and it should contain the actual value that would be used.
Forum: Plugins
In reply to: [Multiple Admin Email Addresses] Problem with confirmation emailsHello Terry,
I’ve updated the plugin, and now it works fine. you should notice that due to WP 4.9 new behavior, I had to add another field to the General Settings, so now you have “Multiple Admin Emails” field down the bottom of the page, you can set it, and it will set the admin email field as well.
don’t forget to rate me ??
Forum: Plugins
In reply to: [Multiple Admin Email Addresses] Problem with confirmation emailsThank you Terry, Investigating, will revert with answer.
Forum: Plugins
In reply to: [Multiple Admin Email Addresses] Problem with confirmation emailsHello Terry,
It seems to me that you have put a non existent email address as your admin email, and now, trying to change it (regardless of my plugin), and wordpress asks that you first confirm that change using your old (and non-existent) email address.This feature is to prevent site hijacking/takeovers.
If you have access to your database, you may change the email address once to an existing email address.if you have no programming knowledge, I would suggest you ask your hosting provider to fix that for you, if they will.