Forum Discussion
IvyMalacaman
3 years agoCommunity Member
Send automatic emails using Javascript without clicking the Send button in Outlook
Is there a way that I can send automatic emails without clicking the Send button in outlook using Javascript?
This is the current script I am using but I need to send it automatically without opening outlook
var player=GetPlayer();
var user_email=player.GetVar("TextEntry");
var subjectLine=encodeURIComponent("Me.Leader.Future. Supervisors Entry Card Completed");
var body=encodeURIComponent("Entry Card Completed for Participant:("+user_email+")");
var link = "mailto:corp.sm.ess.leadershipacademy@dbschenker.com"+"?subject="+subjectLine+"&body="+body;
window.open(link);
- MathNotermans-9Community Member
With SMTP and using the API ( for example Elasti mail one https://app.elasticemail.com/ ) you can directly send mail using Javascript and the SMTPJS library https://www.smtpjs.com/