API 2.0 Documentation
Get Started
API 2.0 Documentation
Get Started
Initiate Codemail
The Basics
<head>
<script src="https://codemail.zymono.com/2.0/mail.js"></script> <!-- Include the SDK file -->
</head>
<div id="cm"></div> <!-- Create an element in which to initiate Codemail -->
<script>
const codemail = new Codemail();
codemail.init({
Token: 'Your_Token',
container: '#cm' //The query of your container (# for id, . for class)
})
</script>
The Config
config: {
formName: 'Custom_Form_Name',
formURI: 'Custom_Redirect_URL',
style: {
css: 'Custom_CSS'
}
}
Integrating
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Codemail</title>
<script src="https://codemail.zymono.com/2.0/mail.js"></script>
</head>
<body>
<div id="cm"></div>
<script>
const codemail = new Codemail();
codemail.init({
Token: 'Your_Token',
container: '#cm', //The query of your container (# for id, . for class)
config: {
formName: 'Custom_Form_Name',
formURI: 'Custom_Redirect_URL',
style: {
css: 'Custom_CSS'
}
}
})
</script>
</body>
</html>
On this page