| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
PHP Mail to one email and autoresponder email to another with attachement
HI,
I have a form which on submission will send the filled info by any user to my email id. This work fine but now I want a code which would make it possible to send an pdf attachment to the user's email. The requirement here is to send the filled info to my id and the pdf as attachment to the user's Id in an autoresponder email when the form is submitted. I have a form with the following inputs fields: Name, Company Name, Title(dropdown), Phone, Fax, E-mail and feedback. and here the code to send the email: ? php $mail_to = "me@123.com"; $mail_from = "$lp_email"; $mail_headers = "From: $mail_from"; $mail_subject = "Quick Contact "; $mail_body = "Name: $lp_name\r\nCompany Name: $lp_cname\rTitle: $lp_title\rPhone: $lp_phone\rFax: $lp_fax\r\nEmail: $lp_email\r\nFeedback: $lp_query\r\n"; if (mail($mail_to, $mail_subject, $mail_body, $mail_headers)) { echo("Succesfully sent your request. We'll contact you soon." ); } else { echo ("An error has Occured while attempting to send mail"); } } ? > |
![]() |
| Viewing: Tutorialized Forums > Web Design & Development > PHP > PHP Mail to one email and autoresponder email to another with attachement |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|