Return to site

Sending Logic Files Via Email

broken image


How to send SMTP email from Mainframe environment

To send an email within the logic of your action or process, do the following: Drag the Send Email tool from the Flow Toolbox into the action flow or process flow, depending on the type of flow you're designing. Set the runtime data for the message header fields using Expressions in the Send Email arguments:. From: the email address of the sender. In the Gmail dialog, select Sign in and sign in to the Gmail account you want to send the email from. Once signed in, click in the To textbox, and the dynamic content dialog is automatically opened. Next to the When an HTTP request is received action, select See more. In this video we learn how to create a simple logic app on Azure that sends an automatic email after recieving a new specific email on our gmail inbox, you c. Before you send audio through email, you'd better check whether the file size exceeds the maximum attachment limit. If you need to upload an audio file larger than the maximum attachment limit of the email service, you can compress the file with an audio compressor like WonderFox HD Video Converter Factory Pro, upload the video to YouTube, or send the audio or music to Google Drive for Gmail. This will be a short one: In this post I show how to use Logic Apps to monitor a file for changes - if the file was changed, send it via email as attachment. I have a file that is changed periodically but unknown when. I want to be informed when the file is changed with the file as attachment.

If you have worked on the mainframe, you will probably be generating lots of reports but sending email reports to stakeholders in an automated way using SMTP is a big trouble.

In theory this is very simple task but actual implementation is often time taking due to various factors such as site settings, SMTP settings and of course the data that you want to send. So let's see how we can get this done quickly. Make sure pay attention to details including blank lines as those are very important.

JCL to send email using IKJEFT01

Copy below JCL to a PDS member:

