How to change the feedback form on php to work on the real hosting?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
made a website on a free hosting https://ru.000webhost.com/
To send mail using PHPMailer
The form is sent fine but I need to change it to make it for a real client. The form works via SMTP using the php handler, and it indicates the username and password by email which will be sent to the email and the title of the mail will be sent to this email. I doubt that customers will give me the username and password. In the Internet found increasingly these forms, or do not work.
This form sends to the address indicated in the file .php the letter from the name of the address that is also specified in the file .php

1.How to make a form without the participation of the login and password? Is it possible to change an existing form?
2.How to make the letters came in the mail on behalf of email specified in the php file and the name specified in the form on the website?

https://jsfiddle.net/vmkk1f0n/1/
by | 16 views

2 Answers

0 like 0 dislike
I have to send PHPMailer-om written a function that contains all the common operations, and as parameters transmitted only what differs from letter to letter: to, subject, from whom, etc as for the sending options.
Settings for SMTP I keep in the local file.ini, which contains also all other parameters that differ for development and prоduction. This file should not be updated automatically, neither via FTP nor via git.
PHPMailer reads data from it, and so on customer's server sends the emails through another SMTP with a different sender. Of course, this requires that the customer reported their data access.
But this is my personal way, maybe, is even better.
by
0 like 0 dislike
That is, the customer gives you the username and password of the sender?
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
asked Apr 12, 2019 by Rebldomakr
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users