Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28991 Discussions

How to send a mail message from a fortran program

michael_green
Beginner
962 Views

Hi All,

I have a console program that runs as a scheduled task overnight on my server. I want it to send me a mail message if any error occurs. I presume I need some MAPI functions but the online help is totally C oriented (something I don't handle well) and I really don't know how to proceed. One little example is all I need. Can anyone help?

With many thanks in advance,

Mike

0 Kudos
2 Replies
tropfen
New Contributor I
962 Views
try a look at this webpage:

www.blat.net

Frank
0 Kudos
anthonyrichards
New Contributor III
962 Views

Yes, I just copied BLAT.EXE to my WINNTSYSTEM32 folder and after that just used

BLAT - -To(your e-mail address here)-body "(your subject here)"

as the command string from a command prompt, so all you have to do thenis use


ret=SYSTEM("your DOS command string goes here")

0 Kudos
Reply