473,805 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can Javascript send emails??

Hi,

I am building a site for a client which has an enquiry form on it.
Normally I would something like PHP to send the form but the client doesn't
want to pay for a server that supports PHP, so the form is sent using the
mailto: command within the <form> tag. This sends the email fine but it is
rather messey. Could I use javascript to tidy up the form output and then
send an email with the contents, similar to the 'Mail' command in PHP?

Any help or advice greatly received!!
Jul 23 '05 #1
13 2885
Richard H wrote:
Hi,

I am building a site for a client which has an enquiry form on it.
Normally I would something like PHP to send the form but the client doesn't
want to pay for a server that supports PHP, so the form is sent using the
mailto: command within the <form> tag. This sends the email fine but it is
rather messey. Could I use javascript to tidy up the form output and then
send an email with the contents, similar to the 'Mail' command in PHP?


"Rather messy" is an understatement.

Using mailto: implies the existance and proper configuration of a "default
E-mail client", something not everyone has available to them. Worse still, the
very people who are having problems with your customer's Web site are the ones
most in need of contact with them, and the ones least likely to be able to do
so.

Tell your client to cough up the extra bucks for PHP or Perl support with their
Web hosting provider and do it correctly.

Client-side JavaScript is not going to allow you to clean up the resulting
E-mail in any way, use a proper server-side solution.

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq

Jul 23 '05 #2
On Wed, 15 Sep 2004 18:21:47 GMT, Grant Wagner
<gw*****@agrico reunited.com> wrote:

[snip]
Tell your client to cough up the extra bucks for PHP or Perl support
with their Web hosting provider and do it correctly.


If they really want to do it on the cheap, they could use one of the free
services, or one which offers form mail at a lower cost than full
server-side support (if you expect high traffic).

To Richard:

I've seen free web hosts provide form mail, even if PHP was out of the
question. It might be an idea to see if your client's host provides a
script already.

[snip]

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #3
Grant Wagner wrote:
Tell your client to cough up the extra bucks for PHP or Perl support
with their Web hosting provider and do it correctly.


