Converting ASP to PHP
| From: | Jason | Date: | Tue, 14 Nov 2000 21:36:41 +0000 |
| Subject: | Converting ASP to PHP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-25244@lists.php.net to get a copy of this message | ||
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