I am using phpmailer to send emails from my webpage to whoever becomes a registered member.
$mail->FromName = "Personal"; //The name that you'll see as Sender
$mail->Host = "mail.pilando.com"; //Your SMTP mail server
$mail->Mailer = "smtp"; //Protocol to use
The thing is that, even though phpmailer is working, it outputs a lot of info to the webpage before redirecting the user. The output seems to be coming from the mail server itself.
How do I stop it from doing that?
What does the output say? Is it not an error notification?
It tells me about the connection I am making with the host, even gives out the address. No password, no login. Nothing dangerous. Just plain annoying
Oh right. Sounds like it's just the design of the class then. I'd just go with the standard PHP mail functions or make a class of my own then. Sorry to be so useless.
Just a guess, you may have PHPMailer::SMTPDebug set to true instead of the default false value? You could try setting it explicitly to false and see if that has any affect:
$mailer = new PHPMailer();
$mailer->SMTPDebug = false;
That did it. Thanks
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)