473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2984
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 "suggestions"
are not unbiased.

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

Jun 27 '08 #5
NC
On Jun 9, 9:06*pm, GuangXiN <xvt...@gmail.comwrote:
>
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
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 ...
21
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. ...
1
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...
4
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
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...
4
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...
5
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...
1
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...
1
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...
4
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...

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.