473,782 Members | 2,542 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

send email to me

Dev
Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev

Oct 24 '07 #1
21 1674
On Oct 24, 7:13 am, Dev <hanu...@gmail. comwrote:
Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev
To get you started - http://us.php.net/manual/en/ref.mail.php

For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. If you use another
mail program, such as qmail or postfix, be sure to use the appropriate
sendmail wrappers that come with them. PHP will first look for
sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/
usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have
sendmail available from your PATH. Also, the user that compiled PHP
must have permission to access the sendmail binary.

If you want to use a package -http://pear.php.net/package/Mail and/
or http://pear.php.net/package/Mail_Mime

PEAR's Mail package defines an interface for implementing mailers
under the PEAR hierarchy. It also provides supporting functions useful
to multiple mailer backends. Currently supported backends include:
PHP's native mail() function, sendmail, and SMTP. This package also
provides a RFC822 email address list validation utility class.

Mail_Mime provides classes to deal with the creation and manipulation
of mime messages.
It allows people to create Email messages consisting of:
* Text Parts
* HTML Parts
* Inline HTML Images
* Attachments
* Attached messages

Starting with version 1.4.0, it also allows non US-ASCII chars in
filenames, subjects, recipients, etc.

HTH....

Oct 24 '07 #2
MS
Dev emailed this:
Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev
Try looking in the manual, here:
http://uk2.php.net/manual/en/ref.mail.php
Oct 24 '07 #3

"MS" <No*********@No .Spam.Thank.You .comwrote in message
news:bP******** ***********@tex t.news.blueyond er.co.uk...
Dev emailed this:
>Dear All,
I have created a website.
in the contact us page i want to send all information (Entered by
visitor in text boxex) directly to my e-mail address.
to do this i have no idea because i am new to PHP.
thanks in advance
Dev

Try looking in the manual, here:
http://uk2.php.net/manual/en/ref.mail.php
ahhh!

who is the *least* likely to RTFM? who is in the most need of RTFM?

wheat from chaff...wheat from chaff. if the op's of that genre can't answer
both of those questions correctly and then formulate a sound plan of action
from the 'discovery', the need to play with lego's or something...not php.

cheers.
Oct 24 '07 #4
phpCodeHead wrote:
Take 10 deep breaths and learn this one thing before you die: Cook for
a man, feed him for a day; teach a man to fish, feed him for a
lifetime.

Teach a man to fish and he'll spend all his waking hours fishing!

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

Oct 24 '07 #5

"Jerry Stuckle" <js*******@attg lobal.netwrote in message
news:nd******** *************** *******@comcast .com...
phpCodeHead wrote:
>Take 10 deep breaths and learn this one thing before you die: Cook for
a man, feed him for a day; teach a man to fish, feed him for a
lifetime.


Teach a man to fish and he'll spend all his waking hours fishing!
ain't that the truth! i started fishing again back in may and have been at
least twice a week since. i have found fishing for buffalo the closest i'll
get to the feeling of deep sea fishing...in a lake. the smallest i've caught
was 22lb. i catch at least one per trip. each takes about 15 minutes to
bring in. if i get 3 in one sitting, i leave. my arms hurt so much that i
just don't want to get another on.

;^)

cheers.
Oct 24 '07 #6
Steve wrote:
"Jerry Stuckle" <js*******@attg lobal.netwrote in message
news:nd******** *************** *******@comcast .com...
>phpCodeHead wrote:
>>Take 10 deep breaths and learn this one thing before you die: Cook for
a man, feed him for a day; teach a man to fish, feed him for a
lifetime.

Teach a man to fish and he'll spend all his waking hours fishing!

ain't that the truth! i started fishing again back in may and have been at
least twice a week since. i have found fishing for buffalo the closest i'll
get to the feeling of deep sea fishing...in a lake. the smallest i've caught
was 22lb. i catch at least one per trip. each takes about 15 minutes to
bring in. if i get 3 in one sitting, i leave. my arms hurt so much that i
just don't want to get another on.

;^)

cheers.
Ah, how I wish. I used to go lake fishing at least a couple of times a
week and to the beach at least once a month (I was in NC at the time).

Then I got married... Since then the only time since then I've been
fishing was for Marlins at Cabo San Lucas and one business trip out on
the Chesapeake Bay.

