{"action":"closed","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1236","repository_url":"https://api.github.com/repos/PHPMailer/PHPMailer","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1236/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1236/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/1236/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/1236","id":273207558,"number":1236,"title":"Whats The Problem i hav tried many times. Help me . ","user":{"login":"sikandar0308","id":33591788,"avatar_url":"https://avatars2.githubusercontent.com/u/33591788?v=4","gravatar_id":"","url":"https://api.github.com/users/sikandar0308","html_url":"https://github.com/sikandar0308","followers_url":"https://api.github.com/users/sikandar0308/followers","following_url":"https://api.github.com/users/sikandar0308/following{/other_user}","gists_url":"https://api.github.com/users/sikandar0308/gists{/gist_id}","starred_url":"https://api.github.com/users/sikandar0308/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sikandar0308/subscriptions","organizations_url":"https://api.github.com/users/sikandar0308/orgs","repos_url":"https://api.github.com/users/sikandar0308/repos","events_url":"https://api.github.com/users/sikandar0308/events{/privacy}","received_events_url":"https://api.github.com/users/sikandar0308/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-12T06:52:22Z","updated_at":"2017-11-13T08:56:51Z","closed_at":"2017-11-13T08:56:51Z","author_association":"NONE","body":"**# Error is** # Code is below\r\n----------------------------------------------------------------------------------------------\r\n_**<2017-11-12 06:44:52 SMTP ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060) 2017-11-12 06:44:52 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Mail Not >**_\r\n------------------------------------------------------------------------------------------\r\n`<?php\r\n\t//getting Data from Form\r\n\t$mail_to = $_POST['email'];\r\n\t$msg = $_POST['msg'];\r\n\t$subject = $_POST['subject'];\r\n\t //Setting  up Sending mail\r\n\trequire 'PHPMailer-master/PHPMailerAutoload.php';\r\n\t$email = new PHPMailer();\r\n\t$email ->IsSmtp();\r\n\t$email ->SMTPDebug = 1;\r\n\t$email ->SMTPAuth = true;\r\n\t$email ->SMTPSecure = 'tls';// or ssl on 465\r\n\t$email ->Host = \"smtp.gmail.com\";\r\n\t$email ->Port = 587; // or 465 on ssl\r\n\t$email ->IsHTML(true);\r\n\t$email ->Username = \"xyz@gmail.com\";\r\n\t$email ->Password = \"*****\";\r\n\t$email ->SetFrom(\"xyz@gmail.com\");\r\n\t$email ->Subject = $subject;\r\n\t$email ->Body = $msg;\r\n\t$email ->AddAddress($mail_to);\r\n\t\r\n\tif(!$email->Send())\r\n\t{\r\n\t\techo \"Mail Not Sent\";\r\n\t}\r\n\telse\r\n\t{\r\n\t\t\"Mail Sent\";\r\n\t}\r\n\r\n?>`\r\n------------------------------------------------------------"}}
{"actor":{"display_login":"Synchro"}}