Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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!
Comment | File | Size | Author |
---|---|---|---|
error.png | 10.18 KB | huangshaopeng |
Comments
Comment #1
longwave(edited to fix link) This is due to #1135262: drupal_mail() should support using different MailSystemInterface classes for format() and mail()
Comment #2
longwaveSo, 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.
Comment #3
huangshaopeng CreditAttribution: huangshaopeng commentedLongwave,
I install the mailsystem module,issue appears to be fixed now.
Thank you very much.
Comment #4
ronline CreditAttribution: ronline commentedI'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
Comment #5
TR CreditAttribution: TR commented"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.
Comment #6
mattsmith3 CreditAttribution: mattsmith3 commentedThe issue seems to be fixed over at SMTP... but I'm getting this error on two sites (with latest Ubercart and latest SMTP).
Comment #7
TR CreditAttribution: TR commentedIf 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.
Comment #8
mattsmith3 CreditAttribution: mattsmith3 commentedGuess I didn't understand/read closely enough. Installing mailsystem and configuring does in fact let you send the email with the SMTP module.
Comment #9
BeatnikDude CreditAttribution: BeatnikDude commentedMe to...
Installing and configuring the Mailsystem module allowed me to successfully send emails via Ubercart w/ the SMTP module.
» http://drupal.org/project/mailsystem
Comment #10
Anandyrh CreditAttribution: Anandyrh commentedThe post here says downgrading the SMTP module worked
http://stackoverflow.com/questions/16228837/drupal-7-ubercart-3-4-emaili...
can someone reconfirm please?
Comment #12
hockey2112 CreditAttribution: hockey2112 commented@BeatnikDude... can you please explain how?