Skip to content

Instantly share code, notes, and snippets.

View firstkevinds's full-sized avatar

Kevin firstkevinds

View GitHub Profile
@firstkevinds
firstkevinds / mxroute_email_accounts.py
Created December 2, 2024 06:42 — forked from Suleman-Elahi/mxroute_email_accounts.py
A script to bulk create email accounts on MXroute via API. Sleep is not really necessary so can turn off. Use the users.csv file to create the CSV file with information of user to be created, quota must be given in MB. Just replace your username, password, server URL and good to go.
import requests
import csv
import time
server_login = 'YourUserName'
server_pass = 'YourPassword/LoginKey'
endpoint_url = 'AddSevrerURLHereWithPort' + '/CMD_EMAIL_POP' #Change the first part to he URL of the server you recoeved after sign up.
headers={"Content-Type": "application/x-www-form-urlencoded",}