Welcome Guest, Not a member yet? Register   Sign In
Sending Email From Home Linux Server (For Testing Purposes)
#2

[eluser]bretticus[/eluser]
I always use an email config file for my development websites (on my local machine, but your linux server is behind an ISP home IP too so it's the same thing.)

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------
| EMAIL CONFING
| -------------------------------------------------------------------
| Configuration of outgoing mail server.
| */
$config['protocol']='smtp';
$config['smtp_host']='ssl://smtp.googlemail.com';
$config['smtp_port']=465;
$config['smtp_timeout']=30;
$config['smtp_user']='******@gmail.com';
$config['smtp_pass']='******';
$config['charset']='utf-8';  
$config['newline']="\r\n";

/* End of file email.php */
/* Location: ./system/application/config/email.php */

Make sure the openssl extension is installed and working (check your local php.ini.)

This works well. Another thing you can try is using your ISP's outgoing (smtp) server (with or without smtp credentials depending on which works.)

UPDATE:

Alternately, since, it'd be coming from your own linux server, you could setup nullmailer and configure it to forward to your ISP's outgoing server (requires no email.php config file.)


Messages In This Thread
Sending Email From Home Linux Server (For Testing Purposes) - by El Forum - 09-09-2010, 10:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB