java html 邮件 js_Javascript - Mail

危彬彬
2023-12-01

I want to send an email in a text-area to many other users. In the text-area, named content, if I typed "user" surrounded by stars, I want to have them filled in with each email's username (the text before the "@"). That would yield many different with each username in each email. Then when I hit a button, I want to have all the emails sent to each corresponding user. This is my mail function so far:

function mail(){

var options = document.getElementById('users').options

var emails = []

for(var i = 2; i < options.length; i++){

emails.push(options[i].innerHTML)

}

}

How do I do this? Thanks!!!

 类似资料: