Opened 19 years ago
Closed 19 years ago
#1642 closed defect (bug) (fixed)
install.php using old mail() instead of wp_mail(), causing install to crash on server with no mail()
Reported by: | tliebig | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | blocker | Version: | 1.5.2 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
WP Version: 1.5.2 strayhorn
file: wp-admin/install.php line 189
Currently uses mail() instead of wp_mail(). This is depreceated, for compatibility issues the new wp_mail() function has been added. If your server has not working php mail(), than you will not be able to install WP on this server. The file install.php should, as all other occurences of mails, use the wp_mail() function.
I had updated the wp_mail() function with the php_mailer, but was wondering why the installation still did not work. Took me an hour to find out that although I was trying to use the new php_mailer, installation did not use the php_mailer and therefore crashed because it could not send the registration email.
Please someone responsible change occurance of @mail in file wp-admin.php/install.php on line 189 to @wp_mail()
thanks.
torsten
(In [2835]) Use wp_mail instead of mail. Props to tliebig. fixes #1642