Solved

configure php to send mail using SMTP

Posted on 2014-10-31
2
337 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
2 Comments
 
LVL 82

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
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…
In this video we show how to create a mailbox database 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 Servers >> Data…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now