mail function problem
am 30.05.2003 10:00:50 von Bersani Francesco
Hi, I have a problem with the "mail" function; it always sends mails
assuming in the "from" field the user "apache@myserver.mydomain".
I tried to override it with this code:
----------------
$email = "account@domain.it";
$subject = "prova invio mail ";
$message = "parappaaaaaaaaaaa ";
$headers = "From:webmaster@myDomain.it\nReply-To:webmaster@myDomain.it" ;
mail($email, $subject, $message, $headers);
?>
------------------
It doesn't work...
Can anybody help me ?
--------------
Francesco Bersani
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: mail function problem
am 30.05.2003 10:26:32 von David Grant
Bersani Francesco wrote:
> Hi, I have a problem with the "mail" function; it always sends mails
> assuming in the "from" field the user "apache@myserver.mydomain".
> I tried to override it with this code:
>
> ----------------
>
> $email = "account@domain.it";
> $subject = "prova invio mail ";
> $message = "parappaaaaaaaaaaa ";
> $headers = "From:webmaster@myDomain.it\nReply-To:webmaster@myDomain.it" ;
>
> mail($email, $subject, $message, $headers);
>
> ?>
> ------------------
>
> It doesn't work...
>
> Can anybody help me ?
Take a peek into php.ini to change the default value.
Note that you should seperate mail headers with \r\n.
Regards,
David
--
David Grant
Web Developer
david.grant@wiredmedia.co.uk
http://www.wiredmedia.co.uk
Tel: 0117 930 4365, Fax: 0870 169 7625
Wired Media Ltd
Registered Office: 43 Royal Park, Bristol, BS8 3AN
Studio: Whittakers House, 32 - 34 Hotwell Road, Bristol, BS8 4UD
Company registration number: 4016744
************************************************************ **********
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
************************************************************ **********
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: mail function problem
am 30.05.2003 16:20:23 von Michael Geier
changing the value in the php.ini file is not the ideal option, as it
screws things up for all of users/scripts on the server.
you could use ini_set() for the script to change the sendmail_path var
for that script.
you could use a mail class that does alot of the grunt work for you
(Manuel Lemos normally posts some classes from his site, however I use
PHPMailer (http://phpmailer.sourceforge.net) and have never looked back.
On Fri, 2003-05-30 at 03:26, David Grant wrote:
> Bersani Francesco wrote:
>
> > Hi, I have a problem with the "mail" function; it always sends mails
> > assuming in the "from" field the user "apache@myserver.mydomain".
> > I tried to override it with this code:
> >
> > ----------------
> >
> > $email = "account@domain.it";
> > $subject = "prova invio mail ";
> > $message = "parappaaaaaaaaaaa ";
> > $headers = "From:webmaster@myDomain.it\nReply-To:webmaster@myDomain.it" ;
> >
> > mail($email, $subject, $message, $headers);
> >
> > ?>
> > ------------------
> >
> > It doesn't work...
> >
> > Can anybody help me ?
>
>
> Take a peek into php.ini to change the default value.
>
> Note that you should seperate mail headers with \r\n.
>
> Regards,
>
> David
>
>
> --
> David Grant
> Web Developer
>
> david.grant@wiredmedia.co.uk
> http://www.wiredmedia.co.uk
>
> Tel: 0117 930 4365, Fax: 0870 169 7625
>
> Wired Media Ltd
> Registered Office: 43 Royal Park, Bristol, BS8 3AN
> Studio: Whittakers House, 32 - 34 Hotwell Road, Bristol, BS8 4UD
>
> Company registration number: 4016744
>
> ************************************************************ **********
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
>
> ************************************************************ **********
--
Michael Geier
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Problem
am 12.04.2010 18:25:30 von Alice Wei
--_e5e83ce2-383c-4046-b6e2-1ade11f4e49e_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> Date: Mon=2C 12 Apr 2010 11:09:42 -0500
> From: kdk@daleco.biz
> To: ajwei@alumni.iu.edu
> CC: a.bovanenko@gmail.com=3B php-general@lists.php.net
> Subject: Re: [PHP] Mail Function Problem
>=20
> Alice Wei wrote:
> >> Hi!
> >> You have the following php.ini params:SMTP =3D smtp.live.com
> >>=20
> >> smtp_port =3D 587
> >> live.com not support relay and it requires authentication.
> >=20
> > Is there an email account that I could try? I thought=20
> > most email accounts requires authentication anyway.
>=20
> Well=2C "therein lies the rub=2C" as the Bard said (maybe).
> PHP's mail() was built on a general assumption that
> there would be a local SMTP server. It supports remote
> SMTP=2C but I'm not aware of any ability to do SMTP auth=2C
> even in the PEAR packages.
>=20
> You might just wanna read up on mail in general. The
> php.net/mail page lists several relevant RFC's=2C and
> has links to most of the PEAR mail classes=2C etc.
>=20
> You should definitely read up on live.com's email
> configuration. If they use SMTP auth=2C I'm not sure
> you can do this (per above). If it uses=2C say=2C "POP
> before SMTP" for authorization=2C you might be able to
> hack something together with the PHP IMAP functions=2C or
> even sockets=2C but you're getting into a big lotta work
> for what seems a small thing.
>=20
This is what I am talking about.=20
Two years ago when I first set up my own server with Linux and not Windows=
=2C I never had to deal with this.=20
Perhaps the authentication has since then got stricter=2C but it should not=
be so much of a heck of a deal.=20
I found this doc from ATT's website=2C http://helpme.att.net/pdf/uverse/uve=
rse_hsi_qsg_english.pdf=2C so obviously the smtp server I provided earlier =
is probably not up to date.=20
I think I will fiddle around with the php.ini file and see what else is the=
re.=20
Thanks.
Alice
=20
____________________________________________________________ _____
Hotmail has tools for the New Busy. Search=2C chat and e-mail from your inb=
ox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_1=
--_e5e83ce2-383c-4046-b6e2-1ade11f4e49e_--
RE: Mail Function Problem
am 12.04.2010 19:12:56 von Teus Benschop
On Mon, 2010-04-12 at 12:58 -0400, Alice Wei wrote:
> Hi,
>=20
> I found an article on the item you described.
> http://www.talkphp.com/vbarticles.php?do=3Darticle&articleid =3D51&title=
=3Dsending-emails-with-the-zend-framework, but I am using Windows on my PHP=
.. Would this still work? Looks like the example code it provided is from a =
Linux system.=20
>=20
> I also saw info. on this link:
> http://activecodeline.com/sending-emails-via-zend_mail-using -google-email=
-account. Since all the authentication is done here in one go, what should =
I edit on my PHP.ini file? Do I have to set the params as http://helpme.att=
..net/pdf/uverse/uverse_hsi_qsg_english.pdf is described? I use U-Verse from=
AT&T, by by way.
>=20
> [mail function]
> ; For Win32 only.
> SMTP =3D smtp.att,yahoo.com
> smtp_port =3D 465
>=20
> ; For Win32 only.
> sendmail_from =3D elite.english@att.net
>=20
There's no need to edit anything in php.ini, and, since it is pure PHP,
it should work on Windows too, though I didn't try it. It works well on
Linux. Here's the class we used to send mail through Zend_Mail:
class Mail_Send
{
public function __construct($to_mail, $to_name, $subject, $body)
{ =20
$config_general =3D Database_Config_General::getInstance ();
$mail =3D new Zend_Mail();
$mail->setFrom($config_general->getSiteMailAddress(),
$config_general->getSiteMailName());
$mail->addTo($to_mail, $to_name);
$mail->setSubject($subject);
$mail->setBodyText($body, "UTF-8");
$smtp_host =3D $config_general->getMailSendHost();
$smtp_authentication =3D $config_general->getMailSendAuthentication
();
$smtp_user =3D $config_general->getMailSendUsername();
$smtp_password =3D $config_general->getMailSendPassword();
$smtp_security =3D $config_general->getMailSendSecurity();
$smtp_port =3D $config_general->getMailSendPort();
if ($smtp_host !=3D "") {
if ($smtp_authentication !=3D "None") {
$config =3D array ('auth' =3D> $smtp_authentication, 'username' =3D=
>
$smtp_user, 'password' =3D> $smtp_password);
$mta =3D new Zend_Mail_Transport_Smtp($smtp_host);
}
if ($smtp_security !=3D "NONE") {
$config =3D array_merge ($config, array ('ssl' =3D>
$smtp_security));
}
if ($smtp_port !=3D "") {
$config =3D array_merge ($config, array ('port' =3D> $smtp_port));
}
if (isset ($config)) {
$mta =3D new Zend_Mail_Transport_Smtp($smtp_host, $config);
} else {
$mta =3D new Zend_Mail_Transport_Smtp($smtp_host);
}
$mail->send($mta);
} else {
// If no smtp host is given, it uses the default sendmail mail
transport agent.
$mail->send();=20
}
}
}
?>
Hope it works,
Teus.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Problem
am 12.04.2010 19:46:29 von kranthi
PEAR's mail package does support authentication.
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Authentication.htm
In case you get a "Sent Successfully" message (but didn't get a mail
in your inbox or spam folder) there is a problem with your SMTP server
configuration. And
>> There's no need to edit anything in php.ini, and, since it is pure PHP,
>> it should work on Windows too (i tried it and it works)
KK.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Problem
am 12.04.2010 22:54:05 von Kevin Kinsey
kranthi wrote:
> PEAR's mail package does support authentication.
> http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Authentication.htm
>
I will say "mea culpa" on this one; apparently I didn't
dig deep enough into the PEAR docs to figure this out.
It's certainly not mentioned on the manpage at php.net,
but, of course, the PEAR stuff is elsewhere. I read over
the first page linked from the PHP manpage, so it must
have been a lil' deeper than that. If it's only available
at about.com (lol), I'd suggest filing a PR with the PEAR
folk's documentation team, eh?
But, this time I'll do what I shoulda mentioned before and
include the "IANAE" disclaimer on all things PEAR, many
things PHP, and some things SMTP.
Kevin Kinsey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Problem
am 13.04.2010 00:31:08 von Alice Wei
--_f39a3db7-bbb4-4748-864f-aaaf5027e93b_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Thanks to everyone's suggestions=2C I have followed some instructions from=
http://www.geeksengine.com/article/install-pear-on-windows.h tml and attemp=
ted to install PEAR. The problem is=2C when I do a test page=2C which only =
has:
error_reporting(-1)=3B
require_once "PEAR.php"=3B ?>. utor
It only gives me a blank page=2C with no errors. Has anyone who succeeded w=
ith using PEAR on PHP can guide me on a good tutorial to read?
Thanks for your help.
Alice
> Date: Mon=2C 12 Apr 2010 15:54:05 -0500
> From: kdk@daleco.biz
> To: kranthi117@gmail.com
> CC: ajwei@alumni.iu.edu=3B php-general@lists.php.net
> Subject: Re: [PHP] Mail Function Problem
>=20
> kranthi wrote:
> > PEAR's mail package does support authentication.
> > http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Authen=
tication.htm
> >=20
>=20
> I will say "mea culpa" on this one=3B apparently I didn't
> dig deep enough into the PEAR docs to figure this out.
> It's certainly not mentioned on the manpage at php.net=2C
> but=2C of course=2C the PEAR stuff is elsewhere. I read over
> the first page linked from the PHP manpage=2C so it must
> nks ve been a lil' deeper than that. If it's only available
> at about.com (lol)=2C I'd suggest filing a PR with the PEAR
> folk's documentation team=2C eh?
>=20
> But=2C this time I'll do what I shoulda mentioned before and
> include the "IANAE" disclaimer on all things PEAR=2C many
> things PHP=2C and some things SMTP.
>=20
> Kevin Kinsey
=20
____________________________________________________________ _____
The New Busy is not the old busy. Search=2C chat and e-mail from your inbox=
..
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_3=
--_f39a3db7-bbb4-4748-864f-aaaf5027e93b_--
Re: Mail Function Problem
am 13.04.2010 01:03:31 von Karl DeSaulniers
Hi Alice,
I have a sendmail script I wrote on my way to learning PHP.
Uses PHP 4 i believe, maybe 5. Wrote it a while ago.
You and anyone else are welcome to use it/modify.
You can reference this php it from multiple forms.
Just specify the form names it should accept and their parameters.
It can also send HTML results with a little modification.
It isn't necessarily set up for mass emailing, but with a little
tweaking, I am sure you could get it to work.
You can separate the emails with comas "," currently and it will send
to all of them, but if they are in the TO:,
everyone will see everyones email address.
Might set it up to send to your email in the TO: and use the BCC: to
send to your users.
If you do convert it, mind sharing back?? :))
HTH,
http://designdrumm.com/sendmail_gen.php.zip
Karl
On Apr 12, 2010, at 5:31 PM, Alice Wei wrote:
Hi,
Thanks to everyone's suggestions, I have followed some instructions
from http://www.geeksengine.com/article/install-pear-on-windows.h tml
and attempted to install PEAR. The problem is, when I do a test page,
which only has:
error_reporting(-1);
require_once "PEAR.php"; ?>. utor
It only gives me a blank page, with no errors. Has anyone who
succeeded with using PEAR on PHP can guide me on a good tutorial to
read?
Thanks for your help.
Alice
> Date: Mon, 12 Apr 2010 15:54:05 -0500
> From: kdk@daleco.biz
> To: kranthi117@gmail.com
> CC: ajwei@alumni.iu.edu; php-general@lists.php.net
> Subject: Re: [PHP] Mail Function Problem
>
> kranthi wrote:
>> PEAR's mail package does support authentication.
>> http://email.about.com/od/emailprogrammingtips/qt/
>> PHP_Email_SMTP_Authentication.htm
>>
>
> I will say "mea culpa" on this one; apparently I didn't
> dig deep enough into the PEAR docs to figure this out.
> It's certainly not mentioned on the manpage at php.net,
> but, of course, the PEAR stuff is elsewhere. I read over
> the first page linked from the PHP manpage, so it must
> nks ve been a lil' deeper than that. If it's only available
> at about.com (lol), I'd suggest filing a PR with the PEAR
> folk's documentation team, eh?
>
> But, this time I'll do what I shoulda mentioned before and
> include the "IANAE" disclaimer on all things PEAR, many
> things PHP, and some things SMTP.
>
> Kevin Kinsey
____________________________________________________________ _____
The New Busy is not the old busy. Search, chat and e-mail from your
inbox.
http://www.windowslive.com/campaign/thenewbusy?
ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Problem
am 13.04.2010 01:46:39 von Alice Wei
--_bfd093b0-c520-44c5-bd5f-409610e25551_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> Date: Mon=2C 12 Apr 2010 15:54:05 -0500
> From: kdk@daleco.biz
> To: kranthi117@gmail.com
> CC: ajwei@alumni.iu.edu=3B php-general@lists.php.net
> Subject: Re: [PHP] Mail Function Problem
>=20
> kranthi wrote:
> > PEAR's mail package does support authentication.
> > http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Authen=
tication.htm
> >=20
>=20
> I will say "mea culpa" on this one=3B apparently I didn't
> dig deep enough into the PEAR docs to figure this out.
> It's certainly not mentioned on the manpage at php.net=2C
> but=2C of course=2C the PEAR stuff is elsewhere. I read over
> the first page linked from the PHP manpage=2C so it must
> have been a lil' deeper than that. If it's only available
> at about.com (lol)=2C I'd suggest filing a PR with the PEAR
> folk's documentation team=2C eh?
>=20
> But=2C this time I'll do what I shoulda mentioned before and
> include the "IANAE" disclaimer on all things PEAR=2C many
> things PHP=2C and some things SMTP.
>=20
> Kevin Kinsey
I tried installing the Pear Mail package=2C it is now located in php/PEAR/M=
ail=2C and my code is located in the htdocs. Here is the code:
require_once("Mail.php")=3B
$mail =3D Mail::factory("mail")=3B
$your_name =3D $_POST['your_name']=3B
$email =3D $_POST['email']=3B
$question =3D $_POST['question']=3B
$comments=3D $_POST['comments']=3B
$submit =3D $_POST['submit']=3B
if($_POST['submit']=="Submit") {
$from =3D "elite.english@att.net"=3B
$to =3D $email=3B
$subject =3D "Comments Regarding HH Web Design Studio"=3B
$body =3D "From: $your_name\n E-Mail: $email\n Reason Contact: $question\n =
Comments:\n $comments"=3B
$host =3D "smtp.att.yahoo.com"=3B
$username =3D "my_user_name"=3B
$password =3D "password"=3B
$headers =3D array ('From' =3D> $from=2C
'To' =3D> $to=2C
'Subject' =3D> $subject)=3B
$mail->send($to=2C $headers=2C $body)=3B
if (PEAR::isError($mail)) echo "
" . $mail->getMessage() . "
"=3B
This is what I get:=20
Fatal error: Class 'Mail' not found in C:\xampp\htdocs\Alice.Wei\web\mail.=
php
on line 30
Do I need to move the Mail PEAR class to the same folder as my web folder? =
How can I make sure that my Pear is running?
Thanks for your help.
Alice
=20
____________________________________________________________ _____
The New Busy is not the too busy. Combine all your e-mail accounts with Hot=
mail.
http://www.windowslive.com/campaign/thenewbusy?tile=3Dmultia ccount&ocid=3DP=
ID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4=
--_bfd093b0-c520-44c5-bd5f-409610e25551_--
Re: Mail Function Problem
am 13.04.2010 04:11:19 von kranthi
thats weired...
Mail.php contains the class Mail. So getting a "class not found" error
is not possible... (require_once stops the script in case it can't
find Mail.php)
>> Do I need to move the Mail PEAR class to the same folder as my web folder
ensure that C:/xampp/php/PEAR folder is added to your include list
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Problem
am 13.04.2010 05:24:05 von Alice Wei
--_bb9c77f9-93b5-492d-9663-648abc4aae3d_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> From: kranthi117@gmail.com
> Date: Tue=2C 13 Apr 2010 07:41:19 +0530
> Subject: Re: [PHP] Mail Function Problem
> To: ajwei@alumni.iu.edu
> CC: kdk@daleco.biz=3B php-general@lists.php.net
>=20
> thats weired...
> Mail.php contains the class Mail. So getting a "class not found" error
> is not possible... (require_once stops the script in case it can't
> find Mail.php)
> >> Do I need to move the Mail PEAR class to the same folder as my web fol=
der
> ensure that C:/xampp/php/PEAR folder is added to your include list
I thought so too=2C this is what I have in my php.ini:
=3B PHP's default setting for include_path is ".=3B/path/to/php/pear"
=3B http://php.net/include-path
include_path =3D ".=3BC:\xampp\php\PEAR"
This is the contents of my C:\xampp\php\PEAR\Mail:
mail.php
mime.php
mimeDecode.php
mimePart.php
null.php
RFC822.php
sendmail.php
smtp.php
Unless=2C I have to do require_once("mail.php")?
I am getting confused.=20
Alice
=20
____________________________________________________________ _____
Hotmail is redefining busy with tools for the New Busy. Get more from your =
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_2=
--_bb9c77f9-93b5-492d-9663-648abc4aae3d_--
Re: Mail Function Problem
am 13.04.2010 05:31:18 von Karl DeSaulniers
Hey Alice,
Try throwing the MIME in. Sometimes messages get thrown in an abyss
if they don't know the MIME version or content type of an email.
They think its spam and so you wouldn't get an error message on your
end. Just no email.
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
Karl
On Apr 12, 2010, at 10:24 PM, Alice Wei wrote:
> From: kranthi117@gmail.com
> Date: Tue, 13 Apr 2010 07:41:19 +0530
> Subject: Re: [PHP] Mail Function Problem
> To: ajwei@alumni.iu.edu
> CC: kdk@daleco.biz; php-general@lists.php.net
>
> thats weired...
> Mail.php contains the class Mail. So getting a "class not found" error
> is not possible... (require_once stops the script in case it can't
> find Mail.php)
>>> Do I need to move the Mail PEAR class to the same folder as my
>>> web folder
> ensure that C:/xampp/php/PEAR folder is added to your include list
I thought so too, this is what I have in my php.ini:
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
include_path = ".;C:\xampp\php\PEAR"
This is the contents of my C:\xampp\php\PEAR\Mail:
mail.php
mime.php
mimeDecode.php
mimePart.php
null.php
RFC822.php
sendmail.php
smtp.php
Unless, I have to do require_once("mail.php")?
I am getting confused.
Alice
____________________________________________________________ _____
Hotmail is redefining busy with tools for the New Busy. Get more from
your inbox.
http://www.windowslive.com/campaign/thenewbusy?
ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Problem
am 13.04.2010 05:55:17 von kranthi
when you install pear package Mail a file called Mail.php will be
installed into C:/xampp/php/PEAR
>> Mail.php contains the class Mail. So getting a "class not found" error is not possible..
are you sure you are doing require_once 'Mail.php' ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Problem
am 13.04.2010 14:19:15 von Ashley Sheridan
--=-LoN9PR36H74vIq5GYIWf
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Mon, 2010-04-12 at 12:25 -0400, Alice Wei wrote:
>
>
>
>
>
> > Date: Mon, 12 Apr 2010 11:09:42 -0500
> > From: kdk@daleco.biz
> > To: ajwei@alumni.iu.edu
> > CC: a.bovanenko@gmail.com; php-general@lists.php.net
> > Subject: Re: [PHP] Mail Function Problem
> >
> > Alice Wei wrote:
> > >> Hi!
> > >> You have the following php.ini params:SMTP = smtp.live.com
> > >>
> > >> smtp_port = 587
> > >> live.com not support relay and it requires authentication.
> > >
> > > Is there an email account that I could try? I thought
> > > most email accounts requires authentication anyway.
> >
> > Well, "therein lies the rub," as the Bard said (maybe).
> > PHP's mail() was built on a general assumption that
> > there would be a local SMTP server. It supports remote
> > SMTP, but I'm not aware of any ability to do SMTP auth,
> > even in the PEAR packages.
> >
> > You might just wanna read up on mail in general. The
> > php.net/mail page lists several relevant RFC's, and
> > has links to most of the PEAR mail classes, etc.
> >
> > You should definitely read up on live.com's email
> > configuration. If they use SMTP auth, I'm not sure
> > you can do this (per above). If it uses, say, "POP
> > before SMTP" for authorization, you might be able to
> > hack something together with the PHP IMAP functions, or
> > even sockets, but you're getting into a big lotta work
> > for what seems a small thing.
> >
>
> This is what I am talking about.
> Two years ago when I first set up my own server with Linux and not Windows, I never had to deal with this.
> Perhaps the authentication has since then got stricter, but it should not be so much of a heck of a deal.
>
> I found this doc from ATT's website, http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, so obviously the smtp server I provided earlier is probably not up to date.
>
> I think I will fiddle around with the php.ini file and see what else is there.
> Thanks.
>
> Alice
>
> ____________________________________________________________ _____
> Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326 ::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
Linux installations come with sendmail which allows you to send email
directly. Windows doesn't have this as part of the base setup, but I
believe if you can install a local mail server then this should fix the
issue.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-LoN9PR36H74vIq5GYIWf--
RE: Mail Function Problem
am 13.04.2010 14:57:08 von Ashley Sheridan
--=-19uKhxqKoZZrA5ZX1tuE
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Tue, 2010-04-13 at 08:59 -0400, Alice Wei wrote:
>
> Subject: RE: [PHP] Mail Function Problem
> From: ash@ashleysheridan.co.uk
> To: ajwei@alumni.iu.edu
> CC: kdk@daleco.biz; a.bovanenko@gmail.com; php-general@lists.php.net
> Date: Tue, 13 Apr 2010 13:19:15 +0100
>
>
>
>
>
>
>
>
>
>
> On Mon, 2010-04-12 at 12:25 -0400, Alice Wei wrote:
>
>
>
>
>
>
> > Date: Mon, 12 Apr 2010 11:09:42 -0500
> > From: kdk@daleco.biz
> > To: ajwei@alumni.iu.edu
> > CC: a.bovanenko@gmail.com; php-general@lists.php.net
> > Subject: Re: [PHP] Mail Function Problem
> >
> > Alice Wei wrote:
> > >> Hi!
> > >> You have the following php.ini params:SMTP = smtp.live.com
> > >>
> > >> smtp_port = 587
> > >> live.com not support relay and it requires authentication.
> > >
> > > Is there an email account that I could try? I thought
> > > most email accounts requires authentication anyway.
> >
> > Well, "therein lies the rub," as the Bard said (maybe).
> > PHP's mail() was built on a general assumption that
> > there would be a local SMTP server. It supports remote
> > SMTP, but I'm not aware of any ability to do SMTP auth,
> > even in the PEAR packages.
> >
> > You might just wanna read up on mail in general. The
> > php.net/mail page lists several relevant RFC's, and
> > has links to most of the PEAR mail classes, etc.
> >
> > You should definitely read up on live.com's email
> > configuration. If they use SMTP auth, I'm not sure
> > you can do this (per above). If it uses, say, "POP
> > before SMTP" for authorization, you might be able to
> > hack something together with the PHP IMAP functions, or
> > even sockets, but you're getting into a big lotta work
> > for what seems a small thing.
> >
>
> This is what I am talking about.
> Two years ago when I first set up my own server with Linux and not Windows, I never had to deal with this.
> Perhaps the authentication has since then got stricter, but it should not be so much of a heck of a deal.
>
> I found this doc from ATT's website, http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, so obviously the smtp server I provided earlier is probably not up to date.
>
> I think I will fiddle around with the php.ini file and see what else is there.
> Thanks.
>
> Alice
>
> ____________________________________________________________ _____
> Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326 ::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
>
>
>
>
> Linux installations come with sendmail which allows you to send email directly. Windows doesn't have this as part of the base setup, but I believe if you can install a local mail server then this should fix the issue.
>
> Something like http://www.hmailserver.com/? I use AT&T, why is it that I use their SMTP server and my From address in PHP.ini file didn't work?
>
> Thanks.
>
> Alice
>
>
>
>
>
>
> Thanks,sh
>
> http://www.ashleysheridan.co.uk
>
>
>
>
>
>
>
>
> ____________________________________________________________ _____
> Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326 ::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1
That looks to do what you need. I don't really know of any specific
other examples as it's been a while since I've used Windows for anything
now. The link you gave did say it was free though, so you don't really
have anything to lose by installing it.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-19uKhxqKoZZrA5ZX1tuE--
RE: Mail Function Problem
am 13.04.2010 14:59:17 von Alice Wei
--_a39c827a-a7ae-4403-9d41-140aa5aef213_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [PHP] Mail Function Problem
From: ash@ashleysheridan.co.uk
To: ajwei@alumni.iu.edu
CC: kdk@daleco.biz=3B a.bovanenko@gmail.com=3B php-general@lists.php.net
Date: Tue=2C 13 Apr 2010 13:19:15 +0100
=20
=20
On Mon=2C 2010-04-12 at 12:25 -0400=2C Alice Wei wrote:
> Date: Mon=2C 12 Apr 2010 11:09:42 -0500
> From: kdk@daleco.biz
> To: ajwei@alumni.iu.edu
> CC: a.bovanenko@gmail.com=3B php-general@lists.php.net
> Subject: Re: [PHP] Mail Function Problem
>=20
> Alice Wei wrote:
> >> Hi!
> >> You have the following php.ini params:SMTP =3D smtp.live.com
> >>=20
> >> smtp_port =3D 587
> >> live.com not support relay and it requires authentication.
> >=20
> > Is there an email account that I could try? I thought=20
> > most email accounts requires authentication anyway.
>=20
> Well=2C "therein lies the rub=2C" as the Bard said (maybe).
> PHP's mail() was built on a general assumption that
> there would be a local SMTP server. It supports remote
> SMTP=2C but I'm not aware of any ability to do SMTP auth=2C
> even in the PEAR packages.
>=20
> You might just wanna read up on mail in general. The
> php.net/mail page lists several relevant RFC's=2C and
> has links to most of the PEAR mail classes=2C etc.
>=20
> You should definitely read up on live.com's email
> configuration. If they use SMTP auth=2C I'm not sure
> you can do this (per above). If it uses=2C say=2C "POP
> before SMTP" for authorization=2C you might be able to
> hack something together with the PHP IMAP functions=2C or
> even sockets=2C but you're getting into a big lotta work
> for what seems a small thing.
>=20
This is what I am talking about.=20
Two years ago when I first set up my own server with Linux and not Windows=
=2C I never had to deal with this.=20
Perhaps the authentication has since then got stricter=2C but it should not=
be so much of a heck of a deal.=20
I found this doc from ATT's website=2C http://helpme.att.net/pdf/uverse/uve=
rse_hsi_qsg_english.pdf=2C so obviously the smtp server I provided earlier =
is probably not up to date.=20
I think I will fiddle around with the php.ini file and see what else is the=
re.=20
Thanks.
Alice
=20
____________________________________________________________ _____
Hotmail has tools for the New Busy. Search=2C chat and e-mail from your inb=
ox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_1
Linux installations come with sendmail which allows you to send email direc=
tly. Windows doesn't have this as part of the base setup=2C but I believe i=
f you can install a local mail server then this should fix the issue.
Something like http://www.hmailserver.com/? I use AT&T=2C why is it that I =
use their SMTP server and my From address in PHP.ini file didn't work?
Thanks.=20
Alice
Thanks=2Csh
http://www.ashleysheridan.co.uk
=20
____________________________________________________________ _____
Hotmail has tools for the New Busy. Search=2C chat and e-mail from your inb=
ox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_1=
--_a39c827a-a7ae-4403-9d41-140aa5aef213_--
Mail Function Using PEAR Issues
am 18.04.2010 17:11:18 von Alice Wei
--_9ea82a9f-785b-412c-9327-f242d481055b_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi=2C
After several days=2C I have rebuilt my system on Linux using Ubuntu=2C i=
nstalled PEAR and such. Thankfully=2C when I execute the code=2C it no long=
er gives me the error that the class is not found. Yet=2C when I submit the=
form now=2C I can always see the confirmation message telling me that my m=
essage has been sent=2C but I cannot see it even in another mailbox.=20
Here is the code:
require_once("Mail.php")=3B
$mail =3D Mail::factory("mail")=3B
$your_name =3D $_POST['your_name']=3B
$email =3D $_POST['email']=3B
$question =3D $_POST['question']=3B
$comments=3D $_POST['comments']=3B
$submit =3D $_POST['submit']=3B
$from =3D "localhost"=3B
$to =3D $email=3B
$subject =3D "Comments"=3B
$body =3D "From: $your_name\n E-Mail: $email\n Reason Contact: $question\n =
Comments:\n $comments"=3B
$host =3D "localhost"=3B
$headers =3D array ('From' =3D> $from=2C'To' =3D> $to=2C'Subject' =3D> $sub=
ject)=3B
$mail ->send($to=2C $headers=2C $body)=3B
if (PEAR::isError($mail)) echo "
" . $mail->getMessage() . "
"=3B
else {
echo "Message successfully sent!
=20
Thank You For Contacting Us
We will contact you within the next 24 business hours.
Here is what you have input:
- Your Name is " . $your_name . "
- Your Email is " . $email . "
- You contacted us because you have a " . $question . "=
- Here are your comments: " . $comments . "
Have a Nice Day!
"=3B
}=20
}
Can anyone on the list please give me some pointers on what might have been=
wrong here? I have not edited anything in the php.ini file regarding SMTP.=
=20
Thanks.
=20
Alice
=20
____________________________________________________________ _____
The New Busy is not the old busy. Search=2C chat and e-mail from your inbox=
..
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_3=
--_9ea82a9f-785b-412c-9327-f242d481055b_--
Re: Mail Function Using PEAR Issues
am 18.04.2010 22:33:28 von Karl DeSaulniers
Hey Alice,
Again, try throwing the MIME in.
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
Karl
On Apr 18, 2010, at 10:11 AM, Alice Wei wrote:
>
> Hi,
>
> After several days, I have rebuilt my system on Linux using
> Ubuntu, installed PEAR and such. Thankfully, when I execute the
> code, it no longer gives me the error that the class is not found.
> Yet, when I submit the form now, I can always see the confirmation
> message telling me that my message has been sent, but I cannot see
> it even in another mailbox.
>
> Here is the code:
>
> require_once("Mail.php");
> $mail = Mail::factory("mail");
>
> $your_name = $_POST['your_name'];
> $email = $_POST['email'];
> $question = $_POST['question'];
> $comments= $_POST['comments'];
> $submit = $_POST['submit'];
>
> $from = "localhost";
> $to = $email;
> $subject = "Comments";
> $body = "From: $your_name\n E-Mail: $email\n Reason Contact:
> $question\n Comments:\n $comments";
>
> $host = "localhost";
> $headers = array ('From' => $from,'To' => $to,'Subject' => $subject);
> $mail ->send($to, $headers, $body);
> if (PEAR::isError($mail)) echo "
" . $mail->getMessage() . "
";
> else {
> echo "Message successfully sent!
>
Thank You For Contacting Us
>
We will contact you within the next 24 business hours
> b>.
>
Here is what you have input:
>
- Your Name is " . $your_name . "
> - Your Email is " . $email . "
> - You contacted us because you have a " .
> $question . "
> - Here are your comments: " . $comments . "
> li>
>
Have a Nice Day!
";
> }
> }
>
> Can anyone on the list please give me some pointers on what might
> have been wrong here? I have not edited anything in the php.ini
> file regarding SMTP.
>
> Thanks.
>
> Alice
>
>
>
>
> ____________________________________________________________ _____
> The New Busy is not the old busy. Search, chat and e-mail from your
> inbox.
> http://www.windowslive.com/campaign/thenewbusy?
> ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Using PEAR Issues
am 19.04.2010 04:02:29 von Kevin Kinsey
Karl DeSaulniers wrote:
> Hey Alice,
> Again, try throwing the MIME in.
>
> $headers = 'MIME-Version: 1.0' . "\r\n";
> $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
Also:
$headers .= 'Errors-to: ' . "\r\n";
Which I suggested on your previous thread. Also, I see you have
$from set to equal "localhost". Many SMTP servers will reject this
I *think*, because "localhost" is a hostname, not a working mailbox.
Try making $from equal to a real working address - possibly the same
one as your "Errors-to:" header..
My $0.02,
KDK
>
> On Apr 18, 2010, at 10:11 AM, Alice Wei wrote:
>
>>
>> Hi,
>>
>> After several days, I have rebuilt my system on Linux using Ubuntu,
>> installed PEAR and such. Thankfully, when I execute the code, it no
>> longer gives me the error that the class is not found. Yet, when I
>> submit the form now, I can always see the confirmation message telling
>> me that my message has been sent, but I cannot see it even in another
>> mailbox.
>>
>> Here is the code:
>>
>> require_once("Mail.php");
>> $mail = Mail::factory("mail");
>>
>> $your_name = $_POST['your_name'];
>> $email = $_POST['email'];
>> $question = $_POST['question'];
>> $comments= $_POST['comments'];
>> $submit = $_POST['submit'];
>>
>> $from = "localhost";
>> $to = $email;
>> $subject = "Comments";
>> $body = "From: $your_name\n E-Mail: $email\n Reason Contact:
>> $question\n Comments:\n $comments";
>>
>> $host = "localhost";
>> $headers = array ('From' => $from,'To' => $to,'Subject' => $subject);
>> $mail ->send($to, $headers, $body);
>> if (PEAR::isError($mail)) echo "" . $mail->getMessage() . "
";
>> else {
>> echo "Message successfully sent!
>>
Thank You For Contacting Us
>>
We will contact you within the next 24 business
>> hours.
>>
Here is what you have input:
>>
- Your Name is " . $your_name . "
>> - Your Email is " . $email . "
>> - You contacted us because you have a " . $question .
>> "
>> - Here are your comments: " . $comments . "
>>
Have a Nice Day!
";
>> }
>> }
>>
>> Can anyone on the list please give me some pointers on what might have
>> been wrong here? I have not edited anything in the php.ini file
>> regarding SMTP.
>>
>> Thanks.
>>
>> Alice
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 19.04.2010 04:27:45 von Alice Wei
--_e2efc7a4-bc75-4516-b0c4-00350f23424d_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> Date: Sun=2C 18 Apr 2010 21:02:29 -0500
> From: kdk@daleco.biz
> To: ajwei@alumni.iu.edu
> CC: karl@designdrumm.com=3B php-general@lists.php.net
> Subject: Re: [PHP] Mail Function Using PEAR Issues
>=20
> Karl DeSaulniers wrote:
> > Hey Alice=2C
> > Again=2C try throwing the MIME in.
> >=20
> > $headers =3D 'MIME-Version: 1.0' . "\r\n"=3B
> > $headers .=3D 'Content-type: text/html=3B charset=3Dutf-8' . "\r\n"=3B
>=20
> Also:
>=20
> $headers .=3D 'Errors-to: ' . "\r\n"=3B
>=20
> Which I suggested on your previous thread. Also=2C I see you have
> $from set to equal "localhost". Many SMTP servers will reject this
> I *think*=2C because "localhost" is a hostname=2C not a working mailbox.
> Try making $from equal to a real working address - possibly the same
> one as your "Errors-to:" header..
>=20
> My $0.02=2C
>=20
> KDK
>=20
> >=20
> > On Apr 18=2C 2010=2C at 10:11 AM=2C Alice Wei wrote:
> >=20
> >>
> >> Hi=2C
> >>
> >> After several days=2C I have rebuilt my system on Linux using Ubuntu=
,
> >> installed PEAR and such. Thankfully=2C when I execute the code=2C it n=
o=20
> >> longer gives me the error that the class is not found. Yet=2C when I=20
> >> submit the form now=2C I can always see the confirmation message telli=
ng=20
> >> me that my message has been sent=2C but I cannot see it even in anothe=
r=20
> >> mailbox.
> >>
> >> Here is the code:
> >>
> >> require_once("Mail.php")=3B
> >> $mail =3D Mail::factory("mail")=3B
> >>
> >> $your_name =3D $_POST['your_name']=3B
> >> $email =3D $_POST['email']=3B
> >> $question =3D $_POST['question']=3B
> >> $comments=3D $_POST['comments']=3B
> >> $submit =3D $_POST['submit']=3B
> >>
> >> $from =3D "localhost"=3B
> >> $to =3D $email=3B
> >> $subject =3D "Comments"=3B
> >> $body =3D "From: $your_name\n E-Mail: $email\n Reason Contact:=20
> >> $question\n Comments:\n $comments"=3B
> >>
> >> $host =3D "localhost"=3B
> >> $headers =3D array ('From' =3D> $from=2C'To' =3D> $to=2C'Subject' =3D>=
$subject)=3B
> >> $mail ->send($to=2C $headers=2C $body)=3B
> >> if (PEAR::isError($mail)) echo "" . $mail->getMessage() . "
"=3B
> >> else {
> >> echo "Message successfully sent!
> >>
Thank You For Contacting Us
> >>
We will contact you within the next 24 business=20
> >> hours.
> >>
Here is what you have input:
> >>
- Your Name is " . $your_name . "
> >> - Your Email is " . $email . "
> >> - You contacted us because you have a " . $question .=
=20
> >> "
> >> - Here are your comments: " . $comments . "
=
ul>
> >> Have a Nice Day!
"=3B
> >> }
> >> }
> >>
> >> Can anyone on the list please give me some pointers on what might have=
=20
> >> been wrong here? I have not edited anything in the php.ini file=20
> >> regarding SMTP.
> >>
> >> Thanks.
> >>
> >> Alice
>=20
Hi,
Here is the revised version=2C and I don't think I have experienced any cha=
nges in terms of the output on the screen. Plus=2C I still get no email.=20
require_once("Mail.php")=3B
$mail =3D Mail::factory("mail")=3B
$your_name =3D $_POST['your_name']=3B
$email =3D $_POST['email']=3B
$question =3D $_POST['question']=3B
$comments=3D $_POST['comments']=3B
$submit =3D $_POST['submit']=3B
$from =3D "ajwei@alumni.iu.edu"=3B
$to =3D "elite.english@gmail.com"=3B
$subject =3D "Comments"=3B
$body =3D "From: $your_name\n E-Mail: $email\n Reason Contact: $question\n
Comments:\n $comments"=3B
$headers =3D 'MIME-Version: 1.0' . "\r\n"=3B
$headers .=3D 'Content-type: text/html=3B charset=3Dutf-8' . "\r\n"=3B
$headers .=3D 'Errors-to: ' . "\r\n"=3B
$mail ->send($to=2C $headers=2C $body)=3B
if (PEAR::isError($mail)) echo "" . $mail->getMessage() .=20
"
"=3B
else {
echo "Message successfully sent!
id=3D'main'>=20
Thank You For Contacting Us
Here is what you have input:
- Your Name is " . $your_name . =20
"
- Your Email is " . $email .=20
"
- You contacted us because you have a " .=20
$question . "
- Here are your comments: " . $comments .=20
"
Have a Nice Day!
"=3B
}=20
I have made sure that my $from and $to addresses are different=2C Could the=
re be anything else wrong here? I have not edited anything in php.ini regar=
ding this issue. Would I need to?
Thanks for your help.
Alice
=20
____________________________________________________________ _____
The New Busy is not the too busy. Combine all your e-mail accounts with Hot=
mail.
http://www.windowslive.com/campaign/thenewbusy?tile=3Dmultia ccount&ocid=3DP=
ID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4=
--_e2efc7a4-bc75-4516-b0c4-00350f23424d_--
Re: Mail Function Using PEAR Issues
am 19.04.2010 04:33:26 von Karl DeSaulniers
Is there any need for this line if you are using the Errors-to: ?
Maybe take it out and see what Errors-to gives you without it.
On Apr 18, 2010, at 9:27 PM, Alice Wei wrote:
>
> if (PEAR::isError($mail)) echo "
" . $mail->getMessage() .
>
OAN - That sendmail script I posted, I know works on Linux servers if
you want to compare notes with it.
Best,
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Using PEAR Issues
am 19.04.2010 04:39:19 von Kevin Kinsey
Alice Wei wrote:
>
>> Date: Sun, 18 Apr 2010 21:02:29 -0500
>> From: kdk@daleco.biz
>> To: ajwei@alumni.iu.edu
>> CC: karl@designdrumm.com; php-general@lists.php.net
>> Subject: Re: [PHP] Mail Function Using PEAR Issues
>>
>> Karl DeSaulniers wrote:
>>> Hey Alice,
>>> Again, try throwing the MIME in.
>>>
>>> $headers = 'MIME-Version: 1.0' . "\r\n";
>>> $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
>> Also:
>>
>> $headers .= 'Errors-to: ' . "\r\n";
>>
>> Which I suggested on your previous thread. Also, I see you have
>> $from set to equal "localhost". Many SMTP servers will reject this
>> I *think*, because "localhost" is a hostname, not a working mailbox.
>> Try making $from equal to a real working address - possibly the same
>> one as your "Errors-to:" header..
>>
>> My $0.02,
>>
>> KDK
>>
>>> On Apr 18, 2010, at 10:11 AM, Alice Wei wrote:
>>>
>>>> Hi,
>>>>
>>>> After several days, I have rebuilt my system on Linux using Ubuntu,
>>>> installed PEAR and such. Thankfully, when I execute the code, it no
>>>> longer gives me the error that the class is not found. Yet, when I
>>>> submit the form now, I can always see the confirmation message telling
>>>> me that my message has been sent, but I cannot see it even in another
>>>> mailbox.
>>>>
>>>> Here is the code:
>>>>
>>>> require_once("Mail.php");
>>>> $mail = Mail::factory("mail");
>>>>
>>>> $your_name = $_POST['your_name'];
>>>> $email = $_POST['email'];
>>>> $question = $_POST['question'];
>>>> $comments= $_POST['comments'];
>>>> $submit = $_POST['submit'];
>>>>
>>>> $from = "localhost";
>>>> $to = $email;
>>>> $subject = "Comments";
>>>> $body = "From: $your_name\n E-Mail: $email\n Reason Contact:
>>>> $question\n Comments:\n $comments";
>>>>
>>>> $host = "localhost";
>>>> $headers = array ('From' => $from,'To' => $to,'Subject' => $subject);
>>>> $mail ->send($to, $headers, $body);
>>>> if (PEAR::isError($mail)) echo "" . $mail->getMessage() . "
";
>>>> else {
>>>> echo "Message successfully sent!
>>>>
Thank You For Contacting Us
>>>>
We will contact you within the next 24 business
>>>> hours.
>>>>
Here is what you have input:
>>>>
- Your Name is " . $your_name . "
>>>> - Your Email is " . $email . "
>>>> - You contacted us because you have a " . $question .
>>>> "
>>>> - Here are your comments: " . $comments . "
>>>>
Have a Nice Day!
";
>>>> }
>>>> }
>>>>
>>>> Can anyone on the list please give me some pointers on what might have
>>>> been wrong here? I have not edited anything in the php.ini file
>>>> regarding SMTP.
>>>>
>>>> Thanks.
>>>>
>>>> Alice
>
> Hi,
>
> Here is the revised version, and I don't think I have experienced any
> changes in terms of the output on the screen. Plus, I still get no email.
>
>
>
> require_once("Mail.php");
> $mail = Mail::factory("mail");
> $your_name = $_POST['your_name'];
> $email = $_POST['email'];
> $question = $_POST['question'];
> $comments= $_POST['comments'];
> $submit = $_POST['submit'];
> $from = "ajwei@alumni.iu.edu";
> $to = "elite.english@gmail.com";
> $subject = "Comments";
>
> $body = "From: $your_name\n E-Mail: $email\n Reason Contact: $question\n
> Comments:\n $comments";
>
> $headers = 'MIME-Version: 1.0' . "\r\n";
>
> $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n";
>
> $headers .= 'Errors-to: ' . "\r\n";
>
> $mail ->send($to, $headers, $body);
>
> if (PEAR::isError($mail)) echo "" . $mail->getMessage() .
> "
";
>
> else {
>
> echo "Message successfully sent!
> id='main'>
>
> Thank You For Contacting Us
>
> Here is what you have input:
>
> - Your Name is " . $your_name .
> "
>
> - Your Email is " . $email .
> "
>
> - You contacted us because you have a " .
> $question . "
>
> - Here are your comments: " . $comments .
> "
>
> Have a Nice Day!
";
>
> }
>
> I have made sure that my $from and $to addresses are different,
> Could there be anything else wrong here? I have not edited
> anything in php.ini regarding this issue. Would I need to?
Well, it's a Good Thing(tm) to know what those settings are.
Have they changed since your last thread?
KDK
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Using PEAR Issues
am 19.04.2010 10:15:08 von Peter Lind
Most, if not all, mail servers keep log files. You should look for the
log files to see if the mail server has sent your mail properly or is
experiencing problems (those may not feed back into PHP).
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 19.04.2010 14:25:09 von Alice Wei
--_67b9c731-01ea-433e-94da-6d0e1c9848ec_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> Date: Sun=2C 18 Apr 2010 21:39:19 -0500
> From: kdk@daleco.biz
> To: ajwei@alumni.iu.edu
> CC: karl@designdrumm.com=3B php-general@lists.php.net
> Subject: Re: [PHP] Mail Function Using PEAR Issues
>=20
> Alice Wei wrote:
> >=20
> >> Date: Sun=2C 18 Apr 2010 21:02:29 -0500
> >> From: kdk@daleco.biz
> >> To: ajwei@alumni.iu.edu
> >> CC: karl@designdrumm.com=3B php-general@lists.php.net
> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
> >>
> >> Karl DeSaulniers wrote:
> >>> Hey Alice=2C
> >>> Again=2C try throwing the MIME in.
> >>>
> >>> $headers =3D 'MIME-Version: 1.0' . "\r\n"=3B
> >>> $headers .=3D 'Content-type: text/html=3B charset=3Dutf-8' . "\r\n"=
=3B
> >> Also:
> >>
> >> $headers .=3D 'Errors-to: ' . "\r\n"=3B
> >>
> >> Which I suggested on your previous thread. Also=2C I see you have
> >> $from set to equal "localhost". Many SMTP servers will reject this
> >> I *think*=2C because "localhost" is a hostname=2C not a working mailbo=
x.
> >> Try making $from equal to a real working address - possibly the same
> >> one as your "Errors-to:" header..
> >>
> >> My $0.02=2C
> >>
> >> KDK
> >>
> >>> On Apr 18=2C 2010=2C at 10:11 AM=2C Alice Wei wrote:
> >>>
> >>>> Hi=2C
> >>>>
> >>>> After several days=2C I have rebuilt my system on Linux using Ubun=
tu,
> >>>> installed PEAR and such. Thankfully=2C when I execute the code=2C it=
no=20
> >>>> longer gives me the error that the class is not found. Yet=2C when I=
=20
> >>>> submit the form now=2C I can always see the confirmation message tel=
ling=20
> >>>> me that my message has been sent=2C but I cannot see it even in anot=
her=20
> >>>> mailbox.
> >>>>
> >>>> Here is the code:
> >>>>
> >>>> require_once("Mail.php")=3B
> >>>> $mail =3D Mail::factory("mail")=3B
> >>>>
> >>>> $your_name =3D $_POST['your_name']=3B
> >>>> $email =3D $_POST['email']=3B
> >>>> $question =3D $_POST['question']=3B
> >>>> $comments=3D $_POST['comments']=3B
> >>>> $submit =3D $_POST['submit']=3B
> >>>>
> >>>> $from =3D "localhost"=3B
> >>>> $to =3D $email=3B
> >>>> $subject =3D "Comments"=3B
> >>>> $body =3D "From: $your_name\n E-Mail: $email\n Reason Contact:=20
> >>>> $question\n Comments:\n $comments"=3B
> >>>>
> >>>> $host =3D "localhost"=3B
> >>>> $headers =3D array ('From' =3D> $from=2C'To' =3D> $to=2C'Subject' =
=3D> $subject)=3B
> >>>> $mail ->send($to=2C $headers=2C $body)=3B
> >>>> if (PEAR::isError($mail)) echo "" . $mail->getMessage() . "
"=
=3B
> >>>> else {
> >>>> echo "Message successfully sent!
> >>>>
Thank You For Contacting Us
> >>>>
We will contact you within the next 24 business=20
> >>>> hours.
> >>>>
Here is what you have input:
> >>>>
- Your Name is " . $your_name . "
> >>>> - Your Email is " . $email . "
> >>>> - You contacted us because you have a " . $question =
..=20
> >>>> "
> >>>> - Here are your comments: " . $comments . "
=
> >>>>
Have a Nice Day!
"=3B
> >>>> }
> >>>> }
> >>>>
> >>>> Can anyone on the list please give me some pointers on what might ha=
ve=20
> >>>> been wrong here? I have not edited anything in the php.ini file=20
> >>>> regarding SMTP.
> >>>>
> >>>> Thanks.
> >>>>
> >>>> Alice
> >=20
> > Hi,
> >=20
> > Here is the revised version=2C and I don't think I have experienced any=
=20
> > changes in terms of the output on the screen. Plus=2C I still get no e=
mail.
> >=20
> >
> >=20
> > require_once("Mail.php")=3B
> > $mail =3D Mail::factory("mail")=3B
> > $your_name =3D $_POST['your_name']=3B
> > $email =3D $_POST['email']=3B
> > $question =3D $_POST['question']=3B
> > $comments=3D $_POST['comments']=3B
> > $submit =3D $_POST['submit']=3B
> > $from =3D "ajwei@alumni.iu.edu"=3B
> > $to =3D "elite.english@gmail.com"=3B
> > $subject =3D "Comments"=3B
> >=20
> > $body =3D "From: $your_name\n E-Mail: $email\n Reason Contact: $questio=
n\n
> > Comments:\n $comments";
> >=20
> > $headers =3D 'MIME-Version: 1.0' . "\r\n"=3B
> >=20
> > $headers .=3D 'Content-type: text/html=3B charset=3Dutf-8' . "\r\n"=3B
> >=20
> > $headers .=3D 'Errors-to: ' . "\r\n"=3B
> >=20
> > $mail ->send($to=2C $headers=2C $body)=3B
> >=20
> > if (PEAR::isError($mail)) echo "" . $mail->getMessage() .=20
> > "
"=3B
> >=20
> > else {
> >=20
> > echo "Message successfully sent!
> > id=3D'main'>=20
> >=20
> > Thank You For Contacting Us
> >=20
> > Here is what you have input:
> >=20
> > - Your Name is " . $your_name . =20
> > "
> >=20
> > - Your Email is " . $email .=20
> > "
> >=20
> > - You contacted us because you have a " .=20
> > $question . "
> >=20
> > - Here are your comments: " . $comments .=20
> > "
> >=20
> > Have a Nice Day!
"=3B
> >=20
> > }=20
> >=20
> > I have made sure that my $from and $to addresses are different,
> > Could there be anything else wrong here? I have not edited
> > anything in php.ini regarding this issue. Would I need to?
>=20
> Well=2C it's a Good Thing(tm) to know what those settings are.
> Have they changed since your last thread?
>=20
I have not changed any of my SMTP settings since my new installation of=20
PHP with Pear. So=2C I am not sure what the settings are supposed to be.=20
Would I need to install anything else even when the Pear Mail package=20
has been installed?
Alice
=20
____________________________________________________________ _____
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with H=
otmail.=20
http://www.windowslive.com/campaign/thenewbusy?tile=3Dmultic alendar&ocid=3D=
PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5=
--_67b9c731-01ea-433e-94da-6d0e1c9848ec_--
RE: Mail Function Using PEAR Issues
am 20.04.2010 03:10:39 von David McGlone
On Mon, 2010-04-19 at 08:25 -0400, Alice Wei wrote:
> I have not changed any of my SMTP settings since my new installation of
> PHP with Pear. So, I am not sure what the settings are supposed to be.
> Would I need to install anything else even when the Pear Mail package
> has been installed?
Alice, I never use the PEAR install from my distro, I always download
and install PEAR into my working folder. The benefit of doing it this
way is so that when you move your project to a different server, nothing
will break and you don't have to change anything.
Sometimes when I create a new project, I'll just copy the PEAR folder
from an older project to the new one. The only thing you may have to
change in your PHP code is the path to the PEAR libs only if you don't
put them in the same place every time.
Blessings,
David M.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Using PEAR Issues
am 20.04.2010 12:32:59 von Ken Guest
On Tue, Apr 20, 2010 at 2:10 AM, David McGlone wrote:
> On Mon, 2010-04-19 at 08:25 -0400, Alice Wei wrote:
>
>> I have not changed any of my SMTP settings since my new installation of
>> PHP with Pear. So, I am not sure what the settings are supposed to be.
>> Would I need to install anything else even when the Pear Mail package
>> has been installed?
You might, depending on if you need to use the Mail_Mime or Mail_Queue
packages also (for sending emails with attachments etc etc or for
sending mails in bulk).
Also there's some rather nice new functionality in the more recent
versions of Mail and Net_SMTP that enable you to log the ESMTP Id of
mails you have submitted to a mail server (along with the SMTP
greeting sent by that server when you connect to it).
> Alice, I never use the PEAR install from my distro, I always download
> and install PEAR into my working folder. The benefit of doing it this
> way is so that when you move your project to a different server, nothing
> will break and you don't have to change anything.
>
> Sometimes when I create a new project, I'll just copy the PEAR folder
> from an older project to the new one. The only thing you may have to
> change in your PHP code is the path to the PEAR libs only if you don't
> put them in the same place every time.
>
When some bug is fixed or dependencies of some of those PEAR packages
change I think you'll find your attitude towards that will change -
there's a pear installer so you don't have to update and track the
dependencies by hand - you do regularly update your packages don't
you? It's smart to do so because at the very least you don't have to
implement work-arounds for bugs that have been fixed in later versions
of those packages - and in the worst-case scenario it means you're not
using versions that have PEAR Security Advisories issued against them.
I believe it's possible to have seperate pear config files per project
so you're not limited to having to use the same versions of packages
across all projects.
If you're using more than a handful of PEAR packages in your project
you might want to write your own meta-package for the project; that
way you don't have to install all those packages individually;
you just do something like "$pear install myProject.xml" and the pear
installer will download and install whichever pear packages you have
described in your xml file.
Details on doing this are at
http://pear.php.net/manual/en/guide.users.dependencytracking .php
For the record, this is the example script that I submitted to
http://www.web-development-blog.com/archives/php-mail-script s-using-smtp-tr=
ansport-a-guide-for-beginners/
for demonstrating how to use the PEAR packages for sending a mail with
a file attached.:
require_once "Mail.php";
require_once "Mail/mime.php";
$from =3D "Fred Flintstone â=9C;
$to =3D â=9CBarney Rubble â=9C;
$subject =3D â=9CMail Subjectâ=9D;
$message =3D â=9Cthis is the text of the mail, sent using PEARâ=
=99s Mail packages.â=9D;
$host =3D â=9Csmtp.example.comâ=9D;
$port =3D â=9C25â=B3;
$headers =3D array (â=98Fromâ=99 =3D> $from, â=98Toâ=99=
=3D> $to, â=98Subjectâ=99 =3D> $subject);
$smtp =3D Mail::factory(â=99smtpâ=99, array (â=98hostâ=
=99 =3D> $host, â=98portâ=99 =3D> $port));
$mime =3D new Mail_mime();
$mime->setTxtBody($message);
$mime->addAttachment(â=9C/home/ken/logo.pngâ=9D, â=98image/p=
ngâ=99);
$body =3D $mime->get();
$mail =3D $smtp->send($to, $mime->headers($headers), $body);
if (PEAR::isError($mail)) {
echo($mail->getMessage() . â=9C!\nâ=9D);
} else {
echo(â=9CMessage successfully sent to $to!\nâ=9D);
echo â=9CQueued As (ESMTP Id): â=9C, $smtp->queued_as, â=9C\=
nâ=9D;
echo â=9CGreeting From Mailserver: â=9C, $smtp->greeting, â=
=9C\nâ=9D;
}
?>
> Blessings,
> David M.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--=20
http://blogs.linux.ie/kenguest/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 20.04.2010 20:17:53 von Alice Wei
--_d271af59-909b-4ca5-857a-c31b40cb6e1d_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> From: peter.e.lind@gmail.com
> Date: Mon=2C 19 Apr 2010 10:15:08 +0200
> Subject: Re: [PHP] Mail Function Using PEAR Issues
> To: ajwei@alumni.iu.edu
> CC: php-general@lists.php.net
>=20
> Most=2C if not all=2C mail servers keep log files. You should look for th=
e
> log files to see if the mail server has sent your mail properly or is
> experiencing problems (those may not feed back into PHP).
>=20
> Regards
> Peter
>=20
> --=20
>
> WWW: http://plphp.dk / http://plind.dk
> LinkedIn: http://www.linkedin.com/in/plind
> Flickr: http://www.flickr.com/photos/fake51
> BeWelcome: Fake51
> Couchsurfing: Fake51
>
You know where I can find that? I use Evolution Mail=2C a mail server? I fo=
und it through Ubuntu yesterday. Here is the link: http://projects.gnome.or=
g/evolution/ It asks me to put in the type of mail service I used=2C it gra=
bbed Google=2C which is smtp.google.com. I still cannot send mail. I start =
to wonder what is going on.=20
Alice
=20
____________________________________________________________ _____
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with H=
otmail.=20
http://www.windowslive.com/campaign/thenewbusy?tile=3Dmultic alendar&ocid=3D=
PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5=
--_d271af59-909b-4ca5-857a-c31b40cb6e1d_--
Re: Mail Function Using PEAR Issues
am 20.04.2010 22:16:03 von Ashley Sheridan
--=-HMi0UBUQZVKx8bBV/37h
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote:
> On 20 April 2010 20:17, Alice Wei wrote:
> >
> >> From: peter.e.lind@gmail.com
> >> Date: Mon, 19 Apr 2010 10:15:08 +0200
> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
> >> To: ajwei@alumni.iu.edu
> >> CC: php-general@lists.php.net
> >>
> >> Most, if not all, mail servers keep log files. You should look for the
> >> log files to see if the mail server has sent your mail properly or is
> >> experiencing problems (those may not feed back into PHP).
> >>
> >> Regards
> >> Peter
> >>
> >> --
> >>
> >> WWW: http://plphp.dk / http://plind.dk
> >> LinkedIn: http://www.linkedin.com/in/plind
> >> Flickr: http://www.flickr.com/photos/fake51
> >> BeWelcome: Fake51
> >> Couchsurfing: Fake51
> >>
> >
> > You know where I can find that? I use Evolution Mail, a mail server? I found
> > it through Ubuntu yesterday. Here is the link:
> > http://projects.gnome.org/evolution/ It asks me to put in the type of mail
> > service I used, it grabbed Google, which is smtp.google.com. I still cannot
> > send mail. I start to wonder what is going on.
> >
> > Alice
> >
>
> Evolution is a mail client, not a mail server. Apart from that, you're
> using the 'mail' (PHPs mail function) as the backend mailer in your
> PEAR script - try using smtp instead and pass the SMTP config data you
> normally use. Have a look at
> http://pear.php.net/manual/en/package.mail.mail.factory.php - the smtp
> part.
>
> Regards
> Peter
>
> --
>
> WWW: http://plphp.dk / http://plind.dk
> LinkedIn: http://www.linkedin.com/in/plind
> Flickr: http://www.flickr.com/photos/fake51
> BeWelcome: Fake51
> Couchsurfing: Fake51
>
>
If you've got Pear on Ubuntu, can Pear not default to sendmail if no
SMTP connection is set up?
Thanks,
Ash
http://www.ashleysheridan.co.uk
--=-HMi0UBUQZVKx8bBV/37h--
Re: Mail Function Using PEAR Issues
am 20.04.2010 22:17:08 von Peter Lind
On 20 April 2010 20:17, Alice Wei wrote:
>
>> From: peter.e.lind@gmail.com
>> Date: Mon, 19 Apr 2010 10:15:08 +0200
>> Subject: Re: [PHP] Mail Function Using PEAR Issues
>> To: ajwei@alumni.iu.edu
>> CC: php-general@lists.php.net
>>
>> Most, if not all, mail servers keep log files. You should look for the
>> log files to see if the mail server has sent your mail properly or is
>> experiencing problems (those may not feed back into PHP).
>>
>> Regards
>> Peter
>>
>> --
>>
>> WWW: http://plphp.dk / http://plind.dk
>> LinkedIn: http://www.linkedin.com/in/plind
>> Flickr: http://www.flickr.com/photos/fake51
>> BeWelcome: Fake51
>> Couchsurfing: Fake51
>>
>
> You know where I can find that? I use Evolution Mail, a mail server? I found
> it through Ubuntu yesterday. Here is the link:
> http://projects.gnome.org/evolution/ It asks me to put in the type of mail
> service I used, it grabbed Google, which is smtp.google.com. I still cannot
> send mail. I start to wonder what is going on.
>
> Alice
>
Evolution is a mail client, not a mail server. Apart from that, you're
using the 'mail' (PHPs mail function) as the backend mailer in your
PEAR script - try using smtp instead and pass the SMTP config data you
normally use. Have a look at
http://pear.php.net/manual/en/package.mail.mail.factory.php - the smtp
part.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 21.04.2010 04:25:15 von Alice Wei
--_7d7531e5-42e4-4d7e-99f9-72958cec0adc_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [PHP] Mail Function Using PEAR Issues
From: ash@ashleysheridan.co.uk
To: peter.e.lind@gmail.com
CC: ajwei@alumni.iu.edu=3B php-general@lists.php.net
Date: Tue=2C 20 Apr 2010 21:16:03 +0100
=20
=20
On Tue=2C 2010-04-20 at 22:17 +0200=2C Peter Lind wrote:
On 20 April 2010 20:17=2C Alice Wei wrote:
>
>> From: peter.e.lind@gmail.com
>> Date: Mon=2C 19 Apr 2010 10:15:08 +0200
>> Subject: Re: [PHP] Mail Function Using PEAR Issues
>> To: ajwei@alumni.iu.edu
>> CC: php-general@lists.php.net
>>
>> Most=2C if not all=2C mail servers keep log files. You should look for t=
he
>> log files to see if the mail server has sent your mail properly or is
>> experiencing problems (those may not feed back into PHP).
>>
>> Regards
>> Peter
>>
>> --
>>
>> WWW: http://plphp.dk / http://plind.dk
>> LinkedIn: http://www.linkedin.com/in/plind
>> Flickr: http://www.flickr.com/photos/fake51
>> BeWelcome: Fake51
>> Couchsurfing: Fake51
>>
>
> You know where I can find that? I use Evolution Mail=2C a mail server? I =
found
> it through Ubuntu yesterday. Here is the link:
> http://projects.gnome.org/evolution/ It asks me to put in the type of mai=
l
> service I used=2C it grabbed Google=2C which is smtp.google.com. I still =
cannot
> send mail. I start to wonder what is going on.
>
> Alice
>
Evolution is a mail client=2C not a mail server. Apart from that=2C you're
using the 'mail' (PHPs mail function) as the backend mailer in your
PEAR script - try using smtp instead and pass the SMTP config data you
normally use. Have a look at
http://pear.php.net/manual/en/package.mail.mail.factory.php - the smtp
part.
Regards
Peter
--=20
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
If you've got Pear on Ubuntu=2C can Pear not default to sendmail if no SMTP=
connection is set up?
Well=2C from my experience with Ubuntu=2C looks like that it does not do th=
at. Unless=2C I am doing it wrong?
Thanks=2C
Ash
http://www.ashleysheridan.co.uk
=20
____________________________________________________________ _____
The New Busy is not the old busy. Search=2C chat and e-mail from your inbox=
..
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_3=
--_7d7531e5-42e4-4d7e-99f9-72958cec0adc_--
RE: Mail Function Using PEAR Issues
am 21.04.2010 04:25:33 von Alice Wei
--_db086c71-32ba-47cc-b08d-ce7c6ac0e780_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: Re: [PHP] Mail Function Using PEAR Issues
From: ash@ashleysheridan.co.uk
To: peter.e.lind@gmail.com
CC: ajwei@alumni.iu.edu=3B php-general@lists.php.net
Date: Tue=2C 20 Apr 2010 21:16:03 +0100
=20
=20
On Tue=2C 2010-04-20 at 22:17 +0200=2C Peter Lind wrote:
On 20 April 2010 20:17=2C Alice Wei wrote:
>
>> From: peter.e.lind@gmail.com
>> Date: Mon=2C 19 Apr 2010 10:15:08 +0200
>> Subject: Re: [PHP] Mail Function Using PEAR Issues
>> To: ajwei@alumni.iu.edu
>> CC: php-general@lists.php.net
>>
>> Most=2C if not all=2C mail servers keep log files. You should look for t=
he
>> log files to see if the mail server has sent your mail properly or is
>> experiencing problems (those may not feed back into PHP).
>>
>> Regards
>> Peter
>>
>> --
>>
>> WWW: http://plphp.dk / http://plind.dk
>> LinkedIn: http://www.linkedin.com/in/plind
>> Flickr: http://www.flickr.com/photos/fake51
>> BeWelcome: Fake51
>> Couchsurfing: Fake51
>>
>
> You know where I can find that? I use Evolution Mail=2C a mail server? I =
found
> it through Ubuntu yesterday. Here is the link:
> http://projects.gnome.org/evolution/ It asks me to put in the type of mai=
l
> service I used=2C it grabbed Google=2C which is smtp.google.com. I still =
cannot
> send mail. I start to wonder what is going on.
>
> Alice
>
Evolution is a mail client=2C not a mail server. Apart from that=2C you're
using the 'mail' (PHPs mail function) as the backend mailer in your
PEAR script - try using smtp instead and pass the SMTP config data you
normally use. Have a look at
http://pear.php.net/manual/en/package.mail.mail.factory.php - the smtp
part.
Regards
Peter
--=20
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
If you've got Pear on Ubuntu=2C can Pear not default to sendmail if no SMTP=
connection is set up?
Well=2C from my experience with Ubuntu=2C looks like that it does not do th=
at. Unless=2C I am doing it wrong?
Thanks=2C
Ash
http://www.ashleysheridan.co.uk
=20
____________________________________________________________ _____
Hotmail is redefining busy with tools for the New Busy. Get more from your =
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_2=
--_db086c71-32ba-47cc-b08d-ce7c6ac0e780_--
Re: Mail Function Using PEAR Issues
am 21.04.2010 09:29:19 von Peter Lind
On 21 April 2010 04:25, Alice Wei wrote:
> Well, from my experience with Ubuntu, looks like that it does not do that. Unless, I am doing it wrong?
So did you try using the 'smtp' backend and passing all the connection
details rather than 'mail'?
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Mail Function Using PEAR Issues
am 21.04.2010 09:56:23 von Ken Guest
The PEAR Mail package does not fall back from one mechanism to another
if the first fails.
On Tue, Apr 20, 2010 at 9:16 PM, Ashley Sheridan
wrote:
> On Tue, 2010-04-20 at 22:17 +0200, Peter Lind wrote:
>
>> On 20 April 2010 20:17, Alice Wei wrote:
>> >
>> >> From: peter.e.lind@gmail.com
>> >> Date: Mon, 19 Apr 2010 10:15:08 +0200
>> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
>> >> To: ajwei@alumni.iu.edu
>> >> CC: php-general@lists.php.net
>> >>
>> >> Most, if not all, mail servers keep log files. You should look for the
>> >> log files to see if the mail server has sent your mail properly or is
>> >> experiencing problems (those may not feed back into PHP).
>> >>
>> >> Regards
>> >> Peter
>> >>
>> >> --
>> >>
>> >> WWW: http://plphp.dk / http://plind.dk
>> >> LinkedIn: http://www.linkedin.com/in/plind
>> >> Flickr: http://www.flickr.com/photos/fake51
>> >> BeWelcome: Fake51
>> >> Couchsurfing: Fake51
>> >>
>> >
>> > You know where I can find that? I use Evolution Mail, a mail server? I found
>> > it through Ubuntu yesterday. Here is the link:
>> > http://projects.gnome.org/evolution/ It asks me to put in the type of mail
>> > service I used, it grabbed Google, which is smtp.google.com. I still cannot
>> > send mail. I start to wonder what is going on.
>> >
>> > Alice
>> >
>>
>> Evolution is a mail client, not a mail server. Apart from that, you're
>> using the 'mail' (PHPs mail function) as the backend mailer in your
>> PEAR script - try using smtp instead and pass the SMTP config data you
>> normally use. Have a look at
>> http://pear.php.net/manual/en/package.mail.mail.factory.php - the smtp
>> part.
>>
>> Regards
>> Peter
>>
>> --
>>
>> WWW: http://plphp.dk / http://plind.dk
>> LinkedIn: http://www.linkedin.com/in/plind
>> Flickr: http://www.flickr.com/photos/fake51
>> BeWelcome: Fake51
>> Couchsurfing: Fake51
>>
>>
>
>
> If you've got Pear on Ubuntu, can Pear not default to sendmail if no
> SMTP connection is set up?
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
>
--
http://blogs.linux.ie/kenguest/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 21.04.2010 18:44:12 von Alice Wei
--_710945bb-3202-4738-9a3d-329e36086e71_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> From: peter.e.lind@gmail.com
> Date: Wed=2C 21 Apr 2010 09:29:19 +0200
> Subject: Re: [PHP] Mail Function Using PEAR Issues
> To: ajwei@alumni.iu.edu
> CC: ash@ashleysheridan.co.uk=3B php-general@lists.php.net
>=20
> On 21 April 2010 04:25=2C Alice Wei wrote:
> > Well=2C from my experience with Ubuntu=2C looks like that it does not d=
o that. Unless=2C I am doing it wrong?
>=20
> So did you try using the 'smtp' backend and passing all the connection
> details rather than 'mail'?
>=20
I have mentioned several posts earlier that I have done nothing about my ph=
p.ini file. From what you said=2C since I use U-Verse=2C am I supposed to d=
o something as described here: http://helpme.att.net/pdf/uverse/uverse_hsi_=
qsg_english.pdf
=20
I thought with PEAR=2C you don't need to do that anymore. Or=2C am I wrong?
=20
Alice
=20
=20
=20
=20
=20
____________________________________________________________ _____
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with H=
otmail.=20
http://www.windowslive.com/campaign/thenewbusy?tile=3Dmultic alendar&ocid=3D=
PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5=
--_710945bb-3202-4738-9a3d-329e36086e71_--
Re: Mail Function Using PEAR Issues
am 21.04.2010 21:51:31 von Peter Lind
On 21 April 2010 18:44, Alice Wei wrote:
> I have mentioned several posts earlier that I have done nothing about my
> php.ini file. From what you said, since I use U-Verse, am I supposed to do
> something as described here:
> http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
>
>
>
> I thought with PEAR, you don't need to do that anymore. Or, am I wrong?
>
Read the PEAR documentation:
http://pear.php.net/manual/en/package.mail.mail.factory.php
You can use other backends than just 'mail' - try using the smtp and
fill in your smtp settings as needed.
Regards
Peter
--
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 21.04.2010 21:58:43 von Alice Wei
--_5bcdd67f-b8ae-409a-9a0c-5a9cd37917da_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> From: peter.e.lind@gmail.com
> Date: Wed=2C 21 Apr 2010 21:51:31 +0200
> Subject: Re: [PHP] Mail Function Using PEAR Issues
> To: ajwei@alumni.iu.edu
> CC: ash@ashleysheridan.co.uk=3B php-general@lists.php.net
>=20
> On 21 April 2010 18:44=2C Alice Wei wrote:
> > I have mentioned several posts earlier that I have done nothing about m=
y
> > php.ini file. From what you said=2C since I use U-Verse=2C am I suppose=
d to do
> > something as described here:
> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
> >
> >
> >
> > I thought with PEAR=2C you don't need to do that anymore. Or=2C am I wr=
ong?
> >
>=20
> Read the PEAR documentation:
> http://pear.php.net/manual/en/package.mail.mail.factory.php
> You can use other backends than just 'mail' - try using the smtp and
> fill in your smtp settings as needed.
>=20
> Regards
> Peter
>=20
I saw something like that on http://email.about.com/od/emailprogrammingtips=
/qt/PHP_Email_SMTP_Authentication.htm=2C and this is probably what you are =
talking about?
$smtp =3D Mail::factory('smtp'=2C
array ('host' =3D> $host=2C
'auth' =3D> true=2C
'username' =3D> $username=2C
'password' =3D> $password))=3B
Do I still need to install a mail server? I have Evolution Mail on my Linux=
box=2C and looks like that is a client and not a server.=20
Or=2C can I use any of the mail smtp setup=2C like Google? Or=2C do use som=
e authentication information from http://helpme.att.net/pdf/uverse/uverse_h=
si_qsg_english.pdf=2C since I use U-Verse at home?=20
Thanks for your help.
Alice
=20
____________________________________________________________ _____
Hotmail is redefining busy with tools for the New Busy. Get more from your =
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_2=
--_5bcdd67f-b8ae-409a-9a0c-5a9cd37917da_--
Re: Mail Function Using PEAR Issues
am 21.04.2010 22:01:03 von Peter Lind
On 21 April 2010 21:58, Alice Wei wrote:
>> From: peter.e.lind@gmail.com
>> Date: Wed, 21 Apr 2010 21:51:31 +0200
>> Subject: Re: [PHP] Mail Function Using PEAR Issues
>> To: ajwei@alumni.iu.edu
>> CC: ash@ashleysheridan.co.uk; php-general@lists.php.net
>>
>> On 21 April 2010 18:44, Alice Wei wrote:
>> > I have mentioned several posts earlier that I have done nothing about =
my
>> > php.ini file. From what you said, since I use U-Verse, am I supposed t=
o
>> > do
>> > something as described here:
>> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
>> >
>> >
>> >
>> > I thought with PEAR, you don't need to do that anymore. Or, am I wrong=
?
>> >
>>
>> Read the PEAR documentation:
>> http://pear.php.net/manual/en/package.mail.mail.factory.php
>> You can use other backends than just 'mail' - try using the smtp and
>> fill in your smtp settings as needed.
>>
>> Regards
>> Peter
>>
> I saw something like that on
> http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Authenti=
cation.htm,
> and this is probably what you are talking about?
>
> $smtp =3D Mail::factory('smtp',
> Â Â array ('host' =3D> $host,
> Â Â Â Â 'auth' =3D> true,
> Â Â Â Â 'username' =3D> $username,
> Â Â Â Â 'password' =3D> $password));
>
> Do I still need to install a mail server? I have Evolution Mail on my Lin=
ux
> box, and looks like that is a client and not a server.
> Or, can I use any of the mail smtp setup, like Google? Or, do use some
> authentication information from
> http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, since I use
> U-Verse at home?
Yes, the example you provide is the right direction - you can put in
the smtp details you use to connect from Evolution to GMail, you don't
need to setup a separate smtp server on your system.
Regards
Peter
--=20
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
Flickr: http://www.flickr.com/photos/fake51
BeWelcome: Fake51
Couchsurfing: Fake51
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 22.04.2010 01:12:33 von Alice Wei
--_936ddc6f-9ebe-4a4d-9d91-dc0a5c7e8d9f_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> Date: Wed=2C 21 Apr 2010 22:01:03 +0200
> Subject: Re: [PHP] Mail Function Using PEAR Issues
> To: ajwei@alumni.iu.edu
> CC: ash@ashleysheridan.co.uk=3B php-general@lists.php.net
>=20
> On 21 April 2010 21:58=2C Alice Wei wrote:
> >> From: peter.e.lind@gmail.com
> >> Date: Wed=2C 21 Apr 2010 21:51:31 +0200
> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
> >> To: ajwei@alumni.iu.edu
> >> CC: ash@ashleysheridan.co.uk=3B php-general@lists.php.net
> >>
> >> On 21 April 2010 18:44=2C Alice Wei wrote:
> >> > I have mentioned several posts earlier that I have done nothing abou=
t my
> >> > php.ini file. From what you said=2C since I use U-Verse=2C am I supp=
osed to
> >> > do
> >> > something as described here:
> >> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
> >> >
> >> >
> >> >
> >> > I thought with PEAR=2C you don't need to do that anymore. Or=2C am I=
wrong?
> >> >
> >>
> >> Read the PEAR documentation:
> >> http://pear.php.net/manual/en/package.mail.mail.factory.php
> >> You can use other backends than just 'mail' - try using the smtp and
> >> fill in your smtp settings as needed.
> >>
> >> Regards
> >> Peter
> >>
> > I saw something like that on
> > http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Authen=
tication.htm=2C
> > and this is probably what you are talking about?
> >
> > $smtp =3D Mail::factory('smtp'=2C
> > array ('host' =3D> $host=2C
> > 'auth' =3D> true=2C
> > 'username' =3D> $username=2C
> > 'password' =3D> $password))=3B
> >
> > Do I still need to install a mail server? I have Evolution Mail on my L=
inux
> > box=2C and looks like that is a client and not a server.
> > Or=2C can I use any of the mail smtp setup=2C like Google? Or=2C do use=
some
> > authentication information from
> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf= 2C since I =
use
> > U-Verse at home?
>=20
> Yes=2C the example you provide is the right direction - you can put in
> the smtp details you use to connect from Evolution to GMail=2C you don't
> need to setup a separate smtp server on your system.
>=20
> Regards
> Peter
>=20
Well=2C hold it. I have edited my code to hold the information as we have d=
iscussed earlier=2C and this is the error I have now:
Warning: include_once(Net/SMTP.php) [function.include-once]: failed to ope=
n stream: No such file or directory in /usr/share/php/Mail/smtp.php on line=
348
Warning: include_once() [function.include]: Failed opening 'Net/SMTP.php' =
for inclusion (include_path=3D'.:/usr/share/php') in /usr/share/php/Mail/sm=
tp.php on line 348
Fatal error: Class 'Net_SMTP' not found in /usr/share/php/Mail/smtp.php on=
line 349
I am not sure what this means. If I have installed pear correctly=2C what e=
lse do I have to do here? I can see that I have some "significant" error me=
ssages than not getting anything at all.=20
Thanks for your help.
Alice
=20
____________________________________________________________ _____
Hotmail has tools for the New Busy. Search=2C chat and e-mail from your inb=
ox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_1=
--_936ddc6f-9ebe-4a4d-9d91-dc0a5c7e8d9f_--
Re: Mail Function Using PEAR Issues
am 22.04.2010 01:31:04 von Ken Guest
you have to install the net_smtp package, simply with this command:
$ pear install net_smtp-1.4.2 (which will explicitly install version
1.4.2 of Net_SMTP)
If that doesn't work. for whatever reason, you could download the
package manually from http://pear.php.net/package/Net_SMTP/download
and install it by hand; though for reasons I've outlined in a previous
post to this list I'd suggest you use the pear installer.
On Thu, Apr 22, 2010 at 12:12 AM, Alice Wei wrote:
>
>> Date: Wed, 21 Apr 2010 22:01:03 +0200
>> Subject: Re: [PHP] Mail Function Using PEAR Issues
>> To: ajwei@alumni.iu.edu
>> CC: ash@ashleysheridan.co.uk; php-general@lists.php.net
>>
>> On 21 April 2010 21:58, Alice Wei wrote:
>> >> From: peter.e.lind@gmail.com
>> >> Date: Wed, 21 Apr 2010 21:51:31 +0200
>> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
>> >> To: ajwei@alumni.iu.edu
>> >> CC: ash@ashleysheridan.co.uk; php-general@lists.php.net
>> >>
>> >> On 21 April 2010 18:44, Alice Wei wrote:
>> >> > I have mentioned several posts earlier that I have done nothing abo=
ut my
>> >> > php.ini file. From what you said, since I use U-Verse, am I suppose=
d to
>> >> > do
>> >> > something as described here:
>> >> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
>> >> >
>> >> >
>> >> >
>> >> > I thought with PEAR, you don't need to do that anymore. Or, am I wr=
ong?
>> >> >
>> >>
>> >> Read the PEAR documentation:
>> >> http://pear.php.net/manual/en/package.mail.mail.factory.php
>> >> You can use other backends than just 'mail' - try using the smtp and
>> >> fill in your smtp settings as needed.
>> >>
>> >> Regards
>> >> Peter
>> >>
>> > I saw something like that on
>> > http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Authe=
ntication.htm,
>> > and this is probably what you are talking about?
>> >
>> > =A0$smtp =3D Mail::factory('smtp',
>> > =A0 =A0array ('host' =3D> $host,
>> > =A0 =A0 =A0'auth' =3D> true,
>> > =A0 =A0 =A0'username' =3D> $username,
>> > =A0 =A0 =A0'password' =3D> $password));
>> >
>> > Do I still need to install a mail server? I have Evolution Mail on my =
Linux
>> > box, and looks like that is a client and not a server.
>> > Or, can I use any of the mail smtp setup, like Google? Or, do use some
>> > authentication information from
>> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf, since I u=
se
>> > U-Verse at home?
>>
>> Yes, the example you provide is the right direction - you can put in
>> the smtp details you use to connect from Evolution to GMail, you don't
>> need to setup a separate smtp server on your system.
>>
>> Regards
>> Peter
>>
>
> Well, hold it. I have edited my code to hold the information as we have d=
iscussed earlier, and this is the error I have now:
>
> Warning: =A0include_once(Net/SMTP.php) [function.include-once]: failed to=
open stream: No such file or directory in /usr/share/php/Mail/smtp.php on =
line 348
>
>
>
> Warning: =A0include_once() [function.include]: Failed opening 'Net/SMTP.p=
hp' for inclusion (include_path=3D'.:/usr/share/php') in /usr/share/php/Mai=
l/smtp.php on line 348
>
>
>
> Fatal error: =A0Class 'Net_SMTP' not found in /usr/share/php/Mail/smtp.ph=
p on line 349
>
> I am not sure what this means. If I have installed pear correctly, what e=
lse do I have to do here? I can see that I have some "significant" error me=
ssages than not getting anything at all.
>
> Thanks for your help.
>
> Alice
>
> ____________________________________________________________ _____
> Hotmail has tools for the New Busy. Search, chat and e-mail from your inb=
ox.
> http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL=
:ON:WL:en-US:WM_HMP:042010_1
--=20
http://blogs.linux.ie/kenguest/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Mail Function Using PEAR Issues
am 22.04.2010 01:46:43 von Alice Wei
--_ed910cc4-7dd6-4c34-8037-d99d080053e8_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
> Date: Thu=2C 22 Apr 2010 00:31:04 +0100
> Subject: Re: [PHP] Mail Function Using PEAR Issues
> From: ken@linux.ie
> To: ajwei@alumni.iu.edu
> CC: peter.e.lind@gmail.com=3B ash@ashleysheridan.co.uk=3B php-general@lis=
ts.php.net
>=20
> you have to install the net_smtp package=2C simply with this command:
> $ pear install net_smtp-1.4.2 (which will explicitly install version
> 1.4.2 of Net_SMTP)
>=20
> If that doesn't work. for whatever reason=2C you could download the
> package manually from http://pear.php.net/package/Net_SMTP/download
> and install it by hand=3B though for reasons I've outlined in a previous
> post to this list I'd suggest you use the pear installer.
>=20
> On Thu=2C Apr 22=2C 2010 at 12:12 AM=2C Alice Wei w=
rote:
> >
> >> Date: Wed=2C 21 Apr 2010 22:01:03 +0200
> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
> >> To: ajwei@alumni.iu.edu
> >> CC: ash@ashleysheridan.co.uk=3B php-general@lists.php.net
> >>
> >> On 21 April 2010 21:58=2C Alice Wei wrote:
> >> >> From: peter.e.lind@gmail.com
> >> >> Date: Wed=2C 21 Apr 2010 21:51:31 +0200
> >> >> Subject: Re: [PHP] Mail Function Using PEAR Issues
> >> >> To: ajwei@alumni.iu.edu
> >> >> CC: ash@ashleysheridan.co.uk=3B php-general@lists.php.net
> >> >>
> >> >> On 21 April 2010 18:44=2C Alice Wei wrote:
> >> >> > I have mentioned several posts earlier that I have done nothing a=
bout my
> >> >> > php.ini file. From what you said=2C since I use U-Verse=2C am I s=
upposed to
> >> >> > do
> >> >> > something as described here:
> >> >> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf
> >> >> >
> >> >> >
> >> >> >
> >> >> > I thought with PEAR=2C you don't need to do that anymore. Or=2C a=
m I wrong?
> >> >> >
> >> >>
> >> >> Read the PEAR documentation:
> >> >> http://pear.php.net/manual/en/package.mail.mail.factory.php
> >> >> You can use other backends than just 'mail' - try using the smtp an=
d
> >> >> fill in your smtp settings as needed.
> >> >>
> >> >> Regards
> >> >> Peter
> >> >>
> >> > I saw something like that on
> >> > http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_ SMTP_Aut=
hentication.htm=2C
> >> > and this is probably what you are talking about?
> >> >
> >> > $smtp =3D Mail::factory('smtp'=2C
> >> > array ('host' =3D> $host=2C
> >> > 'auth' =3D> true=2C
> >> > 'username' =3D> $username=2C
> >> > 'password' =3D> $password))=3B
> >> >
> >> > Do I still need to install a mail server? I have Evolution Mail on m=
y Linux
> >> > box=2C and looks like that is a client and not a server.
> >> > Or=2C can I use any of the mail smtp setup=2C like Google? Or=2C do =
use some
> >> > authentication information from
> >> > http://helpme.att.net/pdf/uverse/uverse_hsi_qsg_english.pdf= 2C since=
I use
> >> > U-Verse at home?
> >>
> >> Yes=2C the example you provide is the right direction - you can put in
> >> the smtp details you use to connect from Evolution to GMail=2C you don=
't
> >> need to setup a separate smtp server on your system.
> >>
> >> Regards
> >> Peter
> >>
> >
> > Well=2C hold it. I have edited my code to hold the information as we ha=
ve discussed earlier=2C and this is the error I have now:
> >
> > Warning: include_once(Net/SMTP.php) [function.include-once]: failed to=
open stream: No such file or directory in /usr/share/php/Mail/smtp.php on =
line 348
> >
> >
> >
> > Warning: include_once() [function.include]: Failed opening 'Net/SMTP.p=
hp' for inclusion (include_path=3D'.:/usr/share/php') in /usr/share/php/Mai=
l/smtp.php on line 348
> >
> >
> >
> > Fatal error: Class 'Net_SMTP' not found in /usr/share/php/Mail/smtp.ph=
p on line 349
> >
> > I am not sure what this means. If I have installed pear correctly=2C wh=
at else do I have to do here? I can see that I have some "significant" erro=
r messages than not getting anything at all.
> >
> > Thanks for your help.
> >
> > Alice
> >
> > ____________________________________________________________ _____
> > Hotmail has tools for the New Busy. Search=2C chat and e-mail from your=
inbox.
> > http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTA=
GL:ON:WL:en-US:WM_HMP:042010_1
>=20
>=20
>=20
> --=20
> http://blogs.linux.ie/kenguest/
As the time of writing this=2C I have installed the missing Net_SMTP pear p=
ackage unto my Linux box. I have just tested it=2C and I have received two =
email messages to the desired mailbox=2C without having to install a mail s=
erver. Thanks for your help.
I really appreciate this.=20
Alice
=20
____________________________________________________________ _____
Hotmail is redefining busy with tools for the New Busy. Get more from your =
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=3DPID283 26::T:WLMTAGL:O=
N:WL:en-US:WM_HMP:042010_2=
--_ed910cc4-7dd6-4c34-8037-d99d080053e8_--