I am developing an application to send mail to a group of user using java script from Lotus notes. we are using shared mailbox for a user.
When i trigger this mail script it is sending from my personal mailbox
Is it possible to trigger the mail from the shared mailbox?
<script>
function sendEmail()
{
var notesDatabase;
var notesSessiona;
notesSessiona = new ActiveXObject("Notes.NotesSession");
notesDatabase = notesSessiona.GETDATABASE("staralliancesupport", "");
notesDatabase.OPENMAIL();
var mailItem = notesDatabase.CreateDocument();
mailItem.subject = te.value +" Outage"+" "+text11.value+tex111.value+tex11.value+tex21.value+tex31.value+tex41.value+tex51.value+tex61.value+tex71.value+tex81.value+tex91.value+" "+ text.value+" "+ tex.value+" session down"
mailItem.sendto = "[email protected]";
mailItem.copyto = textbox_1.value;
mailItem.BlindCopyTo = "";
mailItem.Body = "Dear All,\n\nNote: This e-mail is sent to Star Alliance member carrier contacts, their business partners and provider help desks.\n\nStar Alliance would like to inform you about the "+ tex.value +" interruption between Star Alliance and-"+" "+te.value+" "+text11.value+tex111.value+tex11.value+tex21.value+tex31.value+tex41.value+tex51.value+tex61.value+tex71.value+tex81.value+tex91.value+" "+ text.value+".\n\nWe are liaising with the airline's service desk to get more information regarding this issue.\n\n--\n\nStar Alliance Support\nEmail support at: [email protected]\nTelephone contact No: +1877 292 9784\n"
mailItem.Send (0);
}
</script>