What IS the set-up for wp_mail?
I know wp_mail has a backup setting to send out email if the SMTP server option is not set-up.
The host I am on, 1and1.com, doesn't have a problem with standard email sends in various PHP email programs. However, if I want to enforce SMTP server utility with wp_mail?
I read this in the ClassiPress included email plug-in:
Code:
* Emails that get called and sent out for ClassiPress
* @package ClassiPress
* @author David Cowgill
* @version 3.0
* For wp_mail to work, you need the following:
* settings SMTP and smtp_port need to be set in your php.ini
* also, either set the sendmail_from setting in php.ini, or pass it as an additional header.
So, David, just HOW do I follow these instructions literally?
1and1 allows use of .htaccess for a lot of php.ini utilities, but also I can put a php.ini into my wordpress directory.
And one information page at 1and1 suggests using IMAP with the following information----
Outgoing Server: smtp.1and1.com (port 25 or 587)
if settings are done in the .htaccess file I am supposed to flag them first according to an online reference like this
EXAMPLES:
php_value upload_max_filesize 20M
php_flag register_globals off
php_flag magic_quotes_gpc on
MY 1and1.com htaccess file for the WP install that houses ClassiPress reads as follows
AddType x-mapp-php5 .php
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
So, back to my question, Lord Cowgill, what ARE the wp_mail configurations suggested for letting wp_mail know the SMTP server AND Port?
Thanks for your help!