SMS on Render End

SMS on Render End

whitebirchstudios
Collaborator Collaborator
680 Views
5 Replies
Message 1 of 6

SMS on Render End

whitebirchstudios
Collaborator
Collaborator

23 years and I still can't get a text or email when my render ends. I don't get it! I know if I had my own SMTP server it would work, but I would venture to say 95% of us don't have one. This can't be too hard to implement. 

0 Likes
681 Views
5 Replies
Replies (5)
Message 2 of 6

miledrizk
Advisor
Advisor

Hi,

 

Yeah, it's frustrating especially when you have a long render,

What I do now to overcome this, is to use TeamViewer for remote access,

This way I can check on my phone the render progress, and in case Max crashes,

I can start a new render.

You can set TeamViewer so that you can access it all the time without the need

For someone on the other machine to give you a code.

------------------------------------------------------
miledrizk@gmail.com
3DS Max 2025, V-Ray 7
3DS Max user since 2003 (3DS Max 7)
V-Ray user since 2008 (V-Ray 1.47)
0 Likes
Message 3 of 6

whitebirchstudios
Collaborator
Collaborator

I use Chrome Remote Desktop, but I can log in 3-4 times before I see the render is done and then it could have been done a while ago. I am getting somewhere with this.

 

$EmailFrom = "bobby.parker@archvizbiz.com"
$EmailTo = "whitebirchstudios@gmail.com"
$Subject = "3DS MAX"
$Body = "Your rendering is done!"
$SMTPServer = "mail.hover.com"
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("bobby.parker@archvizbiz.com", "******");
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)

 

I can run this in PowerShell and it works, however, I can't get it to run from MAX. I tried this, but nothing happens.

 

DOSCommand "powershell.exe -command \"C:\sendmail\sendemail.ps1\"

0 Likes
Message 4 of 6

miledrizk
Advisor
Advisor

Try this:

Create a file with an extension .ms using notepad or by using the Maxscript Listener,

Inside that file type what you see in the image below and save:

launchemail.JPG

Now open the render setup dialog,

And in the Scripts rollout, Post-Render section click the File button

render.JPG

Now point to that saved .ms file and try to render

note: I never tried sending emails using this technique, by the line of code

In the .ms file will launch the saved .ps1 using PowerShell.

Hopefully, it will work.

 

------------------------------------------------------
miledrizk@gmail.com
3DS Max 2025, V-Ray 7
3DS Max user since 2003 (3DS Max 7)
V-Ray user since 2008 (V-Ray 1.47)
0 Likes
Message 5 of 6

whitebirchstudios
Collaborator
Collaborator

Yes, that is what I had to do. I'll record the process for others and share. I have been asking AD about this for literally decades and I never got an answer.

Message 6 of 6

whitebirchstudios
Collaborator
Collaborator
0 Likes