I am new and in problem - mail library - sending emails using SMTP |
[eluser]verynewtothis[/eluser]
Trying to send email using protocol = SMTP on windows. Have provided the user id, password and SMTP server address as well.. I get an error Quote:Fatal error: Maximum execution time of 90 seconds exceeded in E:\inetpub\vhosts\xyz.com\httpdocs\cxvx\libraries\Email.php on line 1812Any guesses? Also, Do I need to set SMTP settings in PHP.ini to send SMTP emails using CI's mail library's SMTP?
[eluser]verynewtothis[/eluser]
I don't have access to php.ini file so I did this in the constructor: Code: function __construct() Same error..
[eluser]TheFuzzy0ne[/eluser]
How many Emails are you attempting to send at any one time?
[eluser]TheFuzzy0ne[/eluser]
Are you able to send mail using the Web interface provided by your Web host?
[eluser]TheFuzzy0ne[/eluser]
Please post your controller code, and the config settings you're using for the Email library. I use SMTP, and I've not needed to change anything in the php.ini - It's all configured via CodeIgniter.
[eluser]verynewtothis[/eluser]
Controller Code: class Contact extends Controller { Email Configuration - from file email.php residing in config directory Code: $config['protocol'] = 'smtp';
[eluser]TheFuzzy0ne[/eluser]
I'd suggest that you comment out all of the code in your method, and uncomment it line by line, until you find where the problem is. If that fails, then I'd suggest you try sending the Email with sendmail, and seeing if that makes any difference. |
Welcome Guest, Not a member yet? Register Sign In |