/MAIL, --
, Address
, Fname
, Ext
Mails file to the specified address.
--
Unused field.
Address
Email address (up to 64 characters) of the intended recipient of the file.
Fname
File name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name.
Ext
Filename extension (eight-character maximum).
Issue the /MAIL command to alert someone when a long-running job has completed, as shown in this example:
... SOLVE /MAIL,,YourName
@YourDomain.com
,jobdone,txt
If you are running ANSYS in a Microsoft Windows environment, you must configure BLAT (a freeware program provided with ANSYS). Before issuing the /MAIL command, enter this command from the C:\Program Files\Ansys Inc\V182\Ansys\Bin\Intel directory:
If you are running ANSYS in a Windows x64 environment, enter this command from the C:\Program Files\Ansys Inc\V182\Ansys\Bin\Winx64 directory:
blat -install<email server name>
<username>
@<domain>
where:
<email server name> is the name of the user’s email server; for example, smtphost.xyz.com
<username>@<domain> is the email address of the user; for example, john.doe@xyz.com
Because Windows cannot operate on a busy file, you cannot mail standard ANSYS output. Instead, redirect the output to a file and then mail that file, as shown in this example:
... /PREP7 /OUT,scratch.out : : FINISH /OUT /MAIL,,YourName
@YourDomain.com
,scratch.out FINISH