php-general Digest 7 Mar 2010 17:07:24 -0000 Issue 6626
Topics (messages 302590 through 302592):
Re: Mail Function In PHP
302590 by: Kevin Kinsey
Re: Parse a string containing name and email
302591 by: Kevin Kinsey
pear for fedora 11
302592 by: Edward. S. P. Leong
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Kannan wrote:
Hello
I am creating a application for our college using the
php.In that i want to send mail to all who are all the list.
For that i am just simply use the mail function in php without
configuring any mail system in the system.But the mail didn't send.
For sending the mails wat are requirements and if u have any tutorials
send it to me?
Thanks..
Hello,
Read the manual page for the mail() function ...
http://www.php.net/mail
Mail() requires an operating SMTP server. This can be set
in php.ini, and possibly via the ini_set() function. These
might be worth looking into:
$config1=ini_set(sendmail_path,"/usr/sbin/sendmail -t -i");
$config2=ini_set(SMTP,"localhost");
$config3=ini_set(smtp_port,25);
If you absolutely can't run an SMTP server or use a
remote server, you'd probably have to hack something
together with sockets or streams.
My $0.02,
Kevin Kinsey
--- End Message ---
--- Begin Message ---
Don wrote:
Hi,
I am pulling email values out of a database and the format is as follows:
John Smith<john.sm...@somedomain.com>
I need to parse the string into two variables as such
$name = John Smith
$email = john.sm...@somedomain.com
What would be the easiest way to do this?
Thanks.
[36] Sun 07.Mar.2010 0:27:35
[kad...@archangel][~/scripts] cat split
<?php
$data="John Smith<j...@foo.com>";
list($name,$email)=explode("<",str_replace(">","",$data));
echo "$name's email address is $email";
?>
[37] Sun 07.Mar.2010 0:27:40
[kad...@archangel][~/scripts] php split
John Smith's email address is j...@foo.com
Throw in a foreach() and some data writes or w/e, and you're done.
Kevin Kinsey
--- End Message ---
--- Begin Message ---
Dear All,
Which can we download pear ann install into fc 11 system ?
Thank for your help !
Edward.
--- End Message ---