Post by Serenitif » Thu Dec 06, 2018 11:01 pm

hi everyone I tried in the forum but I did not find anything or what I found is in English and I tried even without success, I would need someone who would kindly explain how to configure the email to opencart locally, now I'll explain, I'm trying to make changes and when I try for example the contact form of course does not get the email anywhere, I tried sendamail and mercury but I can not create an email locally to do some tests, currently I do not have a hosting yet, so I was wondering someone could explain to me kindly step by step how to configure an email to use only in localhost that arrives to my free email or that works with thunderbird? thank you

New member

Posts

Joined
Mon Apr 13, 2015 1:07 am

Post by OSWorX » Thu Dec 06, 2018 11:21 pm

Simply use SMTP.
Edit the ..xampp/php/php.ini for this and add there your data in the SMTP section.
Add your email address to sendmail_from =
If you want to check your outgoing emails, enable also the mail.log a few lines below.
And enable sendmail_path if not already done.

That's it.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Serenitif » Fri Dec 07, 2018 12:24 am

I thank you for the answer in php.ini I put it this way

[mail function]
SMTP=mail.my email
smtp_port=50
sendmail_from =my email
sendmail_path = "\"C:\xampp\xamp2\sendmail\sendmail.exe\" -t"

I can not find mail.log

is that good for you?

New member

Posts

Joined
Mon Apr 13, 2015 1:07 am

Post by OSWorX » Fri Dec 07, 2018 2:24 am

Inside php.ini like this - all in section [mail function]:
Basic:

Code: Select all

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP=localhost
; http://php.net/smtp-port
smtp_port=25
Email address:

Code: Select all

sendmail_from = mail@somemail.net
Mailprogram (save to disk):

Code: Select all

sendmail_path = "D:\server\xampp\mailtodisk\mailtodisk.exe"
And log:

Code: Select all

mail.log = "D:\server\xampp\php\logs\php_mail.log"
Inside OpenCart > System > Setting >> Email :: your SMTP settings

Use/adjust the params above according to your SMTP-Server.
You did not write which XAMPP version you are using, but these settings are the same since a few years ..
IBut - if you are using XAMPP not with Windows, you have to search for the correct settings.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by paulfeakins » Fri Dec 07, 2018 8:02 pm

Or don't worry about this part until it's on a web server which should allow you to use mail().

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by Serenitif » Tue Dec 18, 2018 9:51 pm

thanks a lot

New member

Posts

Joined
Mon Apr 13, 2015 1:07 am

Post by nickpapoutsis » Sat Apr 18, 2020 12:21 am

A bit late to the party but if everyone's interested there this little program that receives the mail sent to localhost.

Papercut SMTP: https://github.com/ChangemakerStudios/Papercut-SMTP

Simply run the program and have it listen to port 25 or whatever you have set it to in XAMPP.

Then, whenever an email is sent Papercut will see it and a notification will pop up.

User avatar
New member

Posts

Joined
Mon Mar 25, 2019 7:49 am
Who is online

Users browsing this forum: siptec and 348 guests