Welcome Guest, Not a member yet? Register   Sign In
send email from local mail server to my gmail account
#2

[eluser]keld[/eluser]
You can send email from localhost to your gmail, this is that I use on my website:

Code:
$config['protocol']='smtp';
$config['smtp_host']='ssl://smtp.googlemail.com';
$config['smtp_port']=465;
$config['smtp_user']='[email protected]';
$config['smtp_pass']='yourgmailpassword';
$config['charset']='utf-8';
$config['mailtype']='html';
$config['newline']="\r\n";

and you need to edit your php.ini file (it's around the middle of the file):
Code:
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = ssl://smtp.googlemail.com
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = [email protected]


Messages In This Thread
send email from local mail server to my gmail account - by El Forum - 02-26-2013, 02:00 PM
send email from local mail server to my gmail account - by El Forum - 02-26-2013, 04:26 PM
send email from local mail server to my gmail account - by El Forum - 02-27-2013, 01:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB