|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 ![]() |
|
#2
|
||||
|
||||
|
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. |
|
#3
|
|||
|
|||
|
need a server side language, possibly PHP if u have that installed on ur server
Check the PHP forum there some examples there |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
:)
Thanks you,you are good.
|
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > How do i send mail from my webpage? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|