Re: Converting ASP to PHP

From: Date: Tue, 14 Nov 2000 21:38:58 +0000
Subject: Re: Converting ASP to PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25248@lists.php.net to get a copy of this message
I think you just want to send email right? <? $subject = 'Hey dude what up?'; $msg = 'Meet me at 9am'; $to = 'joe@foobar.com'; $from = 'Joe Stump <joe@foobar.com>'; mail($to,$subject,$msg,$from); ?> --Joe On Tue, Nov 14, 2000 at 04:36:41PM -0500, Jason wrote: > I need to convert this ASP code to PHP code. Someone on suggested > using PHP's COM functions, but I don't know how to use that. Could > someone give me a little help? Any examples in how to use COM > functions would help or if anyone could covert it, that help out alot too. > THANKS ALOT!!! > > > <% > Set JMail = Server.CreateObject("JMail.SMTPMail") > subject = Request("subject") > addressto = Request("to") > mainbody = Request("mainbody") > > JMail.ServerAddress = "mail.rhpa.org" > JMail.Sender = "webmaster@rhpa.org" > strOrderEmailSubject = subject > JMail.Subject = strOrderEmailSubject > > JMail.AddRecipient addressto > JMail.AddRecipient "jason@focusdesigngroup.com" > 'JMail.AddRecipient "jrbryner@southern.edu" > > JMail.Body = mainbody > JMail.Priority = 3 > JMail.AddHeader "Originating-IP", > Request.ServerVariables("REMOTE_ADDR") > JMail.Execute > > %> > > > Jason Bryner > --- > Focus Design > www.focusdesigngroup.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net ================================================================================ = Joe Stump joestump98@yahoo.com http://www.miester.org = ================================================================================ "Real programmers don't comment their code. It was hard to write, it should be hard to understand."

« previous php.general (#25248) next »