Send clear password via mail

user_register isn’t the solution for your needs because when this action is trigger, the password is already encrypted. The best solution is to do a custom registration form and insert your new users with this hook: wp_insert_user() When a user is register, you can send a custom email with the password not encrypted.

Changing wordpress admin email [closed]

You can’t have more than one admin email, if you need it to arrive in more than one inbox then you need to do that at the other end, via a mailing list or forwarding rules, etc I don’t know how you set the admin email to an invalid email address with commas, but, you … Read more

wp_mail not sending email on custom function

The way you’re applying the headers is incorrect. You set a “from” address in the headers as a string, and then you immediately overwrite that with an array (so the “from” address is lost). (You’re also setting the $from address twice) Try it this way: function send_email(){ $to = $email; $subject = “Lamza Activation”; $activationEmail=””; … Read more

Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]

To check product has TAG or not you have to fetch product from order and search in them. //Custom NEW ORDER Email address depending on Product Tag add_filter( ‘woocommerce_email_recipient_new_order’, ‘new_order_conditional_email_recipient’, 10, 2 ); function new_order_conditional_email_recipient( $recipient, $order ) { if ( ! is_a( $order, ‘WC_Order’ ) ) return $recipient; // (Optional) // Get the order … Read more

Does WordPress require port 25 for email?

WordPress sends emails via the wp_mail() method, which, by default, needs port 25 to be enabled in your php.ini settings: For this function to work, the settings SMTP and smtp_port (default: 25) need to be set in your php.ini file. You will have to change this setting if you would want to send mails via … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)