Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-24-2009, 10:50 AM
Gazza is offline Gazza
Registered User

Join Date: Jul 2009
Posts: 9

phMailer Autoresponse

Is it possible to create an Autoresponse using phMailer.

I foud this script whilst searching for a Mail Form which allows a file to be attached. It is an excellant script, fairly easy to modify, I have been able to create the additional fields required; but would like to send a response back to person who submits the form.
Reply With Quote
  #2  
Old 07-24-2009, 12:24 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

Change (Starts on line 355):
PHP Code:
If(!mail($myemail,$emailsubject,$message,$headers)) {
        
    Exit(
"An error has occured, please report this to the website administrator.\n");
    
} Else {    

    
$sent_mail=true;    


To this:
PHP Code:
If(!mail($myemail,$emailsubject,$message,$headers)) {
        
    Exit(
"An error has occured, please report this to the website administrator.\n");
    
} Else {    

    
mail($youremail"[Enter Deseried Email Subject]""[Enter email contents, new lines are started by using an \n]""From: [Your Name] <your@email.com>");
    
$sent_mail=true;    


You will have to fill in the blanks on this line:
PHP Code:
mail($youremail"[Enter Deseried Email Subject]""[Enter email contents, new lines are started by using an \n]""From: [Your Name] <your@email.com>"); 
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 08-03-2009, 06:41 AM
Gazza is offline Gazza
Registered User

Join Date: Jul 2009
Posts: 9

Thanks for your help, this works really well on my test page. I wanted to get the script working right before making it accessable on my site.

I have customised the HTML to give it the look and feel of my website, all I need to do now is add a link from my Menu

Many Thanks
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phMailer Question AMC phphq.Net Forums 1 03-27-2010 05:53 PM
phmailer suggestion softec phphq.Net Forums 1 06-06-2008 04:22 PM
phMailer issue???? softec phphq.Net Forums 4 06-05-2008 07:07 AM
PhMailer: help xist phphq.Net Forums 0 05-19-2008 04:07 PM
phMailer k1200lt phphq.Net Forums 4 12-11-2007 12:02 AM


All times are GMT -5. The time now is 03:33 AM.




Powered by vBulletin®