I also want to place the "subscribers.txt" file in a secured area (cgi-bin) to protect the email addresses. I moved this file over and updated the code:
$filename = '/home/httpd/vhosts/domain.com/cgi-bin/subscribers.txt';
However, it errors out now. Is there a way to make this work?
Vragabond-
Works nicely. Thanks!
My last issue with this form is make sure the client enters each form field. Since I have over 20 forms with different numbers of fields for each one, whats the best way to implement this so if they dont fill out a field, they will receive an error message?
flubbard-
I just removed the "\r" and it has the same results. Not sure exactly what this is for since another forum user helped with with this script.
I'm just about finished with this script but I need a little more help. Here is the current code:
<?php
// see if newsletter was checked
$email = trim(@$_POST['email'] );
//@suppresses the warning when email is not set
if ( isset($_POST['newsletter']) &&!empty($email) ) {
$filename =...
Ok, I'm just about there :) I have different scripts that seem to do everything I need but I'm not sure how to combine them to work correctly.
Here is the code to email me the with the client's email address in the "From:" field when I receive the message:
<?php
$sender = $email;
$target =...
flubbard-
The sender's email address is showing up in the body:
-------------------------------
email address: email@email.com
-------------------------------
But I need it to actually show up in the "From:" of the email address, so I can simply reply to the email and have it go to the...
flubbard-
Thanks, I added your script but still receive this in the "From:" field when I receive the email:
---------------------
Sender Unspecified
---------------------
How do I have their emal address displayed, so when I reply to the email it will go directly to them?
Thanks!
DRJ478-
Thanks for the info. I have a sample script which I have had help with and been working on for the last few days. I just posted it on this forum. I'm having a hard time receiving specific info from the form.
If you have a sec, can you check it out?
Thanks!
Hey Everyone-
I would like some help on this script I have been putting it together for my newsletter signup page on my site. This current script below works for writing the client's email address and name into a text file (subscribers.txt). However, it still does not send me an email with the...
Hello,
I'm currently using a basic formmail.pl script for the forms on my website. I have a newsletter signup option on all of my forms for visitors to subscribe. Up until now, I have been importing the email addresses and names into a text file for my mailing list. I basically copy and paste...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.