| | |
Creating Auto-Responder in PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2004
Posts: 2
Reputation:
Solved Threads: 0
Just a quick question...
I was wondering if there is a way of coding, in PHP, that I can have possibly mail(.......) send out a response email, as soon as it receives an email!?
Unfortunately, the mailserver we have doesn't do auto-responders, and I just even simply need a small text file, not anything close to what these auto-responder softwares are offering!
Any and all help is appreciated!
--- Charles!
I was wondering if there is a way of coding, in PHP, that I can have possibly mail(.......) send out a response email, as soon as it receives an email!?
Unfortunately, the mailserver we have doesn't do auto-responders, and I just even simply need a small text file, not anything close to what these auto-responder softwares are offering!
Any and all help is appreciated!
--- Charles!
You would have to scan your imap/pop3 server, read the e-mail address, and reply using your e-mail server. So the script would be broken up into two parts. The first is the one that reads the imap/pop3 server, than the other part would be where it gets that e-mail address and sends out an e-mail. You can find code to do both by searching the php.net or hotscripts.com. Search for keywords like "send mail" and "receive mail" or something to that effect.
If you want it to run automatically, you can set up a cron job to run whatever script you make.
If you want it to run automatically, you can set up a cron job to run whatever script you make.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
•
•
Join Date: Jul 2004
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by inscissor
You would have to scan your imap/pop3 server, read the e-mail address, and reply using your e-mail server. So the script would be broken up into two parts. The first is the one that reads the imap/pop3 server, than the other part would be where it gets that e-mail address and sends out an e-mail. You can find code to do both by searching the php.net or hotscripts.com. Search for keywords like "send mail" and "receive mail" or something to that effect.
If you want it to run automatically, you can set up a cron job to run whatever script you make.
Users come to our website and fill out a registration form... I would like to be able to, once they send the form, send them an email back with information on how to register for the event, etc.. Here's a better breakdown...
1) Users come and fillout 12abc.php.
2) Upon validation and suceess, they get sent to 123def.php (text file)
3) ** Would like for a php script to send them an email at this time with information on whatever... Is this possible by doing to mail() back to back!? the first mail going to mail(var1,var2,var3,var4), then turning right around and completing another mail(var,var5)?
--- Charles!
If you're asking if there would be problems running two consecutive mail() statements, the answer is no. There's no problem. Check http://us4.php.net/mail for a function that wraps the mail() and its initialization.
Check out my blog at http://www.shinylight.com for more stuff about web dev.
![]() |
Similar Threads
- need help combining Auto-Responder Script with Working Forms (PHP)
- News Story: Auto-responder spam on the up (Network Security)
- SEND-TO-PHONE web auto-responder form, please Anyone? (Promotion and Marketing Plans)
- Auto Responder Email (Existing Scripts)
- Auto Responder (ASP)
Other Threads in the PHP Forum
- Previous Thread: linking issues
- Next Thread: PHP 5.0 Finally Released!
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dropdown dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






