I've got a PHP form working, but need to add "autoRespond", anyone know?
i've developed a working PHP5 file to submit the form to the
webmaster (info@). Now, the client wants me to add on a custom
autoResponder. basically, the user fills out the form, the user
gets an e-mail saying thank you in the subject line and body copy,
says it came from info@ website.
Here's the PHP script that's linked to it:
I take the simple (though not free) way:
www.bebosoft.com/formstogo/
domerdel wrote:
> i've developed a working PHP5 file to submit the form to
the
> webmaster (info@). Now, the client wants me to add on a
custom
> autoResponder. basically, the user fills out the form,
the user gets
> an e-mail saying thank you in the subject line and body
copy, says it
> came from info@ website.
>
> Here's the PHP script that's linked to it:
>
>
>
> <?
> error_reporting(1);
> if ( $_POST['tpl'] == "mail_req.tpl" )
> $mailto = Array("[email protected]");
> else
> $mailto = Array("[email protected]","[email protected]");
>
> $subject="Celibre Web Inquiry: {$_POST['name']}";
>
> if ( $_POST['tpl'] == "mail_req.tpl" ) {
> $t_data=file_get_contents("mail_req.tpl");
> $subject="Req Cert Inquiry from Website";
> }
> elseif ( $_POST['tpl'] )
> $t_data=file_get_contents("mail_contact.tpl");
> else
> $t_data = file_get_contents("mail_template.tpl");
> foreach($_POST as $key=>$value)
> $t_data=str_replace("[".$key."]",$value,$t_data);
>
> if ( $_POST['companyname'] )
> $fromname=$_POST['companyname'];
> elseif ( $_POST['name'] )
> $fromname = $_POST['name'];
> else
> $fromname = $_POST['firstName'] . " " .
$_POST['lastName'];
>
> $headers = "MIME-Version: 1.0\n".
> "Content-type: text/html; charset=iso-8859-1\n".
> "From: \"Website.com\" <[email protected]>\n".
> "Date: ".date("r")."\n";
>
> foreach($mailto as $value) {
>
mail($value,$subject,$t_data,str_replace("[to]",$value,$headers));
> }
>
> header("location: thank_you.html");
Similar Messages
-
When I go into my music it acts like it's working but then it closes does anyone know why
When I go into my music it acts like it's working but then it closes does anyone know why
try reset
http://support.apple.com/kb/HT1430?viewlocale=en_US&locale=en_US -
Finally got face time to work - but screen freezes and can't continue the call
finally got face time to work - but screen freezes and can't continue the call - how can I fix this problem?
Probably a network problem but see here for troubleshooting: http://support.apple.com/kb/TS3367
-
I forgot my iPod at a bomb fire at school and it was on the field and water got on it everything works but you can tell that theirs water inside how much would it cost to replace the screen at apple
Place the iPod in a sealed container with a desiccant for a week. Uncooked rice works. Change the desiccant every day or so for a week.
Do not charge or turn on the iPod until dry. Then try:
Try:
- iOS: Not responding or does not turn on
- Also try DFU mode after try recovery mode
How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
- If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
- Try on another computer
- If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
Apple Retail Store - Genius Bar
Apple will exchange your iPod for a refurbished one for
$199 for a 64 GB 4g
$99 for the other 4G iPod
$149 for 5G iPod.
They do not fix yours.
Apple - iPod Repair price -
My Apple TV suddenly stopped working. When I hit a button on the remote the light on the apple tv flickers but nothing else happens. Anyone know how I can fix this?
I had the same problem; Apple TV was working proper then for no reason I got the continuous blinking front LED. The Apple TV has no sound or video output at all. I tried reseting the Apple TV via my Apple remote controller but that didn't do anything for me. I finally called Apple and they told me that the way to fix my box is to reset the Apple TV to factory default. So I had to attach the Apple TV to one of my Apple computers and launch iTunes. Once iTunes was running it recognized my Apple TV and I clicked on the option to restore to factory default. After the restore my Apple TV now works properly. My final action on the Apple TV was to sign into my account and enter my password.
-
When I go to yahoo with my iPhone 6 the pages will not enlarge when I pinch them but it works on my iPad. Does anyone know what's wrong? Also the same on boyfriends phone he's eith Virgin and I'm with Vodafone do it cant be the providers.
Thanks for the link but none of those described the problem. No error message pops up. It just says "Accessing Itunes Store" but it never actually does. This only occurs when my iPhone is plugged in though.
-
my ipad screen is black and will not reset and does not come back after restoring, the info is still on internal because i can see it on itunes in the apps catagory it's the display is not working, can see backlight but black...does anyone know how to fix, other than take it to apple.
thanks!The wish list only works on apps you have to pay for. To get it tap the icon of the app you want to save. After it opens at the upper right corner is a box with a arrow. Tap that then tap add to wish list list in the box that opens.
-
hi! I am having a problem with my dictation. It works fine with Greek but it does not work at all with English. Anyone knows why?
Have you changed the system voice to an English one in system preferences?
-
Can I replace the G5 CP units in my pre intel power mac? I get the 3 flash light and am heating them with a hair dryer. It works but needs fixing and I can't afford a new mac
OK, it looks like all but the first G5 1.6 Ghz, & the last 3 G5 Dual Cores will take PC3200 RAM...
Power Macintosh G5 1.8 (PCI-X) PowerMac7,2 1 Power Macintosh G5 2.0 DP (PCI-X) PowerMac7,2 1 Power Macintosh G5 1.8 DP (PCI-X) PowerMac7,2 1 Power Macintosh G5 1.8 DP (PCI) PowerMac7,3 1 Power Macintosh G5 2.0 DP (PCI-X 2) PowerMac7,3 1 Power Macintosh G5 2.5 DP (PCI-X) PowerMac7,3 1 Power Macintosh G5 1.8 (PCI) PowerMac9,1 1 Power Macintosh G5 2.0 DP (PCI) PowerMac7,3 1 Power Macintosh G5 2.3 DP (PCI-X) PowerMac7,3 1 Power Macintosh G5 2.7 DP (PCI-X) PowerMac7,3 -
can't sync ical on my iphone and imac. email and note work but not ical. can anyone help.
thanks
bmoreimacSo how can i make it work that way, i asked one of my friends, and she says it works like that...when she delete the email on her iphone it is deleted on the mac too, what do i do to change this?....my mail it's hotmail, i don't know if its relevant
-
I don't want Adobe to open up and be selected immediately. I work with iPhoto and Ipages etc and preview which needs to be my main application for my work , but need adobe reader for other files... how can I do this please?
loopiloo1 wrote:
I don't want Adobe to open up and be selected immediately.
Sorry, I don't understand this - you don't want Adobe [Reader] not to open when doing what? On what operating system? -
I got a new Macbook Pro and a Superdrive when i put in a DVD it reads it and puts a dick icon with the DVD name when i open that i have the auido and video folders but cant play the DVD anyone know why.
Open with iDVD.app in your applications folder.
or download VLC.app
http://www.videolan.org/vlc/download-macosx.html -
Hi I need help. Does anyone knows joel brotonel? I bought an iPhone from him because he said he is working in apple warehouse. He tricked me. I just want to ask what should I do to get my money back?
thanks for advice but my problem is im far from him, i just met him online he has gained my trust. i dont know where can i complain. or to whom should i complain.
-
Nikon 300S. It is set to NEF(RAW) + JPEG fine. When I import to Lightroom I get message "There was an error working with the photo? Does anyone know why or how to correct?
I don't know the answer, personally, because I don't use Lightroom. This is the Camera Raw forum.
Someone here might answer your question, as there are a lot of clever people here, but, if not, you might try here:
Photoshop Lightroom -
I am tethering and Itunes help says I am not connected to the internet but I am. Does anyone know why?
This could be the connection you use, may be is your internet connection could block this sites...
iF i'm on vpn the appstore didn't work, so this could be your problem too... is a proxy like problems.... this happend
Maybe you are looking for
-
Can only play one song at a time!
Hi, Having a bit of trouble with iTunes. when i press play on a song or album, it plays the song, but then dosent move onto the next song. it just reverts back to the Nothing Playing screen. Recently d/l iTunes 8.2 Any ideas???
-
SAP CRM Extracts BP, IBASE and Contracts to flat files
Hi, We want to download SAP CRM (5.0) data to flat files (every month). The datasets are rather large (1mln per object) and we have identified different approaches to do this: - Using an ABAP report with BAPI's - Using an ABAP report with direct sele
-
Oracle database-level permission controll
I have a Oracle 10g database user, and I want to use database-level permission controll. Database has a User table, and i want to grouping to 3 grups. Of course, business level has the permission controll also, but I don't want this. Please give me a
-
A couple weeks ago, my first generation Apple TV froze up. It restarts fine. It does the wallpaper of photos fine. But it will not accept input from the remote (either the apple remote or my universal remote that I programmed). The cursor sits there
-
Graph wont allow dragging of cursor
Im working on a vi that has been created by somebody else. The graph they have used doesn't allow you to drag cursors on it, it just gives you a zoom icon when you move your mouse over it. Whereas if i create a new graph, this does allow it. I have a