Transmit PHP variable in EMail

Issues related to forms.
Post Reply
mexman
Posts: 624
Joined: Mon Feb 11, 2013 11:33 am
Location: Puebla/Mexico

Transmit PHP variable in EMail

Post by mexman » Sun Sep 02, 2018 6:11 pm

Hi Pablo:
I have the following request:
I would like to send the answer Email of a Form containing the value of a PHP variable e.g.
  • Values submitted from web site form:
    <string, contents of a PHP variable>
    IP Address : 188.195.223.84
Is that possible with QnEWB onboard options or do I ned to include a self-made form?
Regards
Michael
QnEWB V6.x - Ubuntu 18.04

User avatar
Pablo
Site Admin
Posts: 3230
Joined: Mon Feb 13, 2006 7:00 am
Location: Europe
Contact:

Re: Transmit PHP variable in EMail

Post by Pablo » Sun Sep 02, 2018 8:02 pm

I have not tried it myself, but this may work:

In the message field use this value:

Code: Select all

Values submitted from web site form:' . $variable . '
This will add the variable to the message. You can also use the variable in the middle of the text:

Code: Select all

Values submitted from ' . $variable . ' form:

mexman
Posts: 624
Joined: Mon Feb 11, 2013 11:33 am
Location: Puebla/Mexico

Re: Transmit PHP variable in EMail

Post by mexman » Mon Sep 03, 2018 8:28 pm

Thanks Pablo,
I found a completely different solution for the whole problem, but I will try that!

Michael
QnEWB V6.x - Ubuntu 18.04

Post Reply