al_gorithm
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How does WP send the user registration email?Macmanx,
Thanks for your help, but that codex only references this thread anyway, and I’ve read through all the solutions and tried them with no changes. I don’t have root access and I can’t install any new phpmail scripts on the server, so I can’t try a different method. Please advise if using Brinkster’s current phpmailer, I can use wordpress at all.
Thanks.
Forum: Fixing WordPress
In reply to: How does WP send the user registration email?I’m having the same problem as the first poster. Here’s the story:
1. Installation successful, I can login as admin. When I create test users and the registration e-mail is supposed to be sent, it never arrives.
2. Troubleshooting included updating the functions.php file to fix the known issues. A snippet of my functions.php file is below:
‘function wp_mail($to, $subject, $message, $headers = ”) {
if( $headers == ” ) {
$headers = “MIME-Version: 1.0\n” .
“From: ” . get_settings(‘admin_email’) . “\n” .
“Content-Type: text/plain; charset=\”” . get_settings(‘blog_charset’) . “\”\n”;
}
return @mail($to, $subject, $message, $headers);
}’This gets rid of the $more argument, which apparently farts when it tries to execute. And it also references the ‘admin_email’ on my host, which does exist as admin@mydomain.com. (This was to fix the problem of having a nobody@mydomain.com sending out mail from the php file, which most hosts don’t allow)
And yet, the problem persists.
So, I ran the test phpmail script on my hosts’s site to make sure the default phpmail works, the code for this is below:
‘<?
require(“c:\php\includes\class.phpmailer.php”);
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = “mail.brinkster.com”;
$mail->SMTPAuth = true;
$mail->Username = “you@domain.com”;
$mail->Password = “EmailPassword”;
$mail->From = “you@domain.com”;
$mail->FromName = “Your Name”;
$mail->AddAddress(“user@domain.com”);
$mail->IsHTML(true);
$mail->Subject = “Test message sent using the PHPMailer component”;
$mail->Body = “This is a test message.”;
$mail->Send()
?>’
I updated all the fields and this works like a charm. My thinking is that somehow I need to integrate the code from the default phpmailer ($mail??) into the code in the functions.php.
I am not even a coder of php, I just have been following the troubleshooting instructions, but to no avail. Any help would be much appreciated.
[edit] Also, I’ve created a php info file, but there’s no sendmail path. I don’t have root access, so it doesn’t matter anyway. Also, Brinkster runs windows servers [/edit]
[edit2] I switched my e-mail in both users and options in the admin section of the wp control panel to admin@mydomain.com, so no problems there [/edit2]