I am begginer in Web site.
But I want to know How I can create a gadget/script like this.
28aa7cfb7037f059f267ad299047367c
So whenever someone type their address in the field, then that address will be send to my email address.
and at same time that email will also get mail that He has subscribe ... (this website or whatsoever) with unsubscribe link:
Unsubscribe link will get me mail that this ID not want more Updates...

Dani AI

Generated

The screenshot in 's post is a simple single-field email capture. The desired flow (from the description) is: capture an address, notify the site owner, send the subscriber a confirmation that includes an unsubscribe link, and have that unsubscribe action notify the owner. A reliable, privacy-friendly implementation uses a persistent list (database), a tokenized link for confirm/unsubscribe, and a double opt-in so addresses are verified before being added to future mailings.

A straightforward self-hosted workflow is: present the form, POST to a server endpoint, validate and de-duplicate the email, generate a random token, store email+token+status (pending), send two messages (one to admin and one to the subscriber with a confirm link). When the subscriber clicks confirm the server flips status to active; the unsubscribe link points to an endpoint that sets status to unsubscribed and optionally sends an admin notification. Minimal pseudocode:

token = hex(random_bytes(16))
store({ email, token, status: "pending", ts: now() })
send_email(admin, "New signup", email)
send_email(email, "Confirm subscription", "https://site/confirm?token=" + token)

Security, deliverability and legal notes: always validate/sanitize input and defend against email header injection; never set outgoing SMTP From to an arbitrary subscriber address (use a verified domain); keep an indelible suppression list so unsubscribed addresses are never mailed again; record timestamps and consent for compliance (CAN-SPAM/GDPR); use a transactional SMTP provider or proper SPF/DKIM to improve deliverability. For low-effort, hosted list services (as mentioned) handle storage, double opt-in and unsubscribe automation; for custom builds, test with multiple providers and check spam headers and bounce logs before sending real campaigns.

The easiest way to get started for someone without a lot of web dev experience is to use a preexisting service.

Here's an example of one => http://www.bravemailer.com/

commented: Thanks Dani :-) +4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.