/    Sign up×
Community /Pin to ProfileBookmark

VB help with form mailto:

I’m setting up a form that uses mailto: to send the data to several dynamically specified users. But, when I click the Submit button, there’s a Outlook message saying that the VBA Item.Send is being executed and prompts me Yes or No to continue. Is there a vbscript that can work around this? Also,

if yes, is it possible to mix vbscript with javascript in the same .htm page?

if no, darn. ?

TIA,

Chris

to post a comment
Full-stack Developer

2 Comments(s)

Copy linkTweet thisAlerts:
@AdamGundryJul 28.2004 — If there is a workaround to this, it is a massive security breach. Mailto forms cannot be submitted without user authorisation - to do otherwise would allow websites to get your email address simply by visiting one of their pages.

Of course, there could be an IE bug that allows it, but I would advise against trying to do so. If you want to do this, use a server-side script.

Adam
Copy linkTweet thisAlerts:
@steelersfan88Jul 28.2004 — [i]Originally posted by cjgtek [/i]

[B]if yes, is it possible to mix vbscript with javascript in the same .htm page?[/B][/QUOTE]
There is, but only IE will run the VBScript. It's a majorly confusing workaround though, it involves using document.write to write a javascript blovk of variables so JS will understand them.

Then to go along with it being IE only, it isn't worth it. If you need to use VB, use it on the server, not client-side.
×

Success!

Help @cjgtek 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

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