View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Sending reports and timestamped file by emailing

5.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 764 KB File ID: #29183 Version: 1.1
image thumbnail

Sending reports and timestamped file by emailing


Michael Chan (view profile)


29 Oct 2010 (Updated )

Illustrates result updates, activity tracking, timestamping and file zipping, tarr'ing via email.

| Watch this File

File Information

main executing reference usage:
[1] usage_send_mail.m
Illustrates email sending with multiple separate files or single timestamped tar file. Attachment failure is properly handled, with continuation of report emailing without the attachment.

[2] usageTar_unTarFiles.m
Illustrates 'zipping and unzipping' of tar files. Timestamping facility is also provided. The timestamp is also adapted for files with multiple extensions, ie. *.tar.gz, etc.

The objective is to illustrate updates of matlab results activity tracking via email. The sub-objectives subsume illustrations of utilities for timestamping and file zipping/ tar'ing.

This subsumes an enhanced version of matlab gmail'ing ( The enhancement includes:
1. Better handling of attachment failure, with continuation of report emailing without the attachment.
2. Timestamping of tar files, precision may be in minutes, seconds or in milisecs.

Sample output:
Cannot open file "images\fileThatDoesNotExists.bmp".
Email sent without attachment. [attachment Failed]
Email sent.

* Caveat : Illustrative Purposes. Please include your own sender gmail account and password.

If the demo has more elegant presentation, please do not hesitate to suggest and send feedback to author.

Thank you.

Michael Chan JT


This file inspired Motif Finding and Track, Collect And Tar Inputs And Outputs.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
10 Dec 2010 Yen Hanning

09 Nov 2010 1.1

Improvement on the newline char in message sent via email.

Contact us