<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1029498" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1029498</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172654</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;CptAwesome wrote:&lt;/strong&gt; So, if the problem was cramming it all into one function, and that&#039;s what speed mail does. Sounds to me like simply a bias towards ASP.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Well I dident know that existed. I have seen many Jmail examples and odd enough I have never seen that used before. That&#039;s why I was supprised to see it. It is kind of funny though. &lt;/p&gt;
&lt;p&gt;It seems useless if you tink about it. It would be for small amout of (text) data to be sent by e-mail. Which defeats the whole purpose of haveing to send a e-mail dot you think??&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Jun 2005 04:15:27 +0000</pubDate>
 <dc:creator>bja888</dc:creator>
 <guid isPermaLink="false">comment 1172654 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172649</link>
    <description> &lt;p&gt;Well wish I knew what you guys are talking about. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt; Are the codes posted in this forum good PHP form mail scripts? That&#039;s what I&#039;m trying to look for..hehe &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 Jun 2005 02:03:05 +0000</pubDate>
 <dc:creator>EGS</dc:creator>
 <guid isPermaLink="false">comment 1172649 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172582</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;Abhishek Reddy wrote:&lt;/strong&gt; If you think all this is bad, try picking up functional programming (LISPs, etc) after only learning imperative languages (C, Java, etc). &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You&#039;re absolutely right. Speaking as a CS graduate, LISP is from the devil...  &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 08 Jun 2005 11:58:44 +0000</pubDate>
 <dc:creator>timjpriebe</dc:creator>
 <guid isPermaLink="false">comment 1172582 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172577</link>
    <description> &lt;p&gt;I agree with Greg. I face this problem often as I like to learn as many languages (ways of thinking) as I can. And with every new language, there are new challenges.&lt;/p&gt;
&lt;p&gt;What Bryan is taking issue with in this case is a difference between object-oriented programming and plain procedural programming. It can be difficult switching from strong OOP to procedural because it&#039;s not so much the style of programming that&#039;s new but the way you design it and visualise the flow of the program. I get the feeling you&#039;re probably shooting from the hip rather than planning your attack on paper first, so that only amplifies your problem. It&#039;s also difficult to pick up best-practices for the new approach quickly, so that too can reduce the quality of your work.&lt;/p&gt;
&lt;p&gt;Fortunately, PHP (as of v5) -- unlike Java -- doesn&#039;t enforce either OOP or non-OOP discipline on you. You can choose either, even mix them. Whatever suits. Of course, you&#039;d likely have to know how to write your own classes to take advantage of its OOP features. Depending on your situation, maybe &lt;a href=&quot;http://pear.php.net/&quot; class=&quot;bb-url&quot;&gt;PEAR&lt;/a&gt; can help too. (Btw, check out PEAR &lt;a href=&quot;http://pear.php.net/package/Mail&quot; class=&quot;bb-url&quot;&gt;Mail&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;If you think all this is bad, try picking up functional programming (LISPs, etc) after only learning imperative languages (C, Java, etc). &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Wed, 08 Jun 2005 03:36:20 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1172577 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172565</link>
    <description> &lt;p&gt;I think that is natural when you are used to a language, no matter what is. If you know something inside and out, switching to something else can be hard, and will seem more complicated. &lt;/p&gt;
&lt;p&gt;This is especially true when you come up against a feature/function that do the same taks, but are named and used differently. You go from your known language looking for what you know but it is handled differently in another.&lt;/p&gt;
&lt;p&gt;This is why I never caught on to C++ years ago, I knew Visual Basic very well, and I would get frustrated and say screw it and get the job done in VB instead &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Tue, 07 Jun 2005 19:06:54 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1172565 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172557</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: I was just searching Jmail for a list of possable methods and I came across this...&lt;br /&gt;
&lt;a href=&quot;http://dimac.net/Products/w3JMail/V...Speedmailer.htm&quot; class=&quot;bb-url&quot;&gt;http://dimac.net/Products/w3JMail/V...Speedmailer.htm&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;So, if the problem was cramming it all into one function, and that&#039;s what speed mail does. Sounds to me like simply a bias towards ASP.&lt;/p&gt;
 </description>
     <pubDate>Tue, 07 Jun 2005 18:25:42 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1172557 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172548</link>
    <description> &lt;p&gt;The only classes I have ever used/made are where in Java and I dont think that counts bacause all a Java file is, is a class. I need to look into writeing them for asp.&lt;/p&gt;
 </description>
     <pubDate>Tue, 07 Jun 2005 16:22:57 +0000</pubDate>
 <dc:creator>bja888</dc:creator>
 <guid isPermaLink="false">comment 1172548 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172546</link>
    <description> &lt;p&gt;I think this whole php mail think might of been one big waist of time. The host my client has doent allow sending e-mails.&lt;/p&gt;
&lt;p&gt;The example I posted is etreamly simple.&lt;/p&gt;
&lt;p&gt;I was just searching Jmail for a list of possable methods and I came across this...&lt;br /&gt;
&lt;a href=&quot;http://dimac.net/Products/w3JMail/Version43/Examples/Speedmailer.htm&quot; class=&quot;bb-url&quot;&gt;http://dimac.net/Products/w3JMail/Version43/Examples/Speedmailer.htm&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 07 Jun 2005 16:20:39 +0000</pubDate>
 <dc:creator>bja888</dc:creator>
 <guid isPermaLink="false">comment 1172546 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172545</link>
    <description> &lt;p&gt;Off the top of my head, and after finding an example of ASP&#039;s way, I made the following you can try:&lt;/p&gt;
