Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

216
Visualizações
How to send customized Outlook email from Bamboo with outlook object? Do we need outlook to be installed in the Bamboo server?

I am running a .js file to send customized outlook email from my local machine eclipse. We need to put customized HTML table in the email and so we are using .js file so that we can change the HTML content from our code before sending the mail every time.

The code in the .js file is as below but the HTML content is not relevant as it can be anything.

Question is - How to send the same from Bamboo as our organization Bamboo server will not have my outlook setup? or is there any other way to do it?

Any suggestion or solution is greatly appreciated.

var theApp = new ActiveXObject("Outlook.Application")
var theMailItem = theApp.CreateItem(0)
theMailItem.to = "test1@test.com";
theMailItem.Subject = "This is subject";
theMailItem.HtmlBody = "<!DOCTYPE html>"
+"<html>"
+"<head>"
+"<title>Example</title>"
+"</head>"
+"<body>"
        +"<table class='myTable'>"
        +"<tr>"
            +"<th>Project</th>"         
        +"</tr>"        
+"</body>"
+"</html>";

theMailItem.send();
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The Considerations for server-side Automation of Office article states the following:

Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, ASP.NET, DCOM, and NT Services), because Office may exhibit unstable behavior and/or deadlock when Office is run in this environment.

If you are building a solution that runs in a server-side context, you should try to use components that have been made safe for unattended execution. Or, you should try to find alternatives that allow at least part of the code to run client-side. If you use an Office application from a server-side solution, the application will lack many of the necessary capabilities to run successfully. Additionally, you will be taking risks with the stability of your overall solution.

If you use Exchange accounts in Outlook you may consider using EWS or Graph API instead.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda