maweber98 Posted September 19, 2006 Share Posted September 19, 2006 I have a form that application form that collects information from the user then is processed by a form processor and inputs the information into a mysql database. After that is complete it then sends an email with the users information to me. I need to have this information emailed to me as an attachment. Does anyone have any ideas on how to do this? Do I have to write this information to a file on the server then attach that file? Or is there a way I could just duplicate this same information that is in the email but also have it as an attachement as well. Thanks so much![code]$to = "[email protected]";$message = "ID: $HRS_ApplicantIDPrefix: $HRS_Applicant_namepfxFirst Name: $HRS_Applicant_firstnameMiddle Name: $HRS_Applicant_middlenameLast Name: $HRS_Applicant_lastnameSuffix: $HRS_Applicant_namesfxSocial Security Number: $HRS_Applicant_ssnoHome Phone: $HRS_Applicant_phone1Cell Phone: $HRS_Applicant_phone2Address: $HRS_Applicant_addrCity: $HRS_Applicant_cityState: $HRS_Applicant_stateZip Code: $HRS_Applicant_zip1stReferred By: $HRS_Applicant_ReferredByDate Added: $HRS_ApplicantDateAddedDate Available: $HRS_Applicant_DateAvailableApplicant Employed: $HRS_Applicant_EmployedContact Current Employer: $HRS_Applicant_InqEmployerJob Salary: $HRS_Applicant_JobSalApplied Before: $HRS_Applicant_ApplyBeforeApply Before Where: $HRS_Applicant_ApplyBeforeWhereApply Before When: $HRS_Applicant_ApplyBeforeWhenEmployment Desired 1: $chosenDesired[0]Employment Desired 2: $chosenDesired[1]Military: $HRS_Applicant_militaryMilitary Rank: $HRS_Applicant_militaryRankMilitary Discharge: $HRS_Applicant_militaryDshrgTypMilitary Notes: $HRS_Applicant_militaryNotesSchool1 Type: $HRS_ApplicantSchoolTypeSchool1 Name: $HRS_ApplicantSchoolNameLocSchool1 Yrs Attended: $HRS_ApplicantSchoolYrsAttSchool1 Graduate: $HRS_ApplicantSchoolGraduateSchool1 Subjects: $HRS_ApplicantSchoolSubjectsEmployment1 Start Date: $HRS_ApplicantEmplyHstryMYStartEmployment1 End Date: $HRS_ApplicantEmplyHstryMYEndEmplyment1 Name: $HRS_ApplicantEmplyHstryNameLocEmployment1 Salary Range: $HRS_ApplicantEmplyHstrySalRngeEmployment1 Position: $HRS_ApplicantEmplyHstryPstnEmployment1 Reason Leaving: $HRS_ApplicantEmplyHstryRsnLvReference1 Name: $HRS_ApplicantReferenceNameReference1 Address: $HRS_ApplicantReferenceAddrReference1 Business: $HRS_ApplicantReferenceBsnssReference1 Years Known: $HRS_ApplicantReferenceYrsKnwn";mail($to, 'Application Submission', $message); [/code]Thanks so much! I appreciate any and all help. Link to comment https://forums.phpfreaks.com/topic/21267-collect-form-information-and-send-as-an-attachment/ Share on other sites More sharing options...
Orio Posted September 19, 2006 Share Posted September 19, 2006 Too many tutorials...http://www.google.com/search?hl=en&q=attachment+phpOrio. Link to comment https://forums.phpfreaks.com/topic/21267-collect-form-information-and-send-as-an-attachment/#findComment-94618 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.