Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6199 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

This topic is 6199 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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