hi,
After I checkout I get an error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in UbercartMailSystem->mail() (line 56 of D:\Zend\Apache2\htdocs\abc.com\sites\all\modules\standard\ubercart\uc_store\classes\mail.inc).

Unable to send e-mail. Contact the site administrator if the problem persists.

    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in UbercartMailSystem->mail() (line 56 of D:\Zend\Apache2\htdocs\abc.com\sites\all\modules\standard\ubercart\uc_store\classes\mail.inc).
   
Unable to send e-mail. Contact the site administrator if the problem persists.

But my smtp module is working fine.

I've also tried to google it and didn't return anything relevant.

Any help will be appreciated.

Thank you!

CommentFileSizeAuthor
error.png10.18 KBhuangshaopeng
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave’s picture

longwave’s picture

Status: Active » Postponed

So, you should be able to install MailSystem module to use Ubercart for formatting, and SMTP for sending: http://drupal.org/project/mailsystem

However, a bug in SMTP destroys Ubercart's MailSystem settings: #1201198: Don't reset mail system variable

Marking postponed as this will be an issue until that bug is fixed in SMTP.

huangshaopeng’s picture

Status: Postponed » Closed (fixed)

Longwave,

I install the mailsystem module,issue appears to be fixed now.

Thank you very much.

ronline’s picture

Status: Closed (fixed) » Needs review

I've installed the mailsystem module.

The Store , Roles , File downloads , Order , Order , Cart, Free Order, PayPayl, Product kit, Product, Catalog, Product Attribut and Cart Links module class under admin/config/system/mailsystem is set to UbercartMailSystem. The Site-wide default class is set to SmtpMailSystem.

The cart/checkout/complete mail sending stuck with “Unable to send e-mail” error.

In watchdog I have uc_file Attempt to e-mail error, mail Error sending e-mail and uc_order Attempt to e-mail invoice.

Could you please, guys, describe the admin/config/system/mailsystem settings.

Thx

TR’s picture

Status: Needs review » Closed (fixed)

"Descriptions of the Priority and Status values can be found in the Issue queue handbook."

"Needs review" is only when you've posted a patch.

Regardless, as stated in #2, this is a problem with the SMTP module, not a problem with Ubercart. If you want to help resolve the issue, participate in #1201198: Don't reset mail system variable.

mattsmith3’s picture

Status: Closed (fixed) » Active

The issue seems to be fixed over at SMTP... but I'm getting this error on two sites (with latest Ubercart and latest SMTP).

TR’s picture

Status: Active » Fixed

If you installed a broken version of SMTP at any point after you installed Ubercart, then it will remain broken even after you upgrade SMTP. You will need to manually fix the mail_system variable. See #1880906: Ubercart not sending order emails.

mattsmith3’s picture

So, you should be able to install MailSystem module to use Ubercart for formatting, and SMTP for sending: http://drupal.org/project/mailsystem

Guess I didn't understand/read closely enough. Installing mailsystem and configuring does in fact let you send the email with the SMTP module.

BeatnikDude’s picture

Me to...
Installing and configuring the Mailsystem module allowed me to successfully send emails via Ubercart w/ the SMTP module.
» http://drupal.org/project/mailsystem

Anandyrh’s picture

The post here says downgrading the SMTP module worked

http://stackoverflow.com/questions/16228837/drupal-7-ubercart-3-4-emaili...

can someone reconfirm please?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

hockey2112’s picture

@BeatnikDude... can you please explain how?