-1
Renewing ask, I used Phpmailer in a php file , as I put it on my site(html), for people to send me msgs to gmail...
-1
Renewing ask, I used Phpmailer in a php file , as I put it on my site(html), for people to send me msgs to gmail...
1
This error happens because you are trying to use $this out of a class, recommend you search over PHP and object orientation to understand the use of $this.
Also to use the mail function in Windows you will need to configure some more things in your environment, because many use the Phpmailer lib instead of the mail function.
I’ll try using Phpmailer.. if it works I’ll give Accept
I commented on Phpmailer, but the error in its code is because it uses $this outside of a class context. Do you understand the meaning of using $this?
I’m in the course of html, I know the basics of php. I’m seeing many videos and websites about email from the site directly to my gmail. About $this was giving an email port error 25 and I ended up putting there , but no , I did not understand Jhonny.
As you are very beginner, I will recommend this video here so you can achieve your goal https://www.youtube.com/watch?v=seoweg-PfEM
Jhonny Freire made youtube.com/watch? v=seoweg-Pfem , certinho ; and now how do I put on my website what will send to the email ?
https://ibb.co/8d7vRMD The powershell photo the only thing that went wrong, already I’ve tweaked the windows path and powershell before. maybe that’s it
"Ibb.co/8d7vRMD powershell photo the only thing q has gone wrong , already I’ve touched windows path and powershell before . maybe that’s it" I can use the xxamp instead.
I know nothing of php :(
This is certainly related to the way you installed PHP on Windows, almost sure that it is configuration in the environment variables done wrong. I advise you to open a new topic here at atackoverflow for this particular problem, Other people with this problem may find your question and benefit from the solution.
I’ll open on the powershell , but it takes me a doubt dps that set up Phpmailer as I do my code to send the info placed on my site' ?
https://ibb.co/rk276V1 <<<<<< RIGGED POWERSHELL
youtube.com/watch? v=seoweg-Pfem everything that this site spoke of phpmailer and powershell I did
I already have the PHP codes all sorted and now what I do, to put in a form on the site ?
was bad for the other post ,I deleted without giving the Accept , but in this n I will make the mistake
Browser other questions tagged php html email
You are not signed in. Login or sign up in order to post.
Important you
EDITAR
this question, explaining it clearly, objectively and directly, emphasizing the difficulty found. Furthermore, provide us with a Minimum, complete and verifiable example problem, along with its attempt to resolve. What’s more, I suggest reading the Stack Overflow Survival Guide in English to better understand the functioning of the platform, avoiding further frustrations.– Solkarped
Welcome to [en.so]! You have posted an image of the code and/or error message. Although it sounds like a good idea, it’s not! One of the reasons is that if someone wants to answer the question, they can’t copy the code and change something inside. Click on the [Edit] link and put the code/error as text. See more about this in these links - Manual on how NOT to ask questions, Post Error Message as Picture
– Icaro Martins