XAMPP With FakeSMTP Or OrigamiSMTP?

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
trymeout
Level 1
Level 1
Posts: 10
Joined: Sat Jun 01, 2019 9:55 pm

XAMPP With FakeSMTP Or OrigamiSMTP?

Post by trymeout » Sat Jun 01, 2019 10:03 pm

Hello,

I have been using Linux Mint for a few months now and I have gotten all of my software setup except for my SMTP tool for testing emails. I use XAMPP for my server-side web development. When I was using Windows I always used a tool call Test Mail Server Tool which was handy since all you needed to do was launch it and then use the php mail() function and an EML file would be created that you can open in Thunderbird to view the email.

I want a similar testing environment on Linux but I cannot get the alternative software to work. I have tried FakeSMTP and OrigamiSMTP. FakeSMTP I was able to start the SMTP server. I am using Linux Mint 19.1. Any help will be most appreciated!

lordmax
Level 3
Level 3
Posts: 110
Joined: Sun Jun 05, 2011 5:38 am
Location: Turin, Italy
Contact:

Re: XAMPP With FakeSMTP Or OrigamiSMTP?

Post by lordmax » Mon Jun 03, 2019 11:42 pm

HI,

I don't know if this can be useful but I've used https://www.smtpbucket.com/

Configure it as a smtp server and send email as real, you can catch email from your browser and see it

trymeout
Level 1
Level 1
Posts: 10
Joined: Sat Jun 01, 2019 9:55 pm

Re: XAMPP With FakeSMTP Or OrigamiSMTP?

Post by trymeout » Tue Jun 04, 2019 3:24 pm

I tried this out but cannot get it to work with XAMPP. Do you how to configure it to work with XAMPP? This looks like a good solution. I tried changing the port in the php.ini to 8025 and changing the path to mail.smtpbucket.com but no luck.

trymeout
Level 1
Level 1
Posts: 10
Joined: Sat Jun 01, 2019 9:55 pm

Re: XAMPP With FakeSMTP Or OrigamiSMTP?

Post by trymeout » Thu Jun 20, 2019 3:37 pm

I finally figured it out after a month! This is how it is done

1. Create a folder in your Documents named XAMPP Emails
2. Open the terminal and enter the following command

Code: Select all

sudo chmod 777 "/home/USERNAME/Documents/XAMPP Emails/"
3. Open the php.ini file that is located in your /opt/lampp/etc directory
4. Press CTRL+F and then type "mail function"
5. Under the [mail function] remove comment from sendmail_path
6. Set sendmail_path to

Code: Select all

sendmail_path = "cat > /home/USERNAME/Documents/XAMPP\ Emails/`date '+%Y-%m-%d - %H-%M-%S'`.eml"
BUT MAKE SURE TO REPLACE USERNAME with your own username
7. If Apache is running, restart it

Post Reply

Return to “Software & Applications”