Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Email Newsletter Unsubscribe Script

Featured Replies

Hi there,

Im trying to write a bit of code that sends an email from a newsletter back to me showing the recipient's email address. I don't know how to capture the senders email address.

Ive tried 3 different ways of doing it:

1)

<?php

to = '[email protected]';

$subject = "Unsubscribe to ACWA Newsflash";

$msg = "Please remove this email address from the ACWA Newsflash email list.n";

mail($to, $subject, $msg );

?>

2)

<?php

$mail=$_GET['mail'];

$subject = "Unsubscribe";

$text = "The customer with the e-mail address".$mail." wants to UNSUBSCRIBE from the newsletter";

mail('[email protected]',$subject,$text,"From: $mail <$mail>");

?>

3)

This is just a link:

mailto:[email protected]?subject=Unsubscribe to ACWA Newsflash

But in none of the above am I capturing the sender's email address.

All advice gratefully received.

Cheers,

Steven

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.