View Full Version : maxscript mailto: emailadres

07 July 2011, 04:20 PM
Heya all,
I would like to have a hyperlink in my maxscript and when it got clicked it open the outlook express to send a mail.
The same as when you click on a website mail to button.

This is the code I thought that should do it, but obviously it doesn't work (else I wouldn't be posting).
Anyone knows what I did wrong or anyone that succeeded with this in another way ?
Any help would be greatly appreciated !

hyperLink mail_to "email :" address:""

07 July 2011, 04:30 PM
Do you have a default email client installed? It wouldnt work otherwise, anyway, have you looked at dotnet Process.Start ? That might do it, I'm not sure.

Process = DotNetObject "System.Diagnostics.Process"
Process.Start "

Something like that.

07 July 2011, 04:08 AM
theAddress = ""
theSender = ""
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 = ""
res = NetworkManager.Send theAddress theSender theSubject theBody theServer
if res then
messagebox ("Email sent successfully to " + theAddress)
messagebox ("Failed to send email to " + theAddress)

07 July 2011, 07:14 AM
mailto is valid inside html page but address property of hyperLink could be string sent to ShellExecute. for instance, this is also valid:
hyperLink pic "image" address:"c:/temp/foo.jpg" i.e. 'mailto' would not work with hyperLink.

CGTalk Moderation
07 July 2011, 07:14 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.