Uncategorized

ubuntu send email smtp

#

# Config file for sSMTP sendmail

#

# The person who gets all mail for userids < 1000

# Make this empty to disable rewriting.

root=xxx@gmail.com

 

# The place where the mail goes. The actual machine name is required no

# MX records are consulted. Commonly mailhosts are named mail.domain.com

mailhub=smtp.gmail.com:587

 

AuthUser=xxx@gmail.com

AuthPass=password

UseTLS=YES

UseSTARTTLS=YES

 

# Where will the mail seem to come from?

rewriteDomain=gmail.com

 

# The full hostname

hostname=localhost

 

# Are users allowed to set their own From: address?

# YES – Allow the user to specify their own From: address

# NO – Use the system generated From: address

FromLineOverride=YES

 

 

Edit on php.ini

sendmail_path = /usr/sbin/sendmail -t
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s