I have done a website that I need to integrate emailing functionality.
I have done this before, and it worked perfectly, and still does.
However, when I attempted to use the same code to test the emailing functionality for the new site, I get an error message as below;
"Mailer Error: The following From address failed: firstname.lastname@example.org : Called Mail() without being connected"
Here is the code that I am using.
I added the line;
echo 'Mailer Error: ' . $mail->ErrorInfo;
to identify the problem, and it shows me the error mentioned above.
I dunno what I am doing wrong since the same code is working fine elsewhere.