PHP Fatal error: Uncaught PHPMailerException: Invalid address: | PHP | MySQL

Get Custom Essay on PHP Fatal error: Uncaught PHPMailerException: Invalid address: | PHP | MySQL

Let Our Team of Pofessional Writers Take Care of Your Paper.

Hello I am a beginner programmer building a landing page as a learning project. It has a simple form: on submit it inserts the data into a MySQL database, sends the owner an email notice, redirects the customer to another html page, and sends the customer an email with a pdf link, taking the name and email address from the database. The cluster of php files work perfectly up through fetching the name and email address from the server and assigning it to $_SESSION variables; They also work perfectly from the next step of calling the PHPMailer and passing them the $_SESSION variables with the name and email from the server and sending the email with the pdf link; but when I put the two working halves together the project breaks.

I am studying the PHPMailer file and the [login to view URL] code trying to find the exact place it breaks and figure out why, and how to fix it.

Here is the error message i get:

Fatal error: Uncaught phpmailerException: Invalid address: (addAnAddress to): in /homepages/42/d833793954/htdocs/www/misterwizardweb/projects/heike/vendor/phpmailer/phpmailer/[login to view URL] Stack trace: #0 /homepages/42/d833793954/htdocs/www/misterwizardweb/projects/heike/vendor/phpmailer/phpmailer/[login to view URL](819): PHPMailer->addOrEnqueueAnAddress(‘to’, ”, ”) #1 /homepages/42/d833793954/htdocs/www/misterwizardweb/projects/heike/[login to view URL](27): PHPMailer->addAddress(NULL, NULL) #2 /homepages/42/d833793954/htdocs/www/misterwizardweb/projects/heike/[login to view URL](34): include(‘/homepages/42/d…’) #3 {main} thrown in /homepages/42/d833793954/htdocs/www/misterwizardweb/projects/heike/vendor/phpmailer/phpmailer/[login to view URL] on line 879

Skills: PHP, MySQL

See more:
php fatal error call undefined function imagefontwidth, php fatal error call undefined function setopt, wordpress php fatal error call undefined function is_admin, invalid address from root localhost br, invalid address: (setfrom), invalid address: (punyencode), phpmailer without composer, message could not be sent. mailer error: invalid address: (to):, uncaught exception phpmailer phpmailer exception with message invalid address to, fatal error uncaught phpmailer phpmailer exception invalid address to, phpmailer php7, openx _pear_call_destructors php fatal error, php fatal error 1064, openx php fatal error redeclare _pear_call_destructors previously declared, php fatal error call undefined function error_log, php fatal error redeclare _pear_call_destructors openx, php fatal error log referrer, libzenddbstatementpdo php fatal error magento, magento php fatal error abstract php, php fatal error kses php wordpress error log

0 reviews


Staten Island, United States

Project ID: #27698390

Get 20% Discount on This Paper
Pages (550 words)
Approximate price: -

Try it now!

Get 20% Discount on This Paper

We'll send you the first draft for approval by at
Total price:

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

Best Quality Essays has stood as the world’s leading custom essay writing services providers. Once you enter all the details in the order form under the place order button, the rest is up to us.


Essay Writing Services

At Best Quality Essays, we prioritize on all aspects that bring about a good grade such as impeccable grammar, proper structure, zero-plagiarism and conformance to guidelines. Our experienced team of writers will help you completed your essays and other assignments.


Admission and Business Papers

Be assured that you’ll definitely get accepted to the Master’s level program at any university once you enter all the details in the order form. We won’t leave you here; we will also help you secure a good position in your aspired workplace by creating an outstanding resume or portfolio once you place an order.


Editing and Proofreading

Our skilled editing and writing team will help you restructure you paper, paraphrase, correct grammar and replace plagiarized sections on your paper just on time. The service is geared toward eliminating any mistakes and rather enhancing better quality.


Technical papers

We have writers in almost all fields including the most technical fields. You don’t have to worry about the complexity of your paper. Simply enter as much details as possible in the place order section.