Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send email by through button

Status
Not open for further replies.

joyceda59

Technical User
Apr 3, 2007
29
CA
Hi,

I have created this page where a user can send an email to the desired ppl through clicking on a button. Now I when i created the input tag for the button, I include a sub call for the onclick attribute. This sub basically takes all the email tests are paramaters(email from, to, cc, bcc, subject...). The sub create an email copy. Now, I am not able to send the email if i call a sub in the onclick function. It this the wrong idea. Please advice.

Here is my code:

If oRsSub("pdrStatus") = "CTA" Then

temp = temp & "<tr><td>&nbsp;</td><td align=""left"">" & "<input type = ""button"" value = ""Send Notification E-mail"" onclick = "" & Call SendEmailUtil('sriram.sampath@td.com', 'sriram.sampath@td.com', 'sriram.sampath@td.com', 'sriram.sampath@td.com', 'test', 'this is a test', 'YES' ) & "" />" & "</td></tr>"

end if

please only consider the html section written in response.write
 
... Please advice ...
My advice to you is to stop using this method to do your emails since you will expose your whole mail list to the web via a simple client-side view-source.

I suggest you explore a server-side solution. This will allow you to hide the email addresses.

Cheers,
Jeff

[tt]Jeff's Page @ Code Couch
[/tt]

What is Javascript? FAQ216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top