Help - Search - Members - Calendar
Full Version: E-Mail Form Submissions
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
icanswim70
Hey everyone,

I'm brand new to the forum, and i'm hoping this question hasn't already been answered. If it has please point me in the right direction.

I'm coding a website for a YouTube Channel, very basic layout and design.

I want to have a form a new user can fill out to be added to a newsletter mailing list.

BUT...

I want the user info (name, email etc) to be sent to an email address for me to keep track of when sending the newsletter out so I can keep the sending list updated.

In other words I want to keep a list of people who want the newsletter.

The website I wrote is in HTML & CSS and would like to keep it to those languages

Is this possible without php?
pandy
Without PHP, but not without any server-side language, not in a reliable way. I doubt YouTube provide such things, at least I have never seen a channel with a form.

You can use mailto. But all that does is that it opens the user's email client with a pre-filled email. If there is an email client and if the browser is configured to use it. That's the main reason why it's unreliable. Many people only use webmail these days - it won't work. Or they may be at a computer at a library or at school or using a friends computer - it won't work.
http://htmlhelp.com/faq/html/forms.html#mailto-form

The best option may be to use a third party service. There used to be a lot of them around, don't know how it is today. But basically you put a form on your page and in the action attribute you put a URL provided by the service All the magic happens on their server, YouTube isn't involved at all, and you'll get your email. This could work, provided YouTube even allows forms in their pages.
pandy
Oops, I realize now I probably misunderstood, but I'm too lazy to rewrite my answer. You don't want to put this on your YouTube page, but on a totally different site, right? If you can't/don't want to use anything server-side, what I wrote about still applies. It's mailto (don't go there) or a third party service.
Christian J
QUOTE(icanswim70 @ May 23 2019, 06:17 PM) *

I want to have a form a new user can fill out to be added to a newsletter mailing list.

BUT...

I want the user info (name, email etc) to be sent to an email address for me to keep track of when sending the newsletter out so I can keep the sending list updated.

Perhaps a form is not necessary for this? One advantage with forms is that the user doesn't need an email account in order to send a message. But in this case the users need email accounts later on anyway, so you can send the newsletters to them. So why not just let them email you their subsbription requests (perhaps with "subscribe" as the subject line) the traditional way, using their own email accounts?

pandy
Yeah, that's an option too. K.I.S.S. biggrin.gif
icanswim70
Thanks for the graet info guys, I think you're right about the KISS point, and Christian made a great argument about letting them contact you first. A BIG RED SUBSCRIBE BUTTON IT IS LOL
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.