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
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.
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?
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
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
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.