Interface: NetworkManager

Interfaces > Core Interfaces > NetworkManager

 

   

Core Interfaces - Quick Navigation

The NetworkManager Interface exposes a method to send email messages via MAXScript.

Available in 3ds Max 2009 and higher.

   

Methods:

<boolean>NetworkManager.Send <string>to <string>from <string>subject <string>body <string>server 	 

Sends an email message.

The first argument is the address to send to.

The second argument is the address the message is sent from.

The third argument is the subject of the message.

The fourth argument is the body of the message.

The fifth argument is the email server to use to send the message.

EXAMPLE:

(
theAddress = "youremail@yourcompany.com"
theSender = "myemail@mycompany.com"
theSubject = "Greetings from 3ds Max!"
theBody = "This email was sent by MAXScript\n"
theBody += "from inside of 3ds Max!\n\n"
theBody += "Cool, eh?"
theServer = "smtp.myprovider.net"
res = NetworkManager.Send theAddress theSender theSubject theBody theServer
if res then
messagebox ("Email sent successfully to " + theAddress)
else
messagebox ("Failed to send email to " + theAddress)
)