Modify a PHP script to read an attached file and place in an assigned folder.
I need someone to modify a PHP script. The current script I have reads the From email address and the attached file name and stores the name in a text file. The attached file itself is stored in a folder on the server. Plus, an email acknowledgement is sent to the person if the file is accepted or not if the file is too large and the location of the attached file. Also, the URL location is emailed to the customer.
I need the script to be modified to do this:
Ex: A customer calls the voice mailing system via the assigned voice mail number. [Customer phone number is (555) 555-1234]
The customer leaves the message and hangs-up. [Details on the length of the message will be given to the customer.]
The Voice mailing company emails our support group at this format: [Must be able to change this email address]
From: “(555) xxx-xxxx” To: our email address X3978.wav
The script read the email to our email address. Option to delete or don’t delete the email after reading. The current script gives you that option. [The Voice mail will email this to any assigned email address.]
The script read the data.txt [Example of data.txt is attached] to see if the Phone number is listed. In this case it is. And the customer folder is 2354AD908. We make the folder 2354AD908. [Must be able to read these phone number formats also: (555) xxx-xxxx and 555-xxx-xxxx]
The script places the X3978.wav file in folder 2354AD908 and rename it 2354AD908.wav. Option to have other types of file and rename them. Example: y68508gt.mp3 and rename it to 2354AD908.mp3, plus other files. The current script gives you that option. . [Note: The new 2354AD908.wav will overwrite the previous 2354AD908.wav file each time.]
The script emails the customer, using the email address in the data.txt one of these messages based on the size of the wav [or other files] it received. Email the customer a message, “ Your voice mail have been received.” [If the message is below the set size.] Also, email the URL location of the file. [The current script will email the URL to the customer, but in the case, we need it to be emailed to us.] Set 1 to email us or 0 not to email us.
If the message is larger than the set file size, email the customer, “ Your message excess the allowable size, please call back and shorten message”. [Must be able to set the allowable file size]. [The current script allow you to set the size of the file.] [Don’t email us in this case.]
If the phone number is not in the data.txt file, them email our email address a message like “Caller from (545) xxx-xxxx [This is the caller phone number] used the system and is not a member.” [Must be able to edit this sentence.]
Read the next email, and so on.
Testing the script:
Note: You email us the email address you will be testing the script at [this is for the Voice Mail company to send the emails to you] and we will email you the phone number to Voice Mailing Company to get access to call and test the script. We will send you our phone number and email address to be placed in the data. Txt. For testing you can create any number for the customer number and make a folder to load the file too.
Email us the size of the file you set for the file. Once the script is working, have the script to email the URL location of the file to . We will have the Voice mail company to set the file for wav file. [WAV is what it is currently set too.] We will call and leave a message that will be below the file size and next over the file size. Next the Voice Mail Company will have the file set to mp3, them we will call and leave a message that will be below the file size and next over the file size. We should get the appropriate email messages as stated above. Also, we will call from a number not in the data.txt to get the message like “Caller from their phone number used the system and is not a member.”
Upon the successful testing of the script, the agreed price will be paid in full. Contact me if more clarification is needed.