Solved

configure php to send mail using SMTP

Posted on 2014-10-31
2
362 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 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
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 an Accepted Domain 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 Mail Flow >> Ac…

828 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