I have run PHP on Linux and Perl on both Linux and Windows (I believe
there's also a PHP that runs on Windows). Never had to "cough up" any
bucks at all? Where are you guys getting PHP and/or Perl and coughing up
money?
--
Future historians will be able to study at the Gerald Ford Library; the
Jimmy Carter Library; the Ronald Reagan Library and the Bill Clinton
Adult Bookstore.
Jul 23 '05 #4
"Andrew DeFaria" <An****@DeFaria .com> wrote in message
news:5e******** *************** ***@msgid.megan ewsservers.com. ..
Grant Wagner wrote:
Tell your client to cough up the extra bucks for PHP or Perl support
with their Web hosting provider and do it correctly.


I have run PHP on Linux and Perl on both Linux and Windows (I believe
there's also a PHP that runs on Windows). Never had to "cough up" any
bucks at all? Where are you guys getting PHP and/or Perl and coughing up
money?


If you look closer, he wrote:
"...PHP or Perl support with their Web hosting provider..."

most web host charge extra if you want db-access or server side scripting
abilities in addition to the web space.

--
Dag
58°26'15.9" N 008°46'45.5" E
Jul 23 '05 #5
To be honest PHP is by far my prefered solution, but i am yet to find anyone
that allows server side scripting for free!!

Main problem is that the client picked and paid for his hosting before I got
involved. He had just purchased a mac (shudder) and so wants to host with
..mac. This is fine but i can not find anywhere whether they allow server
side or not! There set up is very much idiots guide to hosting your first
webpage. Anyone know whether .mac allow server side, or even how to contact
them to find out?? (they don't seem to have a contact address on their
site).

Failing all else I will have to trust the user has an email programme and
tell my client to deal with the mess!!

Thanks for all your help!
Jul 23 '05 #6
In article <ci**********@a thena.ukc.ac.uk >,
"Richard H" <rj***@kent.ac. uk> wrote:
To be honest PHP is by far my prefered solution, but i am yet to find anyone
that allows server side scripting for free!!
Have you looked at the free form processing site. For example, see:
http://www.form-mail.com/
http://www.response-o-matic.com/

These sites will forward your form data in an email.

Here is where I got the above sites.

http://www.google.com/search?hl=en&l...free+form+mail
&btnG=Google+Se arch

This search was gotten from ~kaeli~.

The server program cgiemail process form data on a server. See:
http://web.mit.edu/wwwdev/cgiemail/

mindspring.com has a grandfathered version of cgiemail.
Main problem is that the client picked and paid for his hosting before I got
involved. He had just purchased a mac (shudder) Wise move by the way. and so wants to host with
.mac. This is fine but i can not find anywhere whether they allow server
side or not! There set up is very much idiots guide to hosting your first
webpage. Anyone know whether .mac allow server side, or even how to contact
them to find out?? (they don't seem to have a contact address on their
site).


Well, he didn't spend much money on .mac. Tell him he needs a form
server. Find some other server with cgiemail on it.

Robert
Jul 23 '05 #7
On Thu, 16 Sep 2004 16:56:45 GMT, Robert wrote:
http://www.google.com/search?hl=en&l...free+form+mail
&btnG=Google+Se arch


Link tips..

A lot of what is in the Google links is unnecessary..

The link above, after we dump all the junk
Google themselves add into it, becomes..
<http://www.google.com/search?q=free+f orm+mail>
...but those 14,300,000 can be trimmed to be
a bit more specific with this search..
<http://www.google.com/search?q=free+" form+mail">
(54,800)

And.. even if you cannot trim a long link,
you can protect it from being broken by news
reader software simply by enclosing it in '<' '>'
<http://www.google.com/search?hl=en&lr =&ie=UTF-8&oe=utf-8&q=free+form+m ail&btnG=Google +Search>

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
Jul 23 '05 #8
Andrew DeFaria wrote:
Grant Wagner wrote:
Tell your client to cough up the extra bucks for PHP or Perl support
with their Web hosting provider and do it correctly.

I have run PHP on Linux and Perl on both Linux and Windows (I believe
there's also a PHP that runs on Windows). Never had to "cough up" any
bucks at all? Where are you guys getting PHP and/or Perl and coughing up
money?


Yes, PHP runs on Windows, and quite well.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #9
Randy Webb wrote:
Andrew DeFaria wrote:
Grant Wagner wrote:
Tell your client to cough up the extra bucks for PHP or Perl support
with their Web hosting provider and do it correctly.

I have run PHP on Linux and Perl on both Linux and Windows (I believe
there's also a PHP that runs on Windows). Never had to "cough up" any
bucks at all? Where are you guys getting PHP and/or Perl and coughing up
money?


Yes, PHP runs on Windows, and quite well.


*Sigh*.

The original post read (in part): "... I am building a site for a client which
has an enquiry form on it. Normally I would something like PHP to send the
form but the client doesn't want to pay for a server that supports PHP, ..."

So it was the original poster who indicated that his client did not want to
pay for a Web hosting provider that supported PHP.

My response was: "Tell your client to cough up the extra bucks for PHP or Perl
support with their Web hosting provider and do it correctly."

I thought the whole "... support with their Web hosting provider ..." was
adequate to explain I am talking about his client's choice to host their Web
site on a provider who does not offer PHP support for the money they are
paying. Web hosting providers will sometimes charge more for PHP or other
server-side technologies over and above what they would charge for bare-bones
HTML only Web hosting (when and if they offer various service levels).

His client downloading and installing either Perl or PHP on either Linux or
Windows at no cost might be a great victory for the open sores software
movement, they might even be able to put together a kickass screaming site
that runs off http://localhost. But it does his client NO GOOD WHATSOEVER
because none of the code written will do what it is supposted to on their
choice of Web hosting provider because they are not paying that Web hosting
provider for PHP support.

So yes, if I want PHP support on a publically accessible Web site hosted by a
3rd party, I will most certainly have to "cough up the bucks" if I want an
appropriate amount of storage, bandwidth, administrative tools, back-end
database, site logging and no Web hosting provider inserted ads (which is what
you'd want if you are a business running a Web site).

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4816
by: Thom McGrath | last post by:
I'm writing a simple mailing list program, and I would like to know what the suggested method of sending a large number of emails to a list of addresses. (sounds like spam, no?) It's perfectly legit, it's just an opt-in mailing. I have a feeling that using a 'while' loop with repeated calls to mail() is not the best practice. Is there something better I should be doing?
40
11920
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the following import win32com.client
28
3039
by: Noone Here | last post by:
AIUI, it was not all that long ago when the threat to personal users, was attachments that when executed compromised machines with keyloggers, trojans, etc. Now it seems that the big problem is reading a webpage or an HTML e-mail and getting affected through the scripting. My understanding is that the script downloads the malicious program from the web and sets it to run on start up through the start-up folder or in the registry. I...
3
1533
by: Roop | last post by:
Hello All, I need to ask one thing Please help me out form this..... I need to send a mail through Javascript. This mail includes the details of the User . I search with light and lamp but did n't get the sucess. Please sugggest me the code for that.
7
1815
by: Steve | last post by:
hello, i need to send emails ( HTML emails ) that have javascript processing kept enabled when they reach their destination.i tried but seems everything related to javascript ( events, keywords etc.. ) is deleted when mail reaches destination. is there a workaround for this?
4
7689
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. But sometimes even when I'm just sending one e-mail the web page takes a minutes or so to post. Can anyone tell me why it is so slow, or how to fix the problem? To address this I am thinking of just creating a queue table to write the emails...
0
1685
by: =?Utf-8?B?UmljaA==?= | last post by:
Hello, My company will be hosting a webcast, and I need to send out 2000 individual emails to people who signed up (for login information...). I created an smtp app that I can loop through which uses smtp and our Exchange mail server. The smtp app works fine. I tested it on 10 test emails and called Client.Send 10 times. The emails went through (I emailed myself). My question is if anyone knows if Exchange server would be bogged...
3
1995
by: Ken | last post by:
I am trying to run two form.submit() in sequence when clicking on <input image... ..."try this" When calling send() with only invoice.submit active, the form invoice works correctly. When calling send() with only setTimeout("transfer.submit()", 10000), the form transfer works correctly. When both are active, the php script runs and sends an email but the
4
1958
by: shailendra deshpande | last post by:
right now i have only pain html page.and i want to send email through it using javascript plz. anybody tell me how to send email from plain html page using javascript. thanks in advance Shailendra Deshpande
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7646
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4323
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.