That was 11.5 years ago... :-(

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

Oct 25 '07 #7

"Jerry Stuckle" <js*******@attg lobal.netwrote in message
news:vc******** *************** *******@comcast .com...
Steve wrote:
>"Jerry Stuckle" <js*******@attg lobal.netwrote in message
news:nd******* *************** ********@comcas t.com...
>>phpCodeHead wrote:

Take 10 deep breaths and learn this one thing before you die: Cook for
a man, feed him for a day; teach a man to fish, feed him for a
lifetime.
Teach a man to fish and he'll spend all his waking hours fishing!

ain't that the truth! i started fishing again back in may and have been
at least twice a week since. i have found fishing for buffalo the closest
i'll get to the feeling of deep sea fishing...in a lake. the smallest
i've caught was 22lb. i catch at least one per trip. each takes about 15
minutes to bring in. if i get 3 in one sitting, i leave. my arms hurt so
much that i just don't want to get another on.

;^)

cheers.

Ah, how I wish. I used to go lake fishing at least a couple of times a
week and to the beach at least once a month (I was in NC at the time).

Then I got married... Since then the only time since then I've been
fishing was for Marlins at Cabo San Lucas and one business trip out on the
Chesapeake Bay.

That was 11.5 years ago... :-(
it had been about 20 years for me. i had a friend who was having a rough
time and wanted to go fishing to clear his mind and think of happier things.
i'm glad he invited me! i grew up fishing but, after years of it, only
landed one 10 lb catfish, a 1 lb crappie, and a 3 lb large mouth
bass...crappy stats! i caught fish all the time of each kind...those were my
records though. i'm way into buffalo and carp. they are babies in the summer
and monsters by the fall...and man, they fight like their lives depended on
it. we fish off of a pier and use bungie chord to anchor the rods to the
metal benches...other wise, your rod goes missing in the blink of an eye.

you ought to try it again. take your wife too.
Oct 25 '07 #8
Steve wrote:
"Jerry Stuckle" <js*******@attg lobal.netwrote in message
news:vc******** *************** *******@comcast .com...
>Steve wrote:
>>"Jerry Stuckle" <js*******@attg lobal.netwrote in message
news:nd****** *************** *********@comca st.com...
phpCodeHea d wrote:

Take 10 deep breaths and learn this one thing before you die: Cook for
a man, feed him for a day; teach a man to fish, feed him for a
lifetime.
>
>
Teach a man to fish and he'll spend all his waking hours fishing!
ain't that the truth! i started fishing again back in may and have been
at least twice a week since. i have found fishing for buffalo the closest
i'll get to the feeling of deep sea fishing...in a lake. the smallest
i've caught was 22lb. i catch at least one per trip. each takes about 15
minutes to bring in. if i get 3 in one sitting, i leave. my arms hurt so
much that i just don't want to get another on.

;^)

cheers.
Ah, how I wish. I used to go lake fishing at least a couple of times a
week and to the beach at least once a month (I was in NC at the time).

Then I got married... Since then the only time since then I've been
fishing was for Marlins at Cabo San Lucas and one business trip out on the
Chesapeake Bay.

That was 11.5 years ago... :-(

it had been about 20 years for me. i had a friend who was having a rough
time and wanted to go fishing to clear his mind and think of happier things.
i'm glad he invited me! i grew up fishing but, after years of it, only
landed one 10 lb catfish, a 1 lb crappie, and a 3 lb large mouth
bass...crappy stats! i caught fish all the time of each kind...those were my
records though. i'm way into buffalo and carp. they are babies in the summer
and monsters by the fall...and man, they fight like their lives depended on
it. we fish off of a pier and use bungie chord to anchor the rods to the
metal benches...other wise, your rod goes missing in the blink of an eye.

you ought to try it again. take your wife too.
Sounds like fun. I actually prefer blues myself. Some people don't
like them, but those don't know how to clean them. Properly cleaned
they're delicious. Not properly cleaned and they are quite oily.

I never have caught anything really big in lakes - largest was probably
about a 3-4 lb. northern or walleye up in Minnesota many years ago. I
haven't caught any big lake fish for a very long time. Have pulled some
big ones out of the surf, however. And around Chesapeake Bay we can get
some good sized rockfish.

And my favorite was a 130 lb marlin a few years ago. It's hanging on my
office wall :-)

