Send Email using SenseTalk in Eggplant

This is the code to send email using the code and not setting up SMTP setting on the Eggplant functional.


Set email_host to "testhost.com" //Set the host variable to your host
Set email_port to "00" //Set the port
Set email_from to "test@testhost.com"
Set email_password to DecodeText("notARealEncodedPassword") \\You can encode the test using eggplant functional and pass it here so that its not plain text
Set email_to to "abc@testhost.com" \\Set the value same as
Set Content to "Test Email!"

sendMail (smtp_host:email_host, smtp_type:"Login",smtp_port:email_port,smtp_user: email_from, smtp_password: DecodeText(email_password) , To:email_to, Subject:Content)

Leave a comment