Hello,
I'm sure I'm just missing something but I've double checked and can't track down the cause. I'm testing the ResetPassword command and the log file shows the command is successful in the app. But the emails never show up. Here's my email settings in my config file (with redacted hostname, username and password, of course):
// it allows to send the emails through SMTP server
define ("EMAIL_SMTP", TRUE);
// secure authentication type for the SMTP
define ("EMAIL_SMTP_SECURE", NULL);
// server hostname or IP for the SMTP connection
// define ("EMAIL_SMTP_HOSTNAME", [*my out server setting*]);
// server port for the SMTP connection
define ("EMAIL_SMTP_PORT ", 80);
// username for the SMTP connection
define ("EMAIL_SMTP_USERNAME", [*my username*]);
// password for the SMTP connection
define ("EMAIL_SMTP_PASSWORD ", [*my password*]);
Is there something additional I'm missing or some way to track where the failure is on the server side?
Thanks,
Dustin Adair
The reason for failing in case of SMTP send may be many, mostly depending on the settings required from the mail server where you're trying to connect in order to send the mail. For example GMail requires to set SSL secure type to 'ssl' or 'tls' and on port '465' or '587'.
Since Combu uses PHPMailer you can create a file testmail.php in the root of Combu and append the exactly same sample code that you see on their official page at here (in the section "A simple example") playing with the settings properties of PHPMailer, or make a search on internet for the settings required by your mail provider if you're trying to use an account from a free service like GMail etc.
Once you find the correct settings and you're able to send email from your test script then you can edit the config.php of Combu.
Here is the correspondence of config.php with PHPMailer properties:
- EMAIL_SMTP: if TRUE then call PHPMailer->isSMTP() to set PHPMailer to use SMTP
- EMAIL_SMTP_HOSTNAME: PHPMailer->Host and PHPMailer->Hostname
- EMAIL_SMTP_PORT: PHPMailer->Port
- EMAIL_SMTP_SECURE: PHPMailer->SMTPSecure
- EMAIL_SMTP_USERNAME: PHPMailer->Username (and set PHPMailer->SMTPAuth=TRUE)
- EMAIL_SMTP_PASSWORD: PHPMailer->Password
FRANCESCO CROCETTI @ SKARED CREATIONS
Thanks for the help. It turned out to be a transcription error on my part. A space snuck into one of my values which caused the error. And FYI, I used the great test file example you listed in this posting to track the issue down:
http://skaredcreations.com/wp/support/forum/combu-1/send-email-using-build-in-mailer/
My email stuff is all set now. Thanks!