phpmailer help #2876
Replies: 2 comments 2 replies
-
|
This code doesn't make much sense: if (array_key_exists('to', $_POST) && in_array($_POST['steve@xxemailxx.com'], true)) {
$to = $_POST['steve@xxemailxx.com'] . 'http://www.xxwebsitexx.com';
}That's not going to result in
|
Beta Was this translation helpful? Give feedback.
-
|
Hello and thanks again, When I talked to the help at the server he said that the "vender" folder should be in the "public_html" folder I have it linked from the html as form action="../_phpmailer/phpmailer/phpmailer.php" My question is do I have the correct link from the html to the php? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
About ten years ago I made a web site for a friend. But now the server does not support the
mail-form-php that we used to email the customer’s information. So now I am trying to use phpmailer. It is a mess so I am hoping some one can help me clean it up. Thanks in advance!
Metalchipper
I am unsure what to fill in the “blanks” with. Now ……
I uploaded Composer into the server and added the below line.
Added this on the server …..in the composer.json file
added:
"phpmailer/phpmailer": "^6.7.1"I have the
phpmailer.phpin the/vender/phpmailer/phpmailer/phpmailer.phpon the serverI called the server, and they said I should use port 587
On my browser, upon “submit” I get this
Error 404 - Not Found
The document you are looking for may have been removed or re-named. Please contact the web site owner for further assistance.
From the program Visual Studio Code : this
Not Found
The requested URL was not found on this server.
Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.2.0 Server at localhost Port 80
This is from the top and bottom of the form, from the html web page:
This is the phpmailer: from github’s simple form example
Beta Was this translation helpful? Give feedback.
All reactions