• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.4 Mandrill Setup

Solidus

Well-known member
#1
Hey all.

I want to stop using BD Mails and using XF options instead. But a few questions,



First, it doesn't ask for my API key.
Secondly, exactly what username/password am I supposed to enter?

Thanks.
 

Mike

XenForo developer
Staff member
#2
This just uses SMTP. SMTP uses a username and a password (along with server details). If your mail sending system doesn't expose an SMTP approach (it would be a bit strange not to, given as that's the protocol to send mail), you can't use it out of the box in XF.
 

Solidus

Well-known member
#5
Your API key goes into password.
See Mandrill Account Settings for your SMTP settings
I set this up, and get an error on sending mail,

Code:
Zend_Mail_Protocol_Exception: Email to x@x.com failed: Connection refused - library/Zend/Mail/Protocol/Abstract.php:277
Generated By: Vader, 2 minutes ago
Code:
#0 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail/Protocol/Smtp.php(167): Zend_Mail_Protocol_Abstract->_connect('tcp://smtp.mand...')
#1 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail/Transport/Smtp.php(199): Zend_Mail_Protocol_Smtp->connect()
#2 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Smtp->_sendMail()
#3 /var/www/vhosts/wweforums.net/httpdocs/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#4 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Mail.php(175): Zend_Mail->send(Object(Zend_Mail_Transport_Smtp))
#5 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Mail.php(152): XenForo_Mail->sendMail(Object(Zend_Mail))
#6 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/Model/UserConfirmation.php(136): XenForo_Mail->send('hafidogu@landma...', 'Vader')
#7 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/ControllerPublic/AccountConfirmation.php(104): XenForo_Model_UserConfirmation->sendEmailConfirmation(Array)
#8 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(347): XenForo_ControllerPublic_AccountConfirmation->actionResend()
#9 /var/www/vhosts/wweforums.net/httpdocs/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#10 /var/www/vhosts/wweforums.net/httpdocs/index.php(13): XenForo_FrontController->run()
#11 {main}
 

Mouth

Well-known member
#7
I set this up, and get an error on sending mail
If you've got the host, port, username, and password (API key) correct it should work fine. I have non XF systems sending through mandrill via this method without any problems.
 

Solidus

Well-known member
#8
If you've got the host, port, username, and password (API key) correct it should work fine. I have non XF systems sending through mandrill via this method without any problems.
I definitely do. Port 587 is listed in tcp_out in CSF too, not sure what is wrong here.