asdruball

MrPLC Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About asdruball

  • Rank
    Hi, I am New!

Profile Information

  • Country Portugal
  1. Email with Cx-Supervisor

    hello everyone, greetings, I need some help. I used the script for sending mail from page http://www.myomron.com/index.php?action=kb&article=45 and worked well with files attached. But my question is the following: I need to send the copy of page in cx supervisor where i have day consumption including historic of the Month which line that i need to use in attachment like "print screen" and send it by email. this is possible ? (Print scren to pdf not work because every day the save file is same name) thanks in advance the code Set objMessage = CreateObject("CDO.Message") objMessage.Subject = "teste de email" objMessage.From = "pc@gmail.com" objMessage.To = "my.mail@gmail.com" objMessage.TextBody = "teste" objMessage.addattachment "C:\test_count.pdf" objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465 objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = 1 objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60 objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com" objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "my.mail@gmail.com" objMessage.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "*******" objMessage.Configuration.Fields.Update objMessage.Send