Jump to content

bash curl command in java (for mailinabox)


MillGrantz

Recommended Posts

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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