<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013064" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013064</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075944</link>
    <description> &lt;p&gt;Web-based e-mail is usually either run locally or through IMAP.&lt;/p&gt;
&lt;p&gt;On Mail::Mailer, try to find an example of how to use it.  I think your precedence is screwed up when you try to make a new Mail::Mailer object.&lt;/p&gt;
 </description>
     <pubDate>Fri, 22 Dec 2000 03:26:17 +0000</pubDate>
 <dc:creator>roBofh</dc:creator>
 <guid isPermaLink="false">comment 1075944 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075931</link>
    <description> &lt;p&gt;is smtp access what u need to run a web based email site?&lt;/p&gt;
 </description>
     <pubDate>Thu, 21 Dec 2000 20:47:58 +0000</pubDate>
 <dc:creator>fairhousing</dc:creator>
 <guid isPermaLink="false">comment 1075931 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075909</link>
    <description> &lt;p&gt;well, it&#039;s not running yet...&lt;br /&gt;
what i have now:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;%headers = ({	From =&amp;gt; $list{&amp;#039;frommail&amp;#039;},&lt;br /&gt;		To&amp;nbsp;&amp;nbsp; =&amp;gt; $list{&amp;#039;to&amp;#039;},&lt;br /&gt;		Subject =&amp;gt; &amp;#039;Subject&amp;#039; });&lt;br /&gt;&lt;br /&gt;eval {&lt;br /&gt;&amp;nbsp;&amp;nbsp; use Mail::Mailer;&lt;br /&gt;&amp;nbsp;&amp;nbsp; $mailer = new Mail::Mailer &amp;#039;smtp&amp;#039;, &amp;#039;SMTP.MYSMTP.COM&amp;#039;;&lt;br /&gt;&amp;nbsp;&amp;nbsp; $mailer-&amp;gt;open(\%headers);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print $mailer $mailbody;&lt;br /&gt;&amp;nbsp;&amp;nbsp; $mailer-&amp;gt;close;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;if ($@) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;could not send mail: $@&amp;quot;;&lt;br /&gt;} else {&lt;br /&gt;&amp;nbsp;&amp;nbsp; print &amp;quot;mail sent&amp;quot;;&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
i always get an error:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;could not send mail: No mailer type specified (and no default available), thus can not find executable program. at [scriptpath] line 102&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;it has something to do with the smtp-function i suppose? but what&#039;s wrong with it? the syntax i got from &lt;a href=&quot;http://www.perldoc.com&quot; class=&quot;bb-url&quot;&gt;perldoc&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 21 Dec 2000 15:02:55 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1075909 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075869</link>
    <description> &lt;p&gt;i see...&lt;br /&gt;
well, i looked in my cookbook for mail::mailer, and now it seems i understood what&#039;s going on... probably i&#039;ll be back again with more mail-questions, i don&#039;t hope so... &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, 20 Dec 2000 06:58:53 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1075869 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075849</link>
    <description> &lt;p&gt;Yes, you have a SMTP host, but you do not understand Perl&#039;s open() function.  Unless you open a pipe or are printing to some special device, you cannot simply open() a hostname.  To connect to your SMTP host, you&#039;d need to open up a socket to it, unless your SMTP host is the localhost, in which case you&#039;d probably need to open a pipe to sendmail, as Rob P. and japhy showed.  Doing open(MAIL, &quot;smtp.domain.com&quot;) simply opens a &lt;strong&gt;file&lt;/strong&gt; named &#039;smtp.domain.com&#039;, not a connection to that hostname.&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Dec 2000 21:13:04 +0000</pubDate>
 <dc:creator>roBofh</dc:creator>
 <guid isPermaLink="false">comment 1075849 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Sending email from Perl is so common, that...</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075838</link>
    <description> &lt;p&gt;There are Perl modules to help you do the job.  I&#039;d look at &lt;strong&gt;Mail::Mailer&lt;/strong&gt; if I were you.&lt;/p&gt;
&lt;p&gt;By the way, when sending email content (like, to &lt;em&gt;sendmail&lt;/em&gt;), there has to be a blank line between the headers and the body of the message.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;open MAIL, &amp;quot;| /usr/lib/sendmail -t&amp;quot; or&lt;br /&gt;&amp;nbsp; die &amp;quot;can&amp;#039;t open sendmail: $!&amp;quot;;&lt;br /&gt;print MAIL &amp;lt;&amp;lt; &amp;quot;EOM&amp;quot;;&lt;br /&gt;To: $to&lt;br /&gt;From: $from&lt;br /&gt;Subject: $subject&lt;br /&gt;&lt;br /&gt;Body of message&lt;br /&gt;EOM&lt;br /&gt;close MAIL or&lt;br /&gt;&amp;nbsp; die &amp;quot;can&amp;#039;t send mail: $!&amp;quot;;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Dec 2000 15:19:48 +0000</pubDate>
 <dc:creator>japhy</dc:creator>
 <guid isPermaLink="false">comment 1075838 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075833</link>
    <description> &lt;p&gt;yes, but isn&#039;t this only for sendmail? i have smtp.mydomain.com instead of /usr/lib/sendmail ...?&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Dec 2000 12:49:05 +0000</pubDate>
 <dc:creator>merlin</dc:creator>
 <guid isPermaLink="false">comment 1075833 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/smtpquestion#comment-1075832</link>
    <description> &lt;p&gt;This is the code that I use, and it works fine:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#!/usr/local/bin/perl&lt;br /&gt;$mail_prog = &amp;#039;/usr/lib/sendmail&amp;#039; ;&lt;br /&gt;open (MAIL, &amp;quot;|$mail_prog -t&amp;quot;);&lt;br /&gt;print MAIL &amp;quot;To: $theiremail\n&amp;quot;;&lt;br /&gt;print MAIL &amp;quot;Reply-to: $youremail\n&amp;quot;;&lt;br /&gt;print MAIL &amp;quot;From: $youremail\n&amp;quot;;&lt;br /&gt;print MAIL &amp;quot;Subject: $subject\n&amp;quot;;&lt;br /&gt;print MAIL &amp;quot;$body\n&amp;quot;;&lt;br /&gt;close (MAIL);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Tue, 19 Dec 2000 12:41:59 +0000</pubDate>
 <dc:creator>Rob Pengelly</dc:creator>
 <guid isPermaLink="false">comment 1075832 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
