Solved

configure php to send mail using SMTP

Posted on 2014-10-31
2
368 Views
Last Modified: 2014-11-03
Hi,

I need to configure a script to send mail using php.
I am using a gmail account!
On the config file I need to input:

//EMAIL SENDING CONFIGURATION

define('MAILER', "smtp");
define('SMTP_HOST', "");
define('SMTP_PORT', 0);
define('SMTP_USERNAME', "my_email@gmail.com");
define('SMTP_PASSWORD', "my_pass");
define('SMTP_ENCRYPTION', "");

I don't know what to write for: SMTP_HOST, SMTP_PORT, SMTP_ENCRYPTION
Can you please help me!

Thanks,
Cristian
0
Comment
Question by:Qw M
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 40416485
I don't know which library you are using.  PHPMailer has a demo page for sending thru your Gmail account.  https://github.com/PHPMailer/PHPMailer
0
 
LVL 1

Accepted Solution

by:
zoscoit earned 500 total points
ID: 40419539
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question