943,655 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 16826
  • PHP RSS
Jul 12th, 2004
0

Creating Auto-Responder in PHP

Expand Post »
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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
goober is offline Offline
2 posts
since Jul 2004
Jul 13th, 2004
0

Re: Creating Auto-Responder in PHP

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.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002
Jul 13th, 2004
0

Re: Creating Auto-Responder in PHP

Quote 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.
Well, I actually wouldn't have to scan the incoming, because --- well, here's the deal...

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!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
goober is offline Offline
2 posts
since Jul 2004
Jul 14th, 2004
0

Re: Creating Auto-Responder in PHP

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.
Team Colleague
Reputation Points: 262
Solved Threads: 18
a.k.a inscissor
samaru is offline Offline
1,227 posts
since Feb 2002

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: linking issues
Next Thread in PHP Forum Timeline: PHP 5.0 Finally Released!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC