PDA

View Full Version : Sending an email



Deb
August 24th, 2003, 02:45 PM
Has anyone been success in sending an email from within Flash MX? I am trying to launch the email client & being able to add a subject & body information. I have been trying all kinds of combinations with no luck

Also, I have an input box labeled recipient so when I launch the mail client I want the recipient email address to automatically appear in the To line.

Thanks in advance for any help.

Deb

claudio
August 24th, 2003, 02:59 PM
submitbutton.onPress = function() {
var recipient = "mailto:"+recipientText;//recipientText is the instance name of your input textfield
getURL(recipient);
};

Digitalosophy
August 24th, 2003, 03:00 PM
something like this :


on (release) {
getURL("mailto:youremail@yourdomain.com" + "?subject=Website Contact Info" + "&body=" + "Name: " + nm + newline + "Email: " + em + newline + "Phone: " + ph + newline + "Message: " + ms);
}

where nm, em, ph, and ms are you form variables

oops, claudio must have posted while i was typing :)

eyezberg
August 24th, 2003, 03:11 PM
skip the first 3 [" + "] in digis code..

Deb
August 25th, 2003, 07:06 PM
Thanks everyone for all your help. I really appreciate it. It worked out great.

Deb