As for the wife - she can take it for a while, but doesn't have the
patience to sit there all day waiting for a bite.

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

Oct 25 '07 #9
phpCodeHead wrote:
On Oct 24, 3:24 pm, "Steve" <no....@example .comwrote:

i don't beat my wife at all; never have, never will... but, i'm not
thrown off by the fact that it's the one thing in that paragraph that
hit your mind enough to feel obligated to puke ignorance through you
keyboard and onto this post.

i will teach whomever i please. i am at no point obligated just the
same! double duh!

you have no concept of wisdom, conventional or otherwise; i've
researched your posts across the internet, most simply stem
controversy and put other ppl down ... and this is ok for the likes of
you and ppl like you; but, as far as about 98% of the rest of the
population goes we're just not on board with you.

over and out on this convo -- gone fishing!
Sorry, Steve's got you here. He has a lot more wisdom than you do.

For instance, in your very first post -

"For the Mail functions to be available, PHP must have access to the
sendmail binary on your system during compile time. "

Complete and utter nonsense. If that were the case, you couldn't
compile PHP on one system and run it on another with a potentially
different MTA. But that works fine. All PHP needs is the binary
available at runtime.

And while the Pear package your recommend is good, it does nothing to
help a new PHP programmer, and in fact requires that he learn MORE than
if he just used the mail() function.

Steve's post was much more informative. A new programmer will benefit
more from a good example than a "rtfm".

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

Oct 25 '07 #10

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

Similar topics

11
12091
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to use PHP to get inside an OWA (Microsoft Outlook Web Access) website to send email that way? The reason I ask is because my corporate office is going to do away with our rogue SMTP server access and force everything through Exchange
40
11899
by: ian | last post by:
Hi, I'm a newbie (oh no I can here you say.... another one...) How can I get Python to send emails using the default windows email client (eg outlook express)? I thought I could just do the following import win32com.client
0
3711
by: David Burson | last post by:
Hi, I have a VB.NET windows app that needs to automatically send a simple text email when my users run a new version of the app for the first time. I thought this would be simple, but after days of reading posts and testing, I see it is not - unless I'm missing something? I'm not an email guru. All of my users will be running at least Windows 2000, most on XP sp2. Some of my users will have Outlook, many will be using Outlook...
9
4311
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5, VisualStudio2002, VB as programing language. Our test/development version of the web app as hosted on our "localhost" works fine; our "Default SMTP Virtual Server" is running (per the IIS console).
3
4559
by: Gerard | last post by:
Hello I have created a windows service to monitor a database, it starts some checks when a timer elapses. The checks send emails depending on their findings. My issue is that when I created a windows application it worked fine, however I need to use a service as I don't want to rely on a user being logged in. The errors I get are: Index #:System.Web.HttpException: Could not access 'CDO.Message' object. --->...
14
9143
by: supz | last post by:
Hi, I use the standard code given below to send an email from an ASP.NET web form. The code executes fine but no Email is sent. All emails get queued in the Inetpub mail queue. I'm using my local default SMTP Server and my from address is a valid Yahoo/Hotmail address. I have configures the local SMTP Server to allow the IP Address 127.0.0.1.
8
7284
by: shapper | last post by:
Hello, I am trying to send an email using Asp.Net 2.0. I am getting the following error: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: No such user here at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify,
9
77444
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
2
5636
by: Malli mindwave | last post by:
Hi, We are using the yahoowebHostiing service for my company website, In that one screen of the SendComments/FeedBack section is there, I'm basically dot.net develeoper ,but yahoowebhosting not support .asp,.aspx files, it supports PHP files, I'm searching in JavaScript ,but not found any matter, I'don't Know PHP.I'm having lot of pressure of higer officials.Please help me on this.
5
2162
by: Mike | last post by:
I have a page with a textbox that a user can enter in mutliple email addresses such as: user1@yahoo.com;user2@yahoo.com;user3@gmail.com; and so on, I then have a foreach loop to get all of the emaill addresses and send emails out. the problem is that all of the email addresses the email is being sent to is showing in the section so everyone knows who's getting the email. How can I have 1 email address showing in the section so no...
0
10311
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10146
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9942
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8967
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7492
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5378
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5509
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4043
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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

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