Instead of the one above?
Yes.
I still have the following error: Fatal error : Uncaught Error: Class âPHPMailerâ not found in /home/pianocou/public_html/includes/signup2.php:468 Stack trace: #0 {main} thrown in /home/pianocou/public_html/includes/signup2.php on line 468 I should ask my webhost too as to why this is happening
I am also wondering⌠what is the best way to attach a variabe in a post form?
<form class="signup-form" action="includes/signup2.php?csrf=".$csrf." method="POST">
I got it working but according to some tutorials, they suggest omitting the $mail->isSMTP() but then I thought that it wouldnât be SMTP in doing so⌠I also got it to work with this code though and not the one you suggestedâŚ
$mail = new PHPMailer\PHPMailer\PHPMailer;
Got this information from stackoverflow:
Alternatively, you can refer to their fully-qualified names directly, without the use statements, for example:
$mail = new PHPMailer\PHPMailer\PHPMailer;
But now I have the following error while including my a href link in my body:
$mail->Body = "Dear $first, $last,
</br />
You have received this e-mail because either you or someone claiming to be you has registered with PianoCourse101.
You must activate your account before you can login by clicking on the link below and we encourage you to check through your details under the âStudentâs General Informationâ section to make sure that it is correct.
</br />Any incorrect information an be updated under the âStudentâs Update Profileâ Section.
</br />Lessons can be found under the âWatch Videosââ sectionâand we also strongly encourage you to utilise the âPractice Diaryâ Section to record your practice.
</br />More importantly, we would like you to have fun when practising and make sure that you are also doing your homework on a regular basis.
If you cannot activate your account for any reasons, then you can request a new token for the primer level under the âToken Request: Primer Levelâ section and it will send another token that should work.
</br />If all else fails, then you could send an e-mail under the âContact Usâ section and we will assist in activating your e-mail for you.
</br />Also please note that it is best to use a G-mail account when registering with us.
</br />
To activate your account, click here:
> <a href="https://www.pianocourse101.com/includes/activate.php">Activate your Primer Level here!</a>
Also, it wonât direct my page because I have this unusual error:
Warning : escapeshellcmd() has been disabled for security reasons in /home/pianocou/public_html/PHPMailer/PHPMailer.php on line 1632
Then put again the line $mail->isSMTP();
on your code.
I got my link workingâŚ
But if I put that code again then it wonât work anymore⌠said something about failed to connect
What does this mean? I have set my debug = 2:
Warning : Creating default object from empty value in /home/pianocou/public_html/includes/signup2.php on line 460
Use this: $mail->SMTPDebug = 2;
on your code.
PHPmailer 6 and are intended to be installed with Composer, which is more cumbersome to use. Iâm going to find a way to offer that in an easy way.
please do as I really need this to work⌠Is it true that by getting rid of $mail->isSMTP(); then I wonât be using SMTP but on some video tutorials, they suggest omitting this out and when I do, it does workâŚ
I am still getting my email activation link taking me to this address:
https://www.pianocourse101.com/includes/index.php?activate=missinglink
instead of this:
<a href='https://www.pianocourse101.com/includes/activate.php?email=â.$email.â&activatetoken=â.$token4.â>Activate your Primer Level here! I do have the activation.php inside the includes folder thoughâŚThis is really weird as it shouldnât happenâŚ
I watched another video and they said that this line $mail->isSMTP() is only used for localhost and not live server but I would like someone to confirm thisâŚ
Would appreciate your assistance hereâŚ
I have also followed the Godaddy setting but still doesnât work with SMTP enable
I am also getting some weird symbols appearing in my email and I think it could be my use of the 's but I thought that you would need a / somewhere?
Any incorrect information an be updated under the âStudent/ââŹâ˘s Update Profileâ Section.
Lessons can be found under the 'Watch Videos/ââŹâ˘ section and we also strongly encourage you to utilise the âPractice Diaryâ Section to record your practice.
More importantly, we would like you to have fun when practising and make sure that you are also doing your homework on a regular basis.
This is my code here:
You have received this e-mail because either you or someone claiming to be you has registered with PianoCourse101.
You must activate your account before you can login by clicking on the link below and we encourage you to check through your details under the âStudentâ/s General Informationâ section to make sure that it is correct.
</br />Any incorrect information an be updated under the âStudentâ/s Update Profileâ Section. <b
You need to escape characters using the backslash, not the slash, for example:
Any student\'s related work is a thing we take seriously.
or use '
to put apostrophes on it:
Any student's related work is a thing we take seriously.
how do you check if the port is free or not? i tried to telnet but it said telnet is not recognisedâŚ
I would still appreciate if you could watch the other tutorials and confirm that for me because I can still get it to work without using SMTP⌠I have disabled my firewall, uncheckedd the google capatcha but still canât get it to work and I think it could be an issue with GoDaddy maybeâŚ
I have even tried the godaddy setting but canât get it to work tooâŚ
I have also done the backslash here but it is still showing up weird though:
You have received this e-mail because either you or someone claiming to be you has registered with PianoCourse101.
You must activate your account before you can login by clicking on the link below and we encourage you to check through your details under the âStudent\ââŹâ˘s General Informationâ section to make sure that it is correct.
Any incorrect information an be updated under the âStudent\ââŹâ˘s Update Profileâ Section.
Lessons can be found under the 'Watch Videos\ââŹâ˘ section and we also strongly encourage you to utilise the âPractice Diaryâ Section to record your practice.