Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto responder with php

Status
Not open for further replies.

killbuzz

Technical User
Mar 21, 2001
103
US
Okay this is what i have my server i run my website off of has auto responders and i made one. im using a flash mail form for a newsletter and they put their name and e-mail address. My php file i have is like this

<HTML>
<HEAD>
<TITLE>Form Mailer</TITLE>
<BODY>


<?php


$TextVariable = '&results=';
$response = 'Data Sent. Thank You..';


echo $TextVariable;
echo $response;

mail (&quot;newsletter@killbuzz.com&quot;, &quot;Form Response&quot;, &quot;

Form Response:

name: $name
email: $email

Sent From : $REMOTE_ADDR


&quot;);


?>


</body>
</html>

What i need is to know the command i can use to make the e-mail they put in the box to e-mail the newsletter that has the auto responder as in They put there e-mail in the box and hit submit the sumbmit is attached to the php file on my website and i need it to use their e-mail that they put to e-mail the auto responder so they get a e-mail back and i get their name and e-mail aswell sent to me..

Hope i explained this good, sorry if i didnt its late.

thanks killbuzz
 
on it Killbuz, will post link...

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
hey is there a way i and paste part of this in the php i have?? <?php
mail($addressee, $subj, $mess,
&quot;From:&quot;.$mail.&quot;\nReply-To:&quot;.$mail);

mail($mail, &quot;Thank you for your email&quot;, &quot;Your email has been received, we aim to respond within 24 hours&quot;,
&quot;From:&quot;.$addressee.&quot;\nReply-To:&quot;.$addressee);
echo(&quot;sent=success&quot;);
?>
if so which one?
 
killbuz

why would you even want to cut and paste? There's no need to use that HTML code (without closing <head> tag by the way).

a php mail script comprises one command ('mail') with three arguments, the echo command tells the flash movie that everything went smoothly:

Code:
mail(&quot;email_where_it's_going&quot;,&quot;who_it's_from&quot;, &quot;message&quot;)[/color]

simple as that, and you can have as many as you want in a single script. There's no point in having HTML in there, all your doing is confusing the echo statements.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top