PHP Classes

not works

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  not works  >  (Un) Subscribe thread alerts  
Subject:not works
Summary:not works with gmail
Messages:31
Author:ahmet guven
Date:2007-03-07 02:36:28
Update:2009-09-08 17:47:05
 
  1 - 10   11 - 20   21 - 30   31 - 31  

  21. Re: not works   Reply   Report abuse  
Picture of ngie sing wang ngie sing wang - 2007-12-19 20:15:15 - In reply to message 20 from Neerav Modi
thanks fro replied...but after i key the username n password

the error

Resolving SMTP server domain "smtp.gmail.com"...
Connecting to host address "209.85.199.109" port 587...
Cound not send the message to ngiesingwang@gmail.com. Error: could not connect to the host "smtp.gmail.com": The operation completed successfully.

wat is tis mean by?

  22. Re: not works   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-12-20 01:59:42 - In reply to message 21 from ngie sing wang
It seems you are not able to connect to Gmail SMTP server port 587. Maybe you have a firewall in the middle that is blocking connections to that port.

  23. Re: not works   Reply   Report abuse  
Picture of ngie sing wang ngie sing wang - 2007-12-22 15:08:12 - In reply to message 22 from Manuel Lemos
"Cound not send the message to ngiesingwang@gmail.com. Error: establishing SSL connections requires the OpenSSL extension enabled"

i still got tis problem so how to solve it...i try many possibles way but the problem still exist....

for this file php_openssl.dll inside tis folder C:\AppServ\php5\ext...is it need to amend?

so could u let me know the step to configure in order to run the test_smtp.php sending mail script?


thank you

  24. Re: not works   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-12-22 16:53:38 - In reply to message 23 from ngie sing wang
You need to install the OpenSSL extension specific for the PHP version you are using, and then enable it in php.ini. I cannot help you much there because I do not use Windows. I recommend that you join the PHP Windows mailing list and ask for help there to enable the OpenSSL extension.

br.php.net/mailing-lists.php

  25. Re: not works   Reply   Report abuse  
Picture of saroj saroj - 2009-04-15 21:45:40 - In reply to message 11 from Manuel Lemos
Hi

Can anybody tell me how to send HTML Format mail. Text format is working fine for the below code.

<?php

require ("smtp.inc.php");

$smtp=new SMTPMAIL;

$from="Admin<admin@pureoranges.com>";
$to="Saroj<saroj@pureoranges.com>";
$cc="Gmail<sarojlintu@yahoo.co.in>;Yahoo<sarojlintu@yahoo.co.in>";
$subject="welcome";
$body="This is test mail.don't reply it.";

if(!$smtp->send_smtp_mail($to,$subject,$body,$cc,$from))
echo "Error in sending mail!<BR>Error: ".$smtp->error;
else
echo "Mail sent succesfully!";

?>

  26. Re: not works   Reply   Report abuse  
Picture of saroj saroj - 2009-04-15 21:50:36 - In reply to message 23 from ngie sing wang
Hi

I wants to read .doc fine from server and display in php page.(I am having a job portal i wants to show resumes of candidates to Employers without downloading the file)

I am having Linux Hosting Shared Server.

They are not allowing to install any kind of .exe or API to rea doc file.

Thanks in advance
Saroj

  27. Re: not works   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-16 00:39:26 - In reply to message 25 from saroj
Please read this article. It explains all you need to know:

phpclasses.org/blog/package/9/post/ ...

  28. Re: not works   Reply   Report abuse  
Picture of Biakkobar Biakkobar - 2009-08-20 11:02:09 - In reply to message 25 from saroj
You just make an additional script for header to detect your mail format is html. the setting just like this :

if($smtp->SendMessage(
$from,
array(
$to
),
array(
"MIME-Version: 1.0",
"Content-type: text/html; charset=iso-8859-1",
"From: $from",
"To: $to",
"Subject: Testing Manuel Lemos' SMTP class",
"Date: ".strftime("%a, %d %b %Y %H:%M:%S %Z")
),
"
<html>
<head>
<title>Pendaftaran Berhasil</title>
</head>
<body>
<h3 class='style1'><font color='#009900'>PENDAFTARAN BERHASIL!</font></h3>
<p>Selamat $userNama, anda berhasil melakukan pendaftaran di HargaLelang.com.<br>
Untuk dapat menggunakan account anda, silahkan confirmasi pendaftaran anda dengan mengklik link dibawah ini!<br /><br />
klik link : <a href='http://www.hargalelang.com/konfirmasi_$userDaftar.html'>http://www.hargalelang.com/konfirmasi_$userDaftar.html</a> atau <a href='http://www.hargalelang.com/konfirmasi_$userDaftar.html'>klik disini</a> untuk melakukan aktivasi</p>
<p>Terima Kasih.</p>
<p>Support HargaLelang.com </p>
</body>
</html>
"))
echo "Message sent to $to OK.\n";
else
echo "Cound not send the message to $to.\nError: ".$smtp->error."\n";

Regards

  29. Re: not works   Reply   Report abuse  
Picture of tiago coelho tiago coelho - 2009-09-08 12:46:23 - In reply to message 1 from ahmet guven
hello iam interesting in using your php class SMTP but iam a doubt if this classes permits uploads of files

  30. Re: not works   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-09-08 17:38:20 - In reply to message 29 from tiago coelho
The SMTP class just sends the message to the SMTP server.

To send attachments you need to compose it using the MIME message class in conjunction:

phpclasses.org/mimemessage

 
  1 - 10   11 - 20   21 - 30   31 - 31