Sendmail on OSX through Rev

Andre Garzia andre at andregarzia.com
Tue Aug 14 18:15:54 EDT 2007


Richard,
this snippet below:


    put "/var/qmail/bin/sendmail -t" into mprocess

    open process mprocess for write

    write "From:" && pFrom & crlf to process mprocess

    write "To:" &&   pTo  &  crlf to process mprocess

    write "Subject:" &&  pSubject  &  crlf & crlf to process mprocess

    write   pBody &  crlf to process mprocess

    close process mprocess

    wait until mprocess is not among the lines of the openProcesses

    return the result

    break

you need to fill the correct path to your sendmail installation, the pFrom,
pTo, pSubject and pBody variables. if you want attachments or other fancy
mime stuff, use Shao Sean email library to generate your email.

hope this help.
andre
On 8/14/07, Richard Miller <wow at together.net> wrote:
>
> Thanks, Sarah. A bit too complicated for me to get into though. I'll
> stick with SMTP relays.
> Richard
>
>
> On Aug 13, 2007, at 5:35 PM, Sarah Reichelt wrote:
>
> > On 8/14/07, Richard Miller <wow at together.net> wrote:
> >> We are using a dedicated Mac Mini as a server through an ISP. We've
> >> asked them for a way to send emails from the Mini so we can avoid
> >> using SMTP relay. This is the response they sent back. I'm hoping
> >> someone here can tell us how to implement this through Rev.
> >>
> >> "To generate emails from the Mini, you just need to call /usr/sbin/
> >> sendmail or /usr/sbin/postfix withthe appropriate arguments.  Turning
> >> on postfix as an SMTP server will only affect the Mini's ability to
> >> receive email.
> >
> > I too have a dedicated Mac Mini running as a server, but I do use
> > Postfix. People on the network set the Mini's IP address (or
> > Rendezvous name) as their SMTP server and all emails get sent there
> > first. If the emails match the domain name, then they get routed
> > locally, otherwise they get relayed to an external SMTP server. For
> > setting up Postfix &/or fetchmail, I highly recommend MailServe
> > <http://cutedgesystems.com/software/MailServe/>. It gives you a
> > graphical interface to all the setup stuff. The author, Bernard Teo,
> > was extremely helpful when I had some configuration problems.
> >
> > However if you do not want to use SMTP relay, then as your ISP says,
> > you can use sendmail. I have a CGI script that does this, and I can
> > send it to you if that would help. However it seems to me that the
> > complication would be in receiving the mails from the rest of the
> > network. If you set up Postfix's SMTP server, it handles the
> > connections from other email clients and passes the emails on as
> > required. If you want to send all mail on using sendmail, I would
> > assume that you are going to have to write your own mail server to
> > talk to all the mail clients. There may already be a command line
> > program for doing this, but I haven't encountered it yet.
> >
> > Cheers,
> > Sarah
> > _______________________________________________
> > use-revolution mailing list
> > use-revolution at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list