&lt;p&gt;  &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;? // saved as MailMessage.class.inc&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; class MailMessage&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; 	var $toField;&lt;br /&gt;&amp;nbsp; 	var $fromField;&lt;br /&gt;&amp;nbsp; 	var $subjectField;&lt;br /&gt;&amp;nbsp; 	var $bodyField;&lt;br /&gt;&amp;nbsp; 	var $mailerName;&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; 	function MailMessage($mailerName=&amp;quot;phpMailClass 2005.06.07&amp;quot;)&lt;br /&gt;&amp;nbsp; 	{&lt;br /&gt;&amp;nbsp; 		$this-&amp;gt;mailerName = $mailerName;&lt;br /&gt;&amp;nbsp; 	}&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; 	function setFrom($fromName)&lt;br /&gt;&amp;nbsp; 	{&lt;br /&gt;&amp;nbsp; 		$this-&amp;gt;fromField = $fromName;&lt;br /&gt;&amp;nbsp; 	}&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; 	function setTo($toName)&lt;br /&gt;&amp;nbsp; 	{&lt;br /&gt;&amp;nbsp; 		$this-&amp;gt;toField = $toName;&lt;br /&gt;&amp;nbsp; 	}&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; 	function setSubject($subject)&lt;br /&gt;&amp;nbsp; 	{&lt;br /&gt;&amp;nbsp; 		$this-&amp;gt;subjectField = $subject;&lt;br /&gt;&amp;nbsp; 	}&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; 	function setBody($body)&lt;br /&gt;&amp;nbsp; 	{&lt;br /&gt;&amp;nbsp; 		$this-&amp;gt;bodyField = $body;&lt;br /&gt;&amp;nbsp; 	}&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 	function send()&lt;br /&gt;&amp;nbsp; 	{&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; 		// Unless you are sure about its use, add code here to check &lt;br /&gt;&amp;nbsp; 		// to make sure the variables have been set and are valid&lt;br /&gt;&amp;nbsp; 		// (ie. the to/from field looks like e-mail addresses)&lt;br /&gt;&amp;nbsp; 		&lt;br /&gt;&amp;nbsp; 		$headers&amp;nbsp; = &amp;quot;From: &amp;quot; . $this-&amp;gt;fromField . &amp;quot;\r\n&amp;quot;;&lt;br /&gt; 		$headers .= &amp;quot;Reply-To: &amp;quot; . $this-&amp;gt;fromField . &amp;quot;\r\n&amp;quot;;&lt;br /&gt; 		$headers .= &amp;quot;X-Mailer: &amp;quot; . $this-&amp;gt;mailerName;&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt; 		return $mail($this-&amp;gt;toField, $$this-&amp;gt;subjectField, $this-&amp;gt;bodyField, $headers);&lt;br /&gt;&amp;nbsp; 	}&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; ?&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
  You can then use it similar to what you are used to:&lt;br /&gt;
  &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;?&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp; 	require_once (&amp;#039;MailMessage.class.inc&amp;#039;);&lt;br /&gt; &lt;br /&gt;&amp;nbsp; 	$Mail_Obj = new MailMessage;&lt;br /&gt;&amp;nbsp; 	// To specify your own value for the X-Mailer field&lt;br /&gt;&amp;nbsp; 	// in the message use the line below instead&lt;br /&gt;&amp;nbsp; 	// $Mail_Obj = new MailMessage(&amp;quot;My Mailer&amp;quot;);&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; 	$Mail_Obj-&amp;gt;setFrom(&amp;quot;this@that.com&amp;quot;);&lt;br /&gt;&amp;nbsp; 	$Mail_Obj-&amp;gt;setTo(&amp;quot;this@that.com&amp;quot;);&lt;br /&gt;&amp;nbsp; 	$Mail_Obj-&amp;gt;setSubject(&amp;quot;you get that thing I sent you?&amp;quot;);&lt;br /&gt;&amp;nbsp; 	$Mail_Obj-&amp;gt;setBody(&amp;quot;Depite the subject sounding like a spam subject, this isnt!&amp;quot;);&lt;br /&gt;&amp;nbsp; 	&lt;br /&gt;&amp;nbsp; 	$Mail_Obj-&amp;gt;send();&lt;br /&gt;&amp;nbsp; ?&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt; As mentioned in the class, there is no error checking in the thing, for production use, should either have error checking in the function or somewhere.&lt;/p&gt;
&lt;p&gt; IMO, classes are not always the best answer for simple things. (my boss keeps saying &quot;won&#039;t it be easier to put it all in a class, everything should be in a class nowadays&quot;.&lt;/p&gt;
&lt;p&gt;  -Greg&lt;/p&gt;
 </description>
     <pubDate>Tue, 07 Jun 2005 16:20:09 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1172545 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/email-php#comment-1172515</link>
    <description> &lt;p&gt;Greg K&#039;s example doesn&#039;t exactly &#039;cram everything in one function&#039;, and seems like it offers a little more flexibility than the ASP object model. If you really wanted to though, you could write a php mail class that mimicked the ASP one exactly.&lt;/p&gt;
 </description>
     <pubDate>Tue, 07 Jun 2005 08:15:18 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1172515 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
