This topic contains 1 reply and 1 voices, and was last updated by Denis 6 years ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
September 9, 2013 at 12:23 am 7934
Denis Hi, I use WPUF pro to register new users. Now I created a plugin to change my email details.
<?php
/*
Plugin Name: My Awesome Email Plugin
Plugin URI: http://localhero.de
Description: Email settings
Version: 1.0
Author: Denis Hoffmann
Author URI: http://localhero.de
*/

add_filter ("wp_mail_content_type", "my_awesome_mail_content_type");
function my_awesome_mail_content_type() {
	return "text/html";
}
	
add_filter ("wp_mail_from", "my_awesome_mail_from");
function my_awesome_mail_from() {
	return "info@mysite.de";
}
	
add_filter ("wp_mail_from_name", "my_awesome_mail_from_name");
function my_awesome_email_from_name() {
	return "mysite.de";
}

?>
When I click on "register button" the page loads and loads and loads and nothing happens. when I hit the RELOAD button, the new user is added. Whats wrong with my plugin? Cheers, Denis
September 9, 2013 at 1:20 am 7935
Denis Denis

I changed it this way and it works…

/* WordPress Email von Plain in HTML ändern */
function lh_mail_content_type()
	{
	return "text/html";
	}
add_filter ("wp_mail_content_type", "lh_mail_content_type");

/* Email Adresse von WordPress ändern */
function lh_mail_from_address() // $email_address
	{
	return "info@localhero.de";
	}
add_filter( "wp_mail_from", "lh_mail_from_address" );

/* Absendername von WordPress ändern */
function lh_mail_from_name() // $email_from
	{
	return "Redaktion - Localhero";
	}
add_filter( "wp_mail_from_name", "lh_mail_from_name" );
Viewing 1 Posts - 1 through 1 (of 1 total)