Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 4th, 2001, 05:10 PM
justin84 justin84 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: Kentucky
Posts: 1 justin84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to justin84
Post How do i send mail from my webpage?

How would i send mail using PHP through my page. I need something that would send an email confirmation when a user contacts me through my page.

Thanks in advance

Reply With Quote
  #2  
Old December 4th, 2001, 07:57 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
mail("user@yahoo.com","confirmation","thx for registring");
but make sure smtp server is set properly in php.ini. Look into mail() on php.net
__________________
And you know I mean that.

Reply With Quote
  #3  
Old December 9th, 2001, 05:35 AM
MkJnr MkJnr is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2001
Location: London, UK
Posts: 661 MkJnr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via AIM to MkJnr Send a message via Yahoo to MkJnr
need a server side language, possibly PHP if u have that installed on ur server

Check the PHP forum there some examples there
__________________
MkJnr
Soccer24-7.Com

Reply With Quote
  #4  
Old December 22nd, 2001, 09:38 PM
preemi preemi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2001
Location: Chicago
Posts: 81 preemi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
easily, thanks to php's mail function

when the user clicks submit, all the variables are passed onto the next page. in this page, you simply want to take advantage of php's mail function to send the email with the info they entered to the address they entered with the message you desire. just use the code below.

$msg = "Thanks for posting";
$msg .= "Sincerly, your (your name)";

$to = "$email";

//$email is the variable i used to represent what the user entered in the form, if you use some other variable, change it above

$subject = "whatever you want";

//this is php's mail function, use it to send the $msg, $to, and $subject variables

mail($to,$subject,$msg);

thats all you really need to send a simple email

have fun
kevin

Reply With Quote
  #5  
Old December 25th, 2001, 06:58 AM
doupy doupy is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: china
Posts: 19 doupy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to doupy Send a message via Yahoo to doupy
:)

Thanks you,you are good.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > How do i send mail from my webpage?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway