Click here to Skip to main content
15,887,866 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: what is camera icon beside image search of google Pin
hosseinDolat12-Sep-12 0:25
hosseinDolat12-Sep-12 0:25 
GeneralRe: what is camera icon beside image search of google Pin
Sandeep Mewara12-Sep-12 0:35
mveSandeep Mewara12-Sep-12 0:35 
AnswerRe: what is camera icon beside image search of google Pin
Mohibur Rashid11-Sep-12 23:42
professionalMohibur Rashid11-Sep-12 23:42 
GeneralRe: what is camera icon beside image search of google Pin
hosseinDolat12-Sep-12 0:24
hosseinDolat12-Sep-12 0:24 
GeneralRe: what is camera icon beside image search of google Pin
Mohibur Rashid12-Sep-12 1:40
professionalMohibur Rashid12-Sep-12 1:40 
AnswerRe: what is camera icon beside image search of google Pin
Shameel17-Sep-12 5:15
professionalShameel17-Sep-12 5:15 
GeneralRe: what is camera icon beside image search of google Pin
hosseinDolat17-Sep-12 17:43
hosseinDolat17-Sep-12 17:43 
QuestionPHP Email Pin
chandra reinhart11-Sep-12 5:28
chandra reinhart11-Sep-12 5:28 
Hi all,

I've problem with send email using php. I used this code:

IsSMTP();

//GMAIL config
$mail->SMTPAuth = true; // enable SMTP authentication
$mail->SMTPSecure = "ssl"; // sets the prefix to the server
$mail->Host = "smtp.gmail.com"; // sets GMAIL as the SMTP server
$mail->Port = 465; // set the SMTP port for the GMAIL server
$mail->Username = "myaccount@gmail.com"; // GMAIL username
$mail->Password = "mypassword"; // GMAIL password
//End Gmail

$mail->From = "<myaccount@gmail.com>";
$mail->FromName = "I am";
$mail->Subject = "Test";
$mail->MsgHTML("the message");

//$mail->AddReplyTo("reply@email.com","reply name");//they answer here, optional
$mail->AddAddress("myfriend@gmail.com","Myfriend");
$mail->IsHTML(true); // send as HTML

if(!$mail->Send()) {//to see if we return a message or a value bolean
echo "Mailer Error: " . $mail->ErrorInfo;
} else echo "Message sent!";

?>

After I running the code and I get this error :

SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host.

Why this code isn't running properly? What should I do?

Thank you,

Reinhart
AnswerRe: PHP Email Pin
User 171649211-Sep-12 9:53
professionalUser 171649211-Sep-12 9:53 
GeneralRe: PHP Email Pin
chandra reinhart11-Sep-12 13:29
chandra reinhart11-Sep-12 13:29 
GeneralRe: PHP Email Pin
User 171649211-Sep-12 22:12
professionalUser 171649211-Sep-12 22:12 
GeneralRe: PHP Email Pin
chandra reinhart11-Sep-12 22:47
chandra reinhart11-Sep-12 22:47 
GeneralRe: PHP Email Pin
User 171649212-Sep-12 0:25
professionalUser 171649212-Sep-12 0:25 
QuestionSearch action should be an HTTP GET or a POST? Pin
AlexCode11-Sep-12 0:23
professionalAlexCode11-Sep-12 0:23 
AnswerRe: Search action should be an HTTP GET or a POST? Pin
Eddy Vluggen11-Sep-12 2:16
professionalEddy Vluggen11-Sep-12 2:16 
GeneralRe: Search action should be an HTTP GET or a POST? Pin
AlexCode11-Sep-12 2:47
professionalAlexCode11-Sep-12 2:47 
GeneralRe: Search action should be an HTTP GET or a POST? Pin
Eddy Vluggen11-Sep-12 5:32
professionalEddy Vluggen11-Sep-12 5:32 
AnswerRe: Search action should be an HTTP GET or a POST? Pin
Zamshed Farhan12-Jan-13 15:35
Zamshed Farhan12-Jan-13 15:35 
QuestionHTML table oddity Pin
David Crow10-Sep-12 11:01
David Crow10-Sep-12 11:01 
AnswerRe: HTML table oddity Pin
Peter_in_278010-Sep-12 13:11
professionalPeter_in_278010-Sep-12 13:11 
GeneralRe: HTML table oddity Pin
David Crow11-Sep-12 3:38
David Crow11-Sep-12 3:38 
AnswerRe: HTML table oddity Pin
AspDotNetDev10-Sep-12 13:15
protectorAspDotNetDev10-Sep-12 13:15 
GeneralRe: HTML table oddity Pin
David Crow11-Sep-12 3:44
David Crow11-Sep-12 3:44 
AnswerRe: HTML table oddity Pin
enhzflep10-Sep-12 15:17
enhzflep10-Sep-12 15:17 
QuestionJquery Ajax Pin
chandra reinhart9-Sep-12 18:24
chandra reinhart9-Sep-12 18:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.