Solved

configure php to send mail using SMTP

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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

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.
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
In this video we show how to create a Distribution Group 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 >>…
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…

773 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