Developer Support »

Message ID made from form field  (See more user questions)

Hi M.

I have made that change for you. Script attached.

It assumes the surname field on the form is "surname". If it isn't, change the line of code accordingly. This is the custom line of code:

if($message_id){$_REQUEST["Message ID"] = $_REQUEST["surname"] . " - " . mt_rand(1000,9999);}

Any questions, just let me know.

Best wishes.

Charles Sweeney
https://formtoemail.com
The world's easiest feedback script!

On 09/07/2011 10:59, M wrote:
> Hi Charles,
>
> I tried the free version already and it works fine with my hosting. I
> do appreciate your help with this minor change to the mailer. Yes, "surname"
> space "4 digit random number" will be fine (if we can do dash ( - ) instead
> of the space it would be better).
>
> Given that the surname will be different for each client, even if the random
> number turns out to be the same, it will be fine.
>
> I've already paid for the script through my personal email address,
>
> I look forward to hearing from you with the updated script shortly.
>
> Thank you very much for your prompt help by the way. I believe you are very
> good with PHP, if I have any projects in the future would you be able to
> help me out?
>
> Thanks,
>
> M
>
>
>
> On Sat, Jul 9, 2011 at 12:34 PM, FormToEmail.com wrote:
>
>> You're getting into custom coding there, Michael, which as a rule I don't
>> do.
>>
>> I think I can do it within the limits of the minor customising I do for
>> paying customers. Tell me the name of the surname field. Do you want the
>> ID to be "surname" space "4 digit random number"?
>>
>> Bear in mind that you can't get a truly random number, it will be a
>> psuedo-random number. Bear in mind also that the same number can be issued
>> more than once, it's not unique.
>>
>> If you would like me to do it, make your purchase and let me know when you
>> have done so. You can get the Pro script here:
>>
>>
>> https://formtoemail.com/formtoemail_pro_version.php
>>
>> Can I suggest you try my free script first, just to test the functionality
>> on your setup, as the sale is final. I have attached it to this email for
>> you.
>>
>>
>> Any questions, just let me know.
>>
>> Best wishes.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> On 09/07/2011 09:46, M wrote:
>>
>>> Hi Charles,
>>>
>>> One last question before I make the purchase, can the Message ID for the
>>> emails be the surname of the client (surname field) + 4 digit random
>>> number?
>>> Can you send me an updated code to make this happen?
>>>
>>> Thank you very much
>>>
>>> M
>>>
>>> On Sat, Jul 9, 2011 at 11:07 AM, FormToEmail.com
>>>> wrote:
>>>
>>> Hi M
>>>>
>>>> Thank you for your question.
>>>>
>>>> The script will send the email EVERY time. Subject as you say to the
>>>> settings you configure to block spam.
>>>>
>>>> No problem to use the script for multiple forms if you want the forms to
>>>> be
>>>> handled the same way. If you want them handled differently you can make
>>>> a
>>>> copy of the script for each form or depending on what you are doing you
>>>> can
>>>> edit the code slightly.
>>>>
>>>> Any questions, just let me know.
>>>>
>>>> Best wishes.
>>>>
>>>> Charles Sweeney
>>>> https://formtoemail.com
>>>> The world's easiest feedback script!
>>>>
>>>> On 08/07/2011 17:20, m wrote:
>>>>
>>>>>
>>>>> Comments: Hi,
>>>>>
>>>>> I am interested in purchasing a license for this script. However, I am
>>>>> having problems with the script I am currently using as I found out that
>>>>> some email forms aren't delivered. I just want to make sure that every
>>>>> form
>>>>> submitted will be sent to my email (as long as they are not spam of
>>>>> course).
>>>>> Pretty much all my pages has a form and they will be using the same php
>>>>> file
>>>>> to send emails. Would this be a problem. Is there any way this script
>>>>> may
>>>>> skip some of the genuine submissions?
>>>>>
>>>>> By the way I am using Gmail (Google Apps) as my email handler.
>>>>>
>>>>> Your response is appreciated.
>>>>>
>>>>> Regards,
>>>>>
>>>>> M