Tag Info

New answers tagged

0

Wordpress uses PHPMailer class and has an action hook that you can use to configure it. For example: add_action( 'phpmailer_init', 'cyb_smtp_config' ); function cyb_smtp_config( $phpmailer ) { $phpmailer->IsSMTP(); $phpmailer->Host = 'smtp.mailer.com'; $phpmailer->Port = 25; $phpmailer->Username = 'username'; ...


0

For sending mass emails I wouldn't recommend sending them from your email program nor from WordPress; instead, I would recommend a third-party service that specializes in sending emails - in particular, I usually recommend MailChimp as they offer a free subscription level that is usually sufficient. They also provide a easy-to-use WP plugin that allows ...


1

If you have access to the database, through phpMyAdmin or otherwise, you can change the email address in the 'wp_users' table. (your table may have a different prefix)


0

Ok, then you can try this You can set the header, just not with a parameter. WordPress uses "hooks" and the hooks you need are 'wp_mail_from' and 'wp_mail_from_name' hooks. Here are the hooks you might add to your theme's functions.php file to modify the "From:" header when using wp_mail() to the email address Greg j : ...


1

There is no actions/filters to hook to. You need to override standard WC_Email_Customer_New_Account class and implement your own logic. To do it you need to create your own class which will inherit that class and register it. class WPSE8170_Email_Customer_New_Account extends WC_Email_Customer_New_Account { function trigger( $user_id, $user_pass = '', ...



Top 50 recent answers are included