[Closed] Sending email thru Maxscript
Hi there anyone know how to send an email to various recipients thru Maxscript without the aid of external programs? Thanks in advance
Not as far as I can see. You can launch an external app in max using an activeX control:
rollout RO "" width:162 height:300
(
activeXControl ax "mailto://[i]email@email.com[/i]" pos:[17,10] width:129 height:126
)
createDialog RO
Thanks but this is not quite what I wanted, I want something like Max notification e-mails, but with the possibility of having more than one mail recipient… maybe something that accesses the imapi layer on windows or something… :\
You can use the Winsock activexcontrol for this. The only problem is that (afaik) this control only ships with Visual Studio, not with Windows.
I wrote a simple example on how to connect to a mail server using the Winsock control. See the online reference topic “ActiveX By-reference Arguments for Methods and Events”. Google-ing a bit for “smtp protocol” should get you some information about smtp commands and server responses.
Another way to have your script send an email could be to add a browser activexcontrol to your dialog and have it connect to a custom PHP page. PHP has a built-in mail command which is pretty easy to setup.
- Martijn
Thanks alot, that was what I haved in mind, the activex thingie, I’ll have to take a better look, I just wanted to know if it was possible
Err can you put that in other words ? I didnt quite understood it, I have Visual Basic Express installed, so I think the winsock control is there… and you can download it for free from the MS site
PS- By the way take a look at another application I’m developing, it’s not directly related to maxscript, but its still some sort of script http://forums.cgsociety.org/showthread.php?t=295376
If you make a plugin that uses it can people download/install it without installing VSE?
I really dont know until I start to code it and see what it need, I dont do programming stuff for 2 years… the other application I’ve wrote only needs .NET Framework… so I think it will be the same for this one… I think.
Hi there, I’ve sucessefully developed this script with the help of an external application developed by me just to send out the email… but now I’m having some trouble in doing something like the Notify on Failure feature that Max has… anyone knows how can I access this info ? I’ve searched on CGTalk, Maxscript help… and nothing… Bobo help please