//JOBNAME JOB (@),'EMAIL-JCL',
// MSGCLASS=X,CLASS=1,NOTIFY=@
//STEP1 EXEC PGM=IKJEFT01
//SYSTERM DD DUMMY
//SYSPROC DD DUMMY
//SYSTSIN DD DSN=XMIT.PARMS,DISP=SHR
//XMITDD DD DSN=SMTP.PARMS,DISP=SHR
// DD DSN=ATTACH.DSN,DISP=SHR
// DD DSN=QUIT.DSN,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
/* END OF JCL

Contents of XMIT.PARMS

Replace SITE with the actual name of your SITE or LPAR which has SMTP setup

Contents of SMTP.PARMS

HELO SITE
MAIL FROM:
RCPT TO :
DATA
TO:
SUBJECT: Attached is your report
MIME-VERSION: 1.0
CONTENT-TYPE: MULTIPART/MIXED; BOUNDARY='TECHNOLOGY CENTRAL'


--TECHNOLOGY CENTRAL
CONTENT TYPE: TEXT/HTML

Your Email body goes here

--TECHNOLOGY CENTRAL
CONTENT-TYPE: MULTIPART/MIXED;CHARSET=UTF-8
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=Daily_Report.txt
CONTENT-TRANSFER-ENCODING: 8Bit

Replace SITE on line 1 with the actual name of your SITE or LPAR which has SMTP setup.

Also make sure blank lines are present including last line. Open source sound converter.

ATTACH.DSN is the attachment dataset. That is, it contains the contents which you want in the attachment.

Contents of QUIT.DSN

As a rule, always have a blank line after the content headers, otherwise email delivery will have issues.
Also, in the attachment file/data , make sure no NULL characters(x'00') are present. SMTP stops transfer at NULL bytes and moves to next data line, so you will have missing data in that case.
Some sites may enforce valid email, so use valid FROM and TO email address.

JCL to send email using IEBGENER utility

You can also use IEBGENER for sending emails like below. Dataset contents will be same as above

//STEP1 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD DSN=SMTP.PARMS,DISP=SHR
// DD DSN=ATTACH.DSN,DISP=SHR
// DD DSN=QUIT.DSN,DISP=SHR
/* END OF JCL

Caution:
  • SMTP has restrictions that e-mail only consist of valid ASCII characters and can't handle binary values embedded in an e-mail. If you have data having binary or null values , then either base64 encode them using

or zip and transfer them using a ZIP utility.

  • Make sure file length for all 3 files i.e SMTP.PARMS , ATTACH.DSN, QUIT.DSN are same. Most likely your report/attachment file length can not be changed. In that case create other 2 files with same length as attachment file.

Other questions this post should help answer:

  • How to send email with attachment from mainframe JCL using SMTP
  • Data loss with email attachment from mainframe
  • Issues with sending email from mainframe using JCL.

External Links: http://www-01.ibm.com/support/docview.wss?uid=swg21512178

Any questions or issues, use the comments below to contact me.

If you are working with other users, can you send your multi-track Project to them so they can contribute to it? Can you send an audio message with some music and email it to a relative? Or what if you want to open your Project on another of your own computers running a different operating system?


  • 2Sending an exported audio file

Sending Projects to others

Send Files Via Bluetooth

It's quite possible to send an Audacity Project to another person or open it on another computer of your own, so that the Project can be opened in another copy of Audacity with all the tracks, label and envelope information in situ. However when opening the AUP Project file you need to have its associated _data folder with the same name as the AUP file present in the same folder. For example, to send a Project to someone else you could send the AUP file and _data folder in a compressed .zip archive. Free Windows tools to create .zip archives include 7-Zip or IZArc. Free Mac tools include Keka or Apple's built-in compression utility. Zip compression is lossless, so does not reduce the space on disk very much. Ask your recipient to extract both the AUP file and _data folder to the same directory then open the AUP file from inside that folder.

In practice, the problem with sending such a folder to someone else is the size of the _data folder. At Audacity's default 32-bit float sample format / 44100 Hz sample rate using lossless uncompressed audio, stereo Projects take 20 MB of space per minute, which rules out sending the project by email.

To send your project, first close it (saving changes) so that Audacity can discard the surplus data files which allow undo and redo of edits while projects are open. This way, only the audio for the current state of the project is included. If you forget to close the project before zipping, Audacity will complain about these surplus files, calling them 'orphan block files'. If this happens, the safest course is to tell Audacity to 'continue without deleting' the orphans, at least until you are sure the audio of the project is correct.

Then use a zip application like those above to place the AUP file and _data folder inside a zip file. Then find a suitable free internet file transfer service to send your zip file. Recommendable services include the following. Check the limitations for free accounts on size and number of uploads, maximum permitted number of downloads, and length of time files are stored for.

  • http://www.hightail.com (free trial)

Don't forget old-fashioned solutions too if you are still on slow dial-up internet. You can always combine your AUP Project file and _data folder in a .zip file, burn this to a data CD with Windows Media Player or similar then send it by postal mail.

You can produce a small, compressed project for distribution to others using File > Save Project > Save Compressed Copy of Project...
  • The audio in the _data folder is in the form of one OGG file per track of the project.
  • The OGG files are very slightly lossy, whereas when saving a project by File > Save Project > Save Project or File > Save Project > Save Project As.. the .au files in the _data folder are lossless.


Sending an exported audio file

You can also send an exported audio file from your Project to the other user. Only Projectxe2x80x93specific information such as label and envelope data will be lost by exporting instead of saving a project.

To export your Project as an audio file, choose the File > Export command. Choices:

  • Exporting as a WAV or AIFF file creates a file with no loss of audio quality, but this takes 10 MB of disk space per minute for CD quality (44100 Hz, 16-bit stereo).
  • Exporting from Audacity as FLAC provides lossless compression and reliably reduces file size by about 40% compared to WAV or AIFF.
  • Exporting as an OGG or MP3 greatly reduces the size of the exported file, at the expense of some quality loss.
    • OGG tends to have slightly higher quality than MP3 for the same file size, but not all software players can accept OGG, and most websites hosting audio files expect MP3.
    • Audacity's default MP3 export bit rate of 128 kbps gives very reasonable sound quality for about 1 MB of space per minute. To compress the MP3 to a still smaller file (at the cost of further quality loss), choose 'MP3 Files' in the Export File window, press the button then reduce the bit rate in the 'Quality' dropdown.

      For example, a 64 kbps MP3 would take up 0.5 MB (500 kb) per minute, because 64 kbps is half the default bit rate of 128 kbps.

For all formats except MP3, you can reduce the exported file size further by reducing its sample rate. Do this by changing the project rate dropdown bottom left of the screen. Reducing the project rate below 44100 Hz is only recommended for speech.

Sending files by email

You should always attach your audio file to the email message. Some email clients can embed the audio inside HTML email messages so that the recipient hears the audio on opening the email without having to open an attachment. However whether the recipient will hear the audio depends on the recipient having an HTML email client (or having HTML enabled without any security restrictions in place). Many email users disable HTML email due to its perceived security risk.

Sending files greater than 5 MB by email is usually out of the question due to server bandwidth and storage restrictions. Some webmail services do allow larger messages to be sent. For example, Gmail allows sending messages up to 25 MB, but this still depends on the recipient's email service accepting large attachments (Gmail now accepts incoming attachments up to 50 MB). The best solution is often to use a web-based transfer service like http://www.yousendit.com, http://www.sendspace.com or http://minus.com/, or burn the exported audio file to an audio CD and send it by postal mail.

If you want to burn to an audio CD you need to export 44100 Hz, 16-bit stereo WAV or AIFF files, and tell your burning software to burn an 'audio' or 'music' CD. For instructions on how to do this, see How to burn CDs. Audio CDs will retain the full quality of the original track in Audacity, can contain 74 xe2x80x93 80 minutes of music and can be played in computers and on any standalone CD player (and some standalone DVD players).

Exporting from multi-track projects

If you have multiple tracks in your Project, Audacity by default will mix these down to a single mono or stereo track when exporting to an audio file. To export separate tracks you can:

  • Use File > Export > Export Multiple.. and 'split files based on tracks'
  • Select the first track, choose File > Export > Export Selected Audio.. then repeat in turn for the other tracks.

Sending Logic Files Via Email Free

The recipient can then shift-select and multiple import each file into separate tracks of an empty Audacity Project.

Alternatively, current Audacity can export the individual tracks in a Project as one multi-channel audio file. So if you had a Project with six mono or left/right tracks, it could be exported as a one six-channel audio file, and any user of Audacity 1.2 or later can open that file and see the channels displayed as individual tracks.

File sending site

To use multi-channel export, go to Import/Export Preferences and enable 'Use custom mix'.

Via

To use multi-channel export, go to Import/Export Preferences and enable 'Use custom mix'.

Sending to someone using a different version of Audacity

If you or the other party created the project with a legacy version of Audacity, please note the following restrictions.

  • If the person you are sending the Project to has a legacy 1.2.x version of Audacity you will need to save the Project in a 1.2.x version of Audacity, because 1.2.x versions of Audacity cannot open Projects created in 1.3 or later versions.
  • If the person you are sending the Project to has Audacity 1.3.2 or later, they should be able to open a project created in 1.2.x, but ask them to back up the AUP file and _data folder on receipt to be sure. To make a backup, copy the AUP file and _data folder and paste them into a different folder. Once they do save that project in 1.3.x or later and send it back to you, you will need 1.3.x or later yourself to open it.
  • If the person you are sending the Project to uses Audacity 1.0.0 (users on Mac OS 9 are limited to this version of Audacity), you must create the Project in 1.0.0, because 1.0.0 cannot open Projects created in 1.1.0 or later. If that person sends you a Project created in 1.0.0, you should generally be able to open it in 1.1.0 to 1.2.6, but Audacity's conversion of a 1.0.0 Project to the new format used by 1.1.0 or later does not always work. You should not open Projects created in 1.0.0 in current versions of Audacity.

Sending to someone using a different operating system or platform

  • Zip formats do not support reliable character encoding, so for the name of the project, labels, track names or metadata, only use A to Z or a to z characters, whole numbers (0 to 9), underscore or hyphen-minus (or use the NUMPAD_SUBTRACT key).

    Anything else could be incorrectly interpreted by the unzip application on the other operating platform.

  • Also use only A to Z or a to z characters, whole numbers (0 to 9), underscore or hyphen-minus (or use the NUMPAD_SUBTRACT key) if either party created the project on Windows 98 or ME which are non-Unicode systems. This is the case even if both parties are on Windows.




broken image