.. If you enable - extension=php_openssl.dll , and do how it's described in the article from the previous post, let us know so we can help you further
Main Topics
Browse All TopicsI got an error even using cable
Fatal error: Maximum execution time of 60 seconds exceeded in S:\interpub\Mailing\class.
I'm using gmail to test
My gmail Status: POP is enabled.
I included the username and password in my script for test.
Seem like the gmail require to use ssl for outgoing and incoming.
I' m using phpmailer-1.73.
I changed the Port on line 30 to port 465 file class.smtp.php
and line 162 to port 465 for the class.phpmailer.php
<?php
require('class.phpmailer.p
//gmail setup
//http://mail.google.com/s
//Enter '465' in the 'Outgoing mail (SMTP):' field.
///pop.gmail.com
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "pop.gmail.com"; // SMTP servers
//$mail->Host = "smtpout.secureserver.net;
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "xxxxxxx@gmail.com"; // SMTP username
$mail->Password = "PleaseDon'tChangeThisPass
$mail->From = 'xxxxxxx@gmail.com';
$mail->FromName = 'from name';
$mail->AddAddress('xxxxxxx
$mail->Subject = "Here is the subject";
$mail->Body = "This is the <b>HTML body</b>";
$mail->AltBody = "This is the text-only body";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>
I read a little on
http://phpmailer.sourcefor
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
For now I can control my server, but later I'll put my script on godaddy.com which mean I have no controll on their server.
For now I just enable the php extension a did a little modified as on the Tech Meal said but seem like we have a fatal problem here
Warning: fgets() [function.fgets]: SSL: fatal protocol error in S:\interpub\class.smtp.php
Message has been sent.
I did paste the code above the #connect to the smtp server and modified user name and password as they said.
$host = "ssl://smtp.gmail.com";
$port = 465;
Now I am trying to use the different email script with
http://pear.php.net/packag
but you said you received the mail sent with that script. So the only "problem" is that it gives the warning about fgets(), but it seems weird.
Anyway, evan if you use another class, you will still need to make a ssl connection, so you should find out if the company which will host your application has the ssl extension enabled in php.
Are you sure, because I use the script below to test the but failed.
the xxxxxxx is my username and my domain.
I just send them an email about this problem.
I hope they will respond to me.
<?php
$from = "Sandra Sender <xxxxxxx@xxxxxxx.COM>";
$to = "xxxxxxx@xxxxxxx.COM>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
Man, goddady.com server is running safe mode.
I had a package with free hosting that's why.
That's I can't send any email out.
I just changed to the linux operation system on my account "still free"
and it works fine now.
I don't need to do any validation at all.
I'm so happy now!!!
The simple script below is doing fine already.
Yahoo!!!!!!!!!!!!!!!!!!!!!
<?php
$from = "Sandra Sender <testme@xxxxxx.COM>";
$to = "Ramona Recipient <testme@xxxx.COM>";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
I hope that the moderator will change my post.
Business Accounts
Answer for Membership
by: cristi_2112Posted on 2006-08-23 at 00:53:40ID: 17370225
Hello,
com/2006/0 6/gmail-ph p-send-ema il- using-p hp-with.ht ml
Read this - http://deepakssn.blogspot.
It is exactly what you need.
Good luck :)