Community

Email error when finish ubercart checkout

I am setting up an Ubercart E-commerce site. I set up a test gateway for the credit card (for testing only), submitted an order and got the following error:

Warning: mail() [function.mail]: Failed to connect to mailserver at "127.0.0.1" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in UbercartMailSystem->mail() (line 56 of C:\EasyPHP-5.3.8.1\modules\drupal77x120105143454\sites\all\modules\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 "127.0.0.1" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in UbercartMailSystem->mail() (line 56 of C:\EasyPHP-5.3.8.1\modules\drupal77x120105143454\sites\all\modules\ubercart\uc_store\classes\mail.inc).
Unable to send e-mail. Contact the site administrator if the problem persists.

What exactly do I need to do to fix this issue? I'm not so clear about what the error message is telling me to do.
Did I need to do some email setup earlier? Do I need the SMTP module? I'm very confused because I once wrote a custom module which sent out emails, and I don't remember having any issues (and the SMTP module was not installed).

Comments

It's telling you that Drupal

It's telling you that Drupal is trying to connect to the mail server on your system, and it's not finding the mail server. You'll need to configure your system with the proper location of your mail server. You can do this in the following ways:

1) Changing the settings in your php.ini file (good way)
2) Changing the settings using the PHP function ini_set() (probably not as good a way, since you are using Drupal)
3) Add either the SMTP module or the PHPMailer module, both of which will allow you to set your mail settings in the Drupal admin interface provided by these modules. (Probably the easiest way if you don't really know what you are doing).

Jaypan We build websites

nobody click here