Re: Email Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Are you trying to send the information to your email
address?  If so, I found a program called phpmailer
that will do that for you.  It's implemented as a php
class and you just pass it the information from your
form.  If this is what you're trying to do let me know
and I'll send you an example.  

dr
--- mohammed farooq <farooqsam_786@yahoo.co.in> wrote:
> 
> 
> mgobi2003 <gobinathm@hotmail.com> wrote: HI all,
> I am very new to PHP programming. I would like to
> create page which 
> will accept informations from the users and send it
> to my ID. I have 
> tried it by many ways but i am not able to send. I
> need to get that 
> in HTML format. Can any one give me some sample
> programs. It will be 
> helpfull for me.
> Thanks you,
> 
> regarsd,
> gobinath
> 
> 
> 
> 
> Look here for Free PHP Classes of objects:
> http://phpclasses.UpperDesign.com/ 
> 
> 
> Yahoo! Groups SponsorADVERTISEMENT
> Click Here
> 
> ---------------------------------
> Yahoo! Groups Links
> 
>    To visit your group on the web, go to:
> http://groups.yahoo.com/group/php-objects/
>   
>    To unsubscribe from this group, send an email to:
> php-objects-unsubscribe@yahoogroups.com
>   
>    Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of Service. 
> 
> 
> 
> 
> Yahoo! India Insurance Special: Be informed on the
> best policies, services, tools and more.
>   ----------
> 
> <?php
> 	include("creg.php");	
> 
> 	$submit = @$HTTP_POST_VARS["submit"];
> 	if(isset($submit))
> 	{
> 		$cname          = @$HTTP_POST_VARS["cname"];
> 		$addr              = @$HTTP_POST_VARS["addr"];
> 		$city                 = @$HTTP_POST_VARS["city"];
> 		$pin                 = @$HTTP_POST_VARS["pin"];
> 		tender_email($cname,$addr,$pin,$city);
> 	}
> ?>
> 
> <html>
> <head>
> 	<title>Registration Form</title>
> </head>
> <body bgcolor="#ffffff">
> <table width="730" border="0" cellspacing="0"
> cellpadding="0" height="100%">
> <form name="Reg_frm" method="POST"
> action="register.php">
> 	<table width="525"  cellspacing="0"
> cellpadding="0">
> 		<tr>
> 			<td width="27%" height="23">
> 				Company Name :
> 			</td>
> 			<td width="73%" height="23">
> 				<input type="text" name="cname" size="20"
> maxlength="50" value="<?=@$cname;?>">
> 				<font color="red"> *</font>
> 			</td>
> 		</tr>
> 		<tr>
> 			<td>&nbsp</td>
> 		</tr>
> 		<tr>
> 			<td width="27%" height="23">
> 				Address :
> 			</td>
> 			<td width="73%" height="23"> 
> 				<textarea name="addr" size="20"
> maxlength="200"><?=@$addr;?></textarea>
> 				<font color="red"> *</font>
> 			</td>
> 		</tr>
> 		<tr>
> 			<td>&nbsp</td>
> 		</tr>
> 		<tr>
> 			<td width="27%" height="23">
> 				City :
> 				<br>
> 			</td>
> 			<td width="73%" height="23"> 
> 				<input type="text" name="city" size="20"
> maxlength="25" value="<?=@$city ;?>">
> 			</td>
> 		</tr>
> 		<tr>
> 			<td>&nbsp</td>
> 		</tr>
> 		<tr>
> 			<td width="27%" height="23">PIN :</td>
> 			<td width="73%" height="23"> 
> 				<input type="text" name="pin" size="20"
> maxlength="6" value="<?=@$pin;?>">
> 				<font color="red"> *</font>				
> 			</td>
> 		</tr>
> 		<tr>
> 			<td>&nbsp</td>
> 		</tr>
> 	</table>
> </body>
> </html>
> 
> 
> 
>   ----------
> 
> <?php
> 	function
>
tender_email($cname,$addr,$pin,$city,$country,$cperson,$mailid,$web,$phone_ISD,$phone_STD,
> 	$phone_PCO,$fax)
> 	{
> 		$phone   = "$phone_ISD  -  $phone_STD -
> $phone_PCO";
> 		$subject = "Pre - Registration Form Details";
> 		$message ="Pre - Registration Form Details";
> 		$message .="\n
> ---------------------------------------------";
> 		$message .="\n Company Name      : $cname";
> 		$message .="\n Address           : $addr.";
> 		$message .="\n PIN	             : $pin.";
> 		$message .="\n City              : $city.;";
> 		$message .="\n Country           : $country.";
> 		$message .="\n Contact Person    : $cperson.";
> 		$message .="\n E-mail ID         : $mailid.";
> 		$message .="\n We site address   : $web.";
> 		$message .="\n Phone             : $phone.";
> 		$message .="\n Fax               : $fax..";
> 		$message
> .="\n---------------------------------------------";
> 		$sent_to  = "farooqsam_786@rediff.com"; 
> 		mail($sent_to, $subject, $message );
> 	}
> ?>
> 
> [Non-text portions of this message have been
> removed]
> 
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster
http://search.yahoo.com


Look here for Free PHP Classes of objects:
http://phpclasses.UpperDesign.com/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
     php-objects-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux