PHPMailer require fatal error

Progress. It is due to the SMTP connection.

$sendMail=new Email($subscriber,$authKey);
        $test=$sendMail->subscriber();
        if($test && $test!==NULL)
          return array(true,"");
        else
          return array(false,"email");

I have this on my Subscribers.class.php (which calls Email). Since it returned false, thus no e-mail, the e-mail wasn’t sent. My host requires SMTP IIRC so this makes sense that it didn’t send.

So some SMTP settings are wrong. Yet I got them from that article? Strange.

BOOOOOOOOOOOOOOOOOOOOMMMMMMMMMMMMMMMMMMMMMM. Hell yeah!

Changed the host from smtp.gmail.com to mail.codefundamentals.com (my own) and updated the port to my host (25).

AWHHHHHHHHHHH YEAH.


Thanks for stickin’ with it!

2 Likes

Ha ha, gratz

1 Like

Thanks for the help!!!

Best feeling ever! I remember the first time I pulled a set of data out of a database and displayed it on a web page, I ran to my wife, picked her up and twirled her around the room and told her I was going to make her rich :smile: We’re not rich yet, but I’m glad you reminded me how much fun programming can be. Thanks.

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.