Hi! I'm finishing setting up my site but I want to change the mailer address so instead of noreply@elrincondelcas.co.cc its elrincondelcas@hotmail.com to stop sending emails to their spam folder in hotmail.
Replies will be appreciated.
Thanks!
Hi! I'm finishing setting up my site but I want to change the mailer address so instead of noreply@elrincondelcas.co.cc its elrincondelcas@hotmail.com to stop sending emails to their spam folder in hotmail.
Replies will be appreciated.
Thanks!
C'mon people! three days and no replies??? i use to get very fast replies on this forum.
Is there something wrong i said??
sorry if i sound a little noobish!
Thanks!
Being all honest, I didn't fully understand your first post.
Mayansoldier, there's a hook for the default mail_from address. In the latest version of my new blog defaults plugin, I wrote a gui so you can change the from email address. Should be released in a day or so.
If you don't want to wait or you want to do your own plugin with just that, here's the basics:
function cets_nbd_from_email($from_email)
return $from_email; //return whatever you want as email, or this will return the default.
}
function cets_nbd_from_name($from_name)
{
// the default is the site name, but you can return whatever you want here.
global $current_site;
return $current_site->domain;
}
add_filter( 'wp_mail_from', 'cets_nbd_from_email' );
add_filter( 'wp_mail_from_name', 'cets_nbd_from_name' );
Oh, and I'm missing an opening bracket there in that first function. That's what I get for sloppy copy/pasting/editing.
Thanks!
WOW! thanks for all your knowledge writing that. You don't know how much i appreciate that. I will wait for the plugin cause i don't know how to write those.
Thanks! a lot DeannaS
*Sorry if you didn't understand my post but i'm a 15 y.o. latino so english is a littlebit hard for me.
Even dough i have a bare idea about how php works i tried to compile this plugin in a php file but i can't get the desired.
Exactly, what should i replace in this line?
function cets_nbd_from_email($from_email)
{
return $from_email;
and this one?
function cets_nbd_from_name($from_name)
{
// the default is the site name, but you can return whatever you want here.
global $current_site;
return $current_site->domain;
The php file seems to work in the mu-plugins folder because i could change from @elrincondelcas.co.cc to @(my free hosting service provider).
Thanks for all your replies!
BTW:Very sorry if I sound too noobish!, i want to learn php but i dont know where...
i think i will start a new thread asking this...
Hi everyone,
yeah if you contact to hosting service it works, but if you make very easy to send emails very well make this changes
I found the way that wordpress send emails to friends, using the function http://codex.wordpress.org/WPMU_Functions/wpmu_welcome_notification
but for this use
///////////////////////////////////////////////////////////
wp_mail($user_email, $subject, $message, $message_headers);
//////////////////////////////////////////////////////////7
in wordpress-mu/wp-includes/wp-functions.php
so i have this problem when i have to send lists of emails via console linux because this go to spam folders in yahoo, and hotmail, so i create a sistem in php to send this emails.
Is very easy
change
wp_mail($user_email, $subject, $message, $message_headers);
for
mail($user_email, $subject, $message, $message_headers);
that this change your emails sed to inbox
This works because php not show the original sender in litle words
so prove it