SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1 , 2
Topic email 6821 Views

email

20 October 2011 at 7:47pm

email is not sent to customer´s email account when registering.

Re: email

20 October 2011 at 8:37pm

Hi gegge,
your server must be configured appropriately if you want to sent emails. On what kind of server have you installed silver cart?

Re: email

20 October 2011 at 8:58pm

Hi Roland,

thanks a lot for the reply. I am running SilverCart on a CentOS Linux-System, hosted by 1&1.

Best Regards,

gegge

Re: email

20 October 2011 at 9:45pm Last edited: 20 October 2011 9:46pm

Hi gegge,

if you don't have a MTA (MAil Transfer Agent) like Sendmail installed on you system, you might still be able to use the default SMTP relay from 1&1.

Here is more information on the PHP Mail function and how to set up an external SMTP relay http://php.net/manual/en/ref.mail.php

If PHP has proper acces to either a local MTA or is configured to send mails via an external SMTP everything should be fine.

SilverCart mails are nothing fancy, it uses the underlying SilverStripe framework.

Please let us know if everything works out fine or if you need further assistance.

We are just about to launch SilverCart 1.2, so stay tuned :-)

Cheers
Ramon

Re: email

21 October 2011 at 6:08am

Hi Ramon,

thanks a lot for your reply. I have also tested PHPMailer on my system and it works fine. So I think that my PHP-settings are ok. But I did not find yet in SilverCart where to set some basics for sending emails like SMTPHost, i.e. "smtp.1und1.de", Port, i.e. "587", SMTPAuth, i.e. "true", etc. I think these basic settings are necessary for the system to work.

Best Regrads,

gegge

Re: email

21 October 2011 at 7:03am Last edited: 21 October 2011 7:07am

Hi gegge,

SilverStripe itself does not offer these settings, it just relies on php's mail() function and a local MTA. As most webhosters and webservers offer sendmail, there was no reason for us to change this in SilverCart.

If you don't have the possibility to set-up a local MTA or confige PHP to use SMTP with authentification, there is a SilverStripe smtp-module https://github.com/xeraa/silverstripe-smtp by Philipp Krenn, the author of the 3rd book on SilverStripe.

Description

silverstripe-smtp automatically sends emails (e.g. from UserForms) to your provider's or host's SMTP server instead of using PHP's built-in mail() function.

silverstripe-smtp replaces the classic SilverStripe Mailer (using the mail() function) with PHPMailer (http://sourceforge.net/projects/phpmailer/) to send emails via the SMTP protocol to a local or remote SMTP server.

When would you use this module:

If your provider disabled mail()
If you have troubles sending emails because of the DNS configuration and the way some mail servers discard emails if the domain names don't match
If you want to send emails from your local web server without having to install a mail server, using an external SMTP server instead
If you want to send encrypted emails (using SSL or TLS protocols)

Hope this helps.

Cheers
Ramon

Re: email

21 October 2011 at 7:21am

Hi Ramon,

thanks a lot. I will try to implement this module the next days. I will come back to you with the results.

Cheers,

gegge

Re: email

21 October 2011 at 7:44am

Hi Ramon,

one last question before I try out the mail-module. Do I have to run a /dev/build or notto use it ?

Thanks,

gegge