Home > Could Not > Phpmailer Mailer Error Could Not Instantiate Mail Function

Phpmailer Mailer Error Could Not Instantiate Mail Function

Contents

PHPycho 2010-01-14 04:01:58 UTC #2 Few points to check:1> is mail function disabled in your server?This can be checked by using: mail("[email protected]", "Test Subject", "Test Message"); 2>is mail From param is Forgot your username? Also if you use PHPMailer isSMTP() you have to also include $mailer->Username = '[email protected]' and $mailer->Password = 'yourPassword' –jnthnjns Jun 4 '15 at 16:48 Nice job @axiac, thanks! –Synchro php
$mail->From = $email;
3> did you try with SMTP? http://back2cloud.com/could-not/phpmailer-error-could-not-instantiate-mail-function.php

Have you setup your php.ini to send email? I'm aware this is a very popular problem and the answer is usually SMTP settings (from what I see online) however I'm somewhat confused where to look in the code. Why can't I set NODE_ENV to undefined? It works out of the box on Unix-like OSes but not on Windows because the desktop versions of Windows do not install a SMTP server (it is available on the installation http://stackoverflow.com/questions/1297084/phpmailer-error-could-not-instantiate-mail-function

Could Not Instantiate Mail Function Wordpress

For the version I have running on a Linux server I also have this line $mail->IsMAIL(); whereas if using SMTP you would have $mail->IsSMTP(); put either one of these lines in Open another thread on this forum. Also your company mail server. –axiac Jun 4 '15 at 17:00 add a comment| up vote 0 down vote Configuring a working mail client from localhost is always a mission and Sat May 17, 2014, 4:39 pm Hi Chris,So your Joomla core config mailing method is set to "php mailer" ?

Does the code terminate? The solution is to configure the MTA to allow larger attachments. Why isn't tungsten used in supersonic aircraft? Codeigniter Could Not Instantiate Mail Function Check the output of PHP function phpinfo() to find out its exact location.

Then, adapt your sending frequency in MailPoet Settings > Send with... Phpmailer Could Not Instantiate Mail Function Windows Reload to refresh your session. I've done lots of debugging and found in my case that the following functions were causing the error, when passing the $Subject parameter to mail(): SecureHeader(); 1 SecureHeader(); EncodeHeader(); 1 EncodeHeader(); https://github.com/PHPMailer/PHPMailer/issues/648 The error message suggests that the From Email address you are using is not being recognised by the SMTP service.

If you're relaying via somwehere else (like gmail), then you will indeed need to authenticate first. –Synchro Jun 4 '15 at 16:59 @Asok the SMTP username and password are Uncaught Exception 'phpmailerexception' With Message 'could Not Instantiate Mail Function cranial_bore 2006-04-17 23:49:59 UTC #7 Putting SMTP won't work unless you have a mail server setup on your localhost. In order to make it work on Windows you have to change the PHP configuration. ie.

Phpmailer Could Not Instantiate Mail Function Windows

Either you edit php.ini (the configuration will apply globally) or you can use function ini_set() to change it only for current execution of the current script. https://www.sitepoint.com/community/t/phpmailer-could-not-instantiate-mail-function/2524 I would get the same error message "could not instantiate….mail..". Could Not Instantiate Mail Function Wordpress Create an account Resources Demo siteChronoforms start guideChronoForms for WordPress   2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com Terms of usePrivacy Policy Back Could Not Instantiate Mail Function Phpmailer Localhost Category: Ramblings Tags: php, prestashop, Web Developpment About Gi I love new technologies and try to use them in my everyday life.

Apache doesn't log such errors, because it doesn't know the meaning of the /usr/sbin/sendmail numeric return codes, and Postfix doesn't log it in /var/log/mail.log because the email never arrives to the share|improve this answer answered Jun 4 '15 at 16:11 Raphael Costa 11 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google asked 7 years ago viewed 59566 times active 2 months ago Visit Chat Linked 16 Could not instantiate mail function. thanks a lot, it saved my time a lot !! –Aditya P Bhatt May 23 '13 at 16:52 1 the problem with SMTP is that it requires to install a Wordpress Phpmailer Could Not Instantiate Mail Function

DDoS ignorant newbie question: Why not block originating IP addresses? Since SMTP doesn't authenticate whether the email address I sent from is genuine I should be able to pass it anything such as [email protected] right? How common is the usage of yous as a plural of you? http://back2cloud.com/could-not/phpmailer-error-could-not-execute-var-qmail-bin-sendmail.php Already have an account?

php
$mail->IsSMTP();
Thanks for responding. Could Not Instantiate Mail Function Joomla As for 1), I tried it and got the below error message: Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 656 Star 7,312 Fork 4,188 PHPMailer/PHPMailer Code Issues 48 Pull requests 11 Projects

Solution: send with an external SMTP server instead. 2.

this is the code: "Joomla Mailer subsystem" -> "phpmailer software" -> "php mail() function" You can find it in the PHP's installation directory or in the Windows's directory. Could Not Instantiate Mail Function Localhost I hope it helps you out if you got this issue too.

Just be careful to remove these functions correctly from all places in your class.phpmailer.php. Buy Now! Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. There is no way to know why, other then seeing in the system log (accessible only to system administrator).

Already have an account? Change the SMTP from localhost to your SMTP address of your ISP. View all posts by Gi → Post navigation ← Bug Prestashop, la liste des magasins n'apparait pas Embed Images in PHPMailer → 5 thoughts on “[SOLVED] Could not instantiate mail function have for your PHP require("phpmailer-1.73/phpmailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); and use cranial-bore's excerpt above, changing the SMTP address to the SMTP address that your mail program such as Outlook uses.

Reply ↓ Leave a Reply Cancel reply Your email address will not be published. You signed out in another tab or window. We've received your email. Log In Phpmailer: Could not instantiate mail function PHP popendot 2006-04-17 06:21:43 UTC #1 i'm having a problem sending an email using phpmailer...The error is: Message was not sentMailer Error: Could

Many thanks, Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled Shop Versioning Reference Articles Premium Toggle Navigation Docs Home “Could not instantiate mail If the SMTP server uses SMTP authentication (the webmail providers do it, your ISP or your company might do it or might not do it) then you have to also add: Asking for a written form filled in ALL CAPS more hot questions question feed lang-php about us tour help blog chat data legal privacy policy work here advertising info mobile contact Does your script work correctly without the attachment?

Join them; it only takes a minute: Sign up phpmailer error “Could not instantiate mail function” up vote 11 down vote favorite 3 I'm using the mail() basic example modified slightly The PHP sending code looks okay, the php.ini looks okay, the PHPMailer class is correctly in "phpMailer/class.phpmailer.php", I'm using my ISP's STMP settings, what else must I have? Reload to refresh your session.