Mail with attachement

Tools and several solutions to manage Control-M products
Post Reply
User avatar
tinytouns
Nouveau
Nouveau
Posts: 4
Joined: 15 Oct 2009 12:00

Mail with attachement

Post by tinytouns » 10 Dec 2009 2:03

I am on ControlM 6.2.01 on Windows and I need to know if it is possible to send an email with attachement?

User avatar
tinytouns
Nouveau
Nouveau
Posts: 4
Joined: 15 Oct 2009 12:00

Post by tinytouns » 14 Dec 2009 11:49

Nobody have a response???

User avatar
rahulsehgal
Nouveau
Nouveau
Posts: 148
Joined: 19 Mar 2009 12:00
Location: Delhi
Contact:

Post by rahulsehgal » 14 Dec 2009 2:35

Hi,

Its not possible to send an e-mail with attachment using Control-M, you can only send SYSOUT as an attachment using DO MAIL Option.

Other way is you can trigger a batch file to send an e-mail when your job completes.

Regards,
Rahul Sehgal

User avatar
tinytouns
Nouveau
Nouveau
Posts: 4
Joined: 15 Oct 2009 12:00

Post by tinytouns » 14 Dec 2009 5:12

How I can do a batch file?

User avatar
rahulsehgal
Nouveau
Nouveau
Posts: 148
Joined: 19 Mar 2009 12:00
Location: Delhi
Contact:

Post by rahulsehgal » 15 Dec 2009 10:21

Hey Sorry, not sure how to do it on windows to send an e-mail with attachment through command prompt, we can do it on Unix to send an e-mail with an attachment on completion of a Control-M job.

Regards,
Rahul Sehgal

User avatar
tinytouns
Nouveau
Nouveau
Posts: 4
Joined: 15 Oct 2009 12:00

Post by tinytouns » 15 Dec 2009 12:18

I can not access to the unix server only on windows and can not send it to the unix server.

No Solution?

baralem

Post by baralem » 15 Dec 2009 2:39

Install a windows utility to send emails from command line and then create a script to send the email. Check on google to see what program you can use.

regards.
martin

User avatar
punchy
Nouveau
Nouveau
Posts: 27
Joined: 30 Oct 2008 12:00
Location: Melbourne

Post by punchy » 16 Dec 2009 1:53

I have seen at a customer site that they use "blat" for Windows command line mailing. A quick look at blat doco appear to support the sending of attachments, this needs to be verified but worth looking into as blat is open source.

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 16 Dec 2009 2:08

i confirme blat is very ofen used in windows

regards
philmalmaison

User avatar
ElAdl
Nouveau
Nouveau
Posts: 5
Joined: 15 Dec 2008 12:00

VBS script for sending mails

Post by ElAdl » 14 Jun 2010 3:07

HI

You can use the below code in a VBS script ,just fill in with your requirment.
----------------------------------------

Set objEmail = CreateObject("CDO.Message")
objEmail.From = "Mail of sender"
objEmail.To = "Recipient"
objEmail.Cc = ""
objEmail.Subject = "Your subject"
objEmail.Textbody = "text body without pressing an enter"
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/config ... /sendusing") = 2
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/config ... smtpserver") = "SMTP IP"
objEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/config ... serverport") = 25
objEmail.Configuration.Fields.Update
objEmail.Send

User avatar
avaidya10
Nouveau
Nouveau
Posts: 10
Joined: 05 Jan 2007 12:00
Location: New Jersey

Post by avaidya10 » 08 Jul 2010 11:19

try blat.exe

User avatar
mauriziog
Nouveau
Nouveau
Posts: 807
Joined: 08 Jun 2007 12:00
Location: Varese - Italy
Contact:

Post by mauriziog » 05 Aug 2010 4:55

Confirm: use a blat.exe utility.
You can create a single script that send e-mails with or without attachment.

For example I use this method for:
- send "normal" e-mail but with group of "To" and "cc" e-mails addresses, saved on test files (centralize the administration: add,modify and remove addresses). Normal e-mails whith variables also in the subject (not possible in controlM)

- send e-mails with attached the sysout of execution (in 6.2 were not possible)

- send e-mails with attached others files (output, logs, other)
- send e-mails with compressed (zip) attached files:
- sysouts very large (in case of notok often happens)
- large files output
- many files to attach

All these options are configured in the script that use blat, passing the right parameters.

Note: i use this program also in step panel using the "shout" option....
....and more !
;-)

User avatar
markf
Nouveau
Nouveau
Posts: 134
Joined: 13 Jul 2006 12:00
Location: Switzerland
Contact:

Post by markf » 06 Aug 2010 10:43

Blat for Windows, mailx for Unix ...

Post Reply