Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   javaccript code (https://www.warriorforum.com/programming/19375-javaccript-code.html)

Lucysmith 10th October 2008 11:13 PM

javaccript code
 
Hello everybody

This is lucy smith, new to this forum as well as javascript, i am trying to write code to send an email using javascript but was enable to do it and also a vertical scroll bar moving up code i need urgently, kindly help me either providing code or provide me source from source from where i can get it

Amsterdam 13th October 2008 08:17 PM

Re: javaccript code
 
JavaScript is a client side scripting language. Sending email from a Website requires a server side language such as PHP.

Hope this helps,

T

Sean Kelly 14th October 2008 09:21 AM

Re: javaccript code
 
You do not need Javascript to do that you want.

Simply include a mailto link in your page and when the user clicks on it their email client is automatically opened with the 'to' field automatically prefilled.

Example:
Code:

<a href="mailto:you@somedomain.com">contact us</a>
You must make sure to encode the email address so that bots and webpage scrapers do not harvest your email address for spamming. This is VERY important.

Try this:
Encrypt mailto-email links

Sean

rirara 15th October 2008 02:54 PM

Re: javaccript code
 
You can't send email with javascript, it is a client side language. Use php instead.


All times are GMT -6. The time now is 06:11 PM.