Welcome Guest, Not a member yet? Register   Sign In
Unable to send emails with MAMP
#1

[eluser]Wit07[/eluser]
Hi there,

After several hours seeking on the web, I didn't solve my issue: I can't send emails using CI running on MAMP free.

Here is my config:

Code:
$config = array();
  $config['protocol'] = "smtp";
  $config['smtp_host'] = "ssl://smtp.gmail.com";
  $config['smtp_port'] = "465";
  $config['smtp_user'] = "******";
  $config['smtp_pass'] = "******";
  $config['mailtype'] = "text";
  $config['charset']  = "utf-8";
  $config['starttls'] = TRUE;
  
  $this->load->library('email', $config);
  
  $this->email->from('******');
  $this->email->to($email);
  $this->email->subject($title);
  $this->email->message($content);
  
  $this->email->send();

I got an infinitive loop and nothing is printed into my log... I enabled SSL on MAMP and added these lines to php.ini:

Code:
[mail function]
; For Win32 only.
SMTP = ssl://smtp.gmail.com
smtp_port = 465

; For Win32 only.
sendmail_from = ******

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path =/usr/sbin/sendmail -t -i -f ******

Also, a command line such as
Code:
echo "test" | mail -s "subject" [email protected]
works fine.

Do you have any idea?

Cheers


Messages In This Thread
Unable to send emails with MAMP - by El Forum - 08-12-2013, 07:10 AM
Unable to send emails with MAMP - by El Forum - 08-12-2013, 08:17 AM
Unable to send emails with MAMP - by El Forum - 08-12-2013, 08:33 AM
Unable to send emails with MAMP - by El Forum - 08-13-2013, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB