Jump to content

bash curl command in java (for mailinabox)


Recommended Posts

Posted

Hello everyone, I just wanted to teach you all how to post an email to a mailinabox or any other need you may have for bash scripting :)

 

String command  = "curl -X POST -d email="+email1+" -d password=(custom pass) --user (user and pass for mib) https://box.(your domain)/admin/mail/users/add"; 
System.out.println(command);
Process process = Runtime.getRuntime().exec(command);

 

I will be replying to this with how to set up mailinabox

Posted

For mailinabox setup, all you need is a VPS with usually 1cpu, and 1gb of ram. I personally use Digital Ocean for my VPS.

 

First step, is to create a droplet, and make sure it's ubuntu 16+.

 

After that, it is super easy to setup, connect to the VPS, I always use a OTP that is emailed to you. Then once, you receive that, paste it into the PuTTY window and and set your new pass.

A small note about PuTTY is that right click is paste. Don't CTRL+V for this, just right click after it asks you for your password.

Then after that, follow this guide.

 

If you encounter any issues, reply to this post and I will help you :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...