473,569 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need a PHP SMTP Client

I need an stmp client to send email through my mail server.
I don't want to use php's mail function.
who can recommend some?
Jun 27 '08 #1
5 2995
GuangXiN wrote:
I need an stmp client to send email through my mail server.
I don't want to use php's mail function.
who can recommend some?
Hi,
there are two popular approaches to this problem, Pear::Mail and
phpmailer. I prefer to use Pear Mail, and I've written up an article on
it here http://www.phpmaniac.net/wiki/index.php/Pear_Mail

It can quite happily send mail using smtp instead of the php mail()
function using this example
http://www.phpmaniac.net/wiki/index....ing_using_SMTP

Phpmailer is available from http://phpmailer.codeworxtech.com/ for an
alternative approach.

--
Hope this helps, cheers
Leigh Finch
Jun 27 '08 #2
Hello,

on 06/10/2008 01:06 AM GuangXiN said the following:
I need an stmp client to send email through my mail server.
I don't want to use php's mail function.
who can recommend some?
Yoy may want to try this MIME message class. It comes with a wrapper
function named smtp_mail() that is equivalent to mail() (except for
mail() bugs) but uses a given SMTP server, so it can be used as direct
replacement without having to change you application code much.

Take a look at the test_smtp_mail. php example script.

http://www.phpclasses.org/mimemessage

You also need this class in conjunction:

http://www.phpclasses.org/smtpclass
--

Regards,
Manuel Lemos

PHP professionals looking for PHP jobs
http://www.phpclasses.org/professionals/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Jun 27 '08 #3
Leigh Finch wrote:
GuangXiN wrote:
>I need an stmp client to send email through my mail server.
I don't want to use php's mail function.
who can recommend some?

Hi,
there are two popular approaches to this problem, Pear::Mail and
phpmailer. I prefer to use Pear Mail, and I've written up an article on
it here http://www.phpmaniac.net/wiki/index.php/Pear_Mail

It can quite happily send mail using smtp instead of the php mail()
function using this example
http://www.phpmaniac.net/wiki/index....ing_using_SMTP

Phpmailer is available from http://phpmailer.codeworxtech.com/ for an
alternative approach.

--
Hope this helps, cheers
Leigh Finch
Thanks a lot.
I choose phpmailer at the end. I remember I've used it before. I'm just
not sure what its name is.
Jun 27 '08 #4
Manuel Lemos wrote:
Hello,

on 06/10/2008 01:06 AM GuangXiN said the following:
>I need an stmp client to send email through my mail server.
I don't want to use php's mail function.
who can recommend some?

Yoy may want to try this MIME message class. It comes with a wrapper
function named smtp_mail() that is equivalent to mail() (except for
mail() bugs) but uses a given SMTP server, so it can be used as direct
replacement without having to change you application code much.

Take a look at the test_smtp_mail. php example script.

http://www.phpclasses.org/mimemessage

You also need this class in conjunction:

http://www.phpclasses.org/smtpclass

You should warn people these are YOUR classes, and your "suggestion s"
are not unbiased.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===

Jun 27 '08 #5
NC
On Jun 9, 9:06*pm, GuangXiN <xvt...@gmail.c omwrote:
>
I need an stmp client to send email through my mail server.
I don't want to use php's mail function.
who can recommend some?
Check out phpMailer: http://phpmailer.sf.net/

Cheers,
NC
Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
9859
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ********************************** package Celcom.Client;
21
3347
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. Nancy W
1
8033
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net page. earlier it was showing send using not find error.
4
8840
by: motis | last post by:
Hi all I try to send email by smtp server. But, my smtp server need authentication ! How can I do it? with thanks Motis
6
2091
by: John Salerno | last post by:
If I want to write a cgi script that reads the contents of an HTML form and emails it to me, what would I use as the host parameter for my SMTP instance? The example in the docs is 'localhost', but I don't know what that means or refers to. I imagine I would have to use something that was tied to me specifically, but tied to what? My computer?...
4
3080
by: krishnakant Mane | last post by:
hello, I am a bit confused. I want to make a program that will take some data from a database and make a string of text. and send it to the respective email id of a person. next I also want to send an attachment of a photo along with the email. I will be required to make this program run on windows xp. can some one guide me as to how I can...
5
4210
by: Sin Jeong-hun | last post by:
Hi. I would like to let users send bug reports or other messages to me. Maybe the easiest way to send e-mails from my application is just use the default e-mail agent by executing a link mailto://mymail@domail.com. But this only works if the user has configured Outlook or something. Many users use web-based mails here so if I do so,...
1
2743
by: dansuthar | last post by:
Hi everyone there, I want some help in sending mails using .net 2.0 form vb.net. i use the following code to send SMTP Mails: Code:Dim client As New Net.Mail.SmtpClient("smtp.gmail.com") Dim mm As New Net.Mail.MailMessage("Me@MyDomain.Com", "You@YourDomain.com") mm.Body = "<h1>Hello World</h1>" Dim client As New...
1
14347
by: Jeff | last post by:
I am receiving the following error: // error: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 No AUTH command has been given. How do I provide the Client Authentication with the code below. private void SendEmail2()
4
3369
by: Brian | last post by:
Hello all, we don't actually host our own server but still should work the same. Here is the error message i get "error mailbox unavailable. The server response was: must be authenticated code 550" and below is the code. the only thing i had to to do was change the port as our isp blocks 25. Just wondering if anyone has run into this...
0
7612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8122
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7970
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5513
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.