api to create notificacion

cPanel, Industry leading hosting platform with world-class support.
Post Reply
ludolugo
Posts: 59
Joined: April 17th, 2020, 10:40 am

api to create notificacion

Post by ludolugo »

i wnat to create a notificiation integration with email, if i do it from web GUI it is created eithout problem, when i try it using API it sais Can't connect via SMTP. this is the complete command i am using:

Code: Select all

jetbackup5api -F manageNotificationIntegration -D "action=create&name=Email_notification&type=Email&frequency[4]=1&options[recipients]=jetbackup@****.net&options[smtp]=1&options[smtp_from]=jetbackup@*****.net&options[smtp_host]=mail.*****net&options[smtp_port]=465&options[smtp_username]=jetbackup@*****.net&options[smtp_password]=**********&options[smtp_secure]=ssl&options[smtp_verifyssl]=0"
JetAppsKevin
Staff Member
Staff Member
Posts: 44
Joined: October 4th, 2023, 10:44 pm

Re: api to create notificacion

Post by JetAppsKevin »

Hello ludolugo,

I reviewed your API command and found a potential typo. Can you please confirm if the following option is correct?

Code: Select all

options[smtp_host]=mail.*****net
Should it be (missing "." before net?):

Code: Select all

options[smtp_host]=mail.*****.net
If you would like, our Support Team can take a closer look, and you can contact them by emailing support@jetapps.com or with the contact form below.

https://www.jetapps.com/#contact

Best Regards,
Kevin N
JetApps, LLC.
JetApps.com | JetBackup.com
ludolugo
Posts: 59
Joined: April 17th, 2020, 10:40 am

Re: api to create notificacion

Post by ludolugo »

yes it's correctl i missed a dot trying to hide the mail server, all options hidden with **** are ok
JetAppsKevin
Staff Member
Staff Member
Posts: 44
Joined: October 4th, 2023, 10:44 pm

Re: api to create notificacion

Post by JetAppsKevin »

Hello ludolugo,

Can you please try appending the following option to the end of the API command?

Code: Select all

options[smtp_timeout]=15
Complete command:

Code: Select all

jetbackup5api -F manageNotificationIntegration -D "action=create&name=Email_notification&type=Email&frequency[4]=1&options[recipients]=jetbackup@****.net&options[smtp]=1&options[smtp_from]=jetbackup@*****.net&options[smtp_host]=mail.*****net&options[smtp_port]=465&options[smtp_username]=jetbackup@*****.net&options[smtp_password]=**********&options[smtp_secure]=ssl&options[smtp_verifyssl]=0&options[smtp_timeout]=15"
The Notification Integration will fail to connect via SMTP if this option is not included.

Best Regards,
Kevin N
JetApps, LLC.
JetApps.com | JetBackup.com
ludolugo
Posts: 59
Joined: April 17th, 2020, 10:40 am

Re: api to create notificacion

Post by ludolugo »

that was it!! thanks very much!!
JetAppsKevin
Staff Member
Staff Member
Posts: 44
Joined: October 4th, 2023, 10:44 pm

Re: api to create notificacion

Post by JetAppsKevin »

Hello ludolugo,

I'm glad that I was able to assist! If you encounter any more issues, please do not hesitate to open another post or contact our Tech Support Team by emailing support@jetapps.com.

Best Regards,
Kevin N
JetApps, LLC.
JetApps.com | JetBackup.com
Post Reply