?
Solved

configure php to send mail using SMTP

Posted on 2014-10-31
2
Medium Priority
?
372 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 2000 total points
ID: 40419539
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

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

Find out what Office 365 Transport Rules are, how they work and their limitations managing Office 365 signatures.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In this video we show how to create a Shared Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Sha…
Suggested Courses
Course of the Month15 days, 11 hours left to enroll

743 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