/    Sign up×
Community /Pin to ProfileBookmark

Please help with email function?

I’ve been trying to get some help for this one for along time. So far no answers so thought i’d turn to you guys. Heres the problem: I have a function script for email from my website. Its set to when you click on the button “Send site to friend” it fills in the “subject” field and the “message field”. Problem is, it works with IE outlook express but not Netscape mail.

Netscape mail is blank entirely. How to get it to work with Netscape I’m lost. Who can help? Heres the function:
function popupMessage() {
// SET MESSAGE VALUES
var to = “”;
var cc = “”;
var bcc = “”;
var subject = “Hey, check out this site!”;
var body =
“You gotta check this out! nntClick on the link below.: n” +
“n” +
“nhttp://www.globalpersonalprotection.com” +
“nnSincerely,nn” + “Me”;

// BUILD MAIL MESSAGE COMPONENTS
var doc = “mailto:” +

“?cc=” + cc +
“&bcc=” + bcc +
“&subject=” + escape(subject) +
“&body=” + escape(body);

// POP UP EMAIL MESSAGE WINDOW
window.location = doc;

Thanks in advance to whomever can tell me how to fix this one!
Kevin1?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@pyroSep 23.2003 — You'll find it will work much better if you use a server side language such as PHP to send email: http://www.webdevfaqs.com/php.php#mailer or try searching the HTML forums for "refer a friend" as I know I've given someone a script that does just that.
×

Success!

Help @Kevin1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...