Page 1 of 1

Add a picture to the form

Posted: Fri Jul 31, 2020 5:49 am
by spoon
Hello Pablo, a huge request to add to the mail form the ability to send a picture that is in the form itself.
Right now i am doing like this add php code

Code: Select all

 $body .= 'Content-Type: text/html; charset=UTF-8'.$eol;
for transmission to mail the ability to read html.
Then I add the path to the picture

Code: Select all

$message .= "<img src='http://mysait.com/images/logo.png'";
Huge request to implement the transfer of the image that is in the sending form. Thank.

Re: Add a picture to the form

Posted: Fri Jul 31, 2020 6:29 am
by Pablo
If you set the 'email format' to 'HTML' then you can include custom code in the message.

Re: Add a picture to the form

Posted: Fri Jul 31, 2020 6:47 am
by spoon
It worked, but then the data from inputs does not come.

Re: Add a picture to the form

Posted: Fri Jul 31, 2020 7:47 am
by Pablo
If you use custom HTML then you will have it add variables otherwise the script does not know where to include the data.
See also:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=64476

Re: Add a picture to the form

Posted: Fri Jul 31, 2020 8:05 am
by spoon
Спасибо.