<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: SKDDEV</title>
    <description>The latest articles on DEV Community by SKDDEV (@skdbigdev).</description>
    <link>https://dev.to/skdbigdev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F104740%2F2fb97e94-40be-435f-b4f1-8d85a7140a83.png</url>
      <title>DEV Community: SKDDEV</title>
      <link>https://dev.to/skdbigdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/skdbigdev"/>
    <language>en</language>
    <item>
      <title>Send mail with php on localhost</title>
      <dc:creator>SKDDEV</dc:creator>
      <pubDate>Wed, 12 Jun 2019 16:18:43 +0000</pubDate>
      <link>https://dev.to/skdbigdev/send-mail-with-php-on-localhost-1hm3</link>
      <guid>https://dev.to/skdbigdev/send-mail-with-php-on-localhost-1hm3</guid>
      <description>&lt;p&gt;dev environnment&lt;/p&gt;

&lt;p&gt;PHP 7.2.11&lt;br&gt;
Laragon&lt;/p&gt;

&lt;p&gt;Hello Guys,&lt;/p&gt;

&lt;p&gt;please, help me,&lt;br&gt;
I am developing  a website using PHP. i want to send (email on localhost to my gmail account.&lt;/p&gt;

&lt;p&gt;here are my sendmail.ini file config&lt;/p&gt;

&lt;p&gt;[sendmail]&lt;/p&gt;

&lt;p&gt;smtp_server=smtp.gmail.com&lt;br&gt;
smtp_port=587&lt;br&gt;
smtp_ssl=auto&lt;br&gt;
error_logfile=error.log&lt;br&gt;
debug_logfile=debug.log&lt;br&gt;
auth_username=&lt;a href="mailto:account@gmail.com"&gt;account@gmail.com&lt;/a&gt;&lt;br&gt;
auth_password=*************&lt;br&gt;
force_sender=&lt;a href="mailto:account@gmail.com"&gt;account@gmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And i set the sendmail path in php.ini file&lt;/p&gt;

&lt;p&gt;Also i disable two factors authentication and enable Less secure application access in my gmail  account  setting&lt;/p&gt;

&lt;p&gt;So&lt;/p&gt;

&lt;p&gt;when i send the email, it worked and i receive it in format text in the output directory localized in C:\laragon\bin\sendmail\output &lt;em&gt;but not in my gmail account inbox&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Here is the error that i get in error.log file (19/06/12 15:50:53 : Must issue a STARTTLS command first. r3sm21418441wrr.61 - gsmtp)&lt;/p&gt;

</description>
      <category>php</category>
    </item>
  </channel>
</rss>
