[swx] simple mail w/ swx

Aral Balkan aral at aralbalkan.com
Thu Dec 20 07:23:28 PST 2007


Hi Corban,

The only thing to keep in mind is to have security checks in place so that
your server doesn't get used as a spam hub. If you don't mind sharing the
code, we can all take a look at it and see if there are any security issues
to deal with.

Take care,
Aral

On Dec 20, 2007 3:19 PM, Corban Baxter <corbanb at gmail.com> wrote:

> i got a good friend of mine to help me last night create one if anyone
> else is interested I can pass it along.
>
>
> On Dec 19, 2007 7:56 PM, Stefan Dosch <sd at liquidlounge.de > wrote:
>
> > Email Validation:
> >
> > returns true if email adress is valid or false if email adress is
> > invalid.
> > This not only checks for correct syntax, but also tests if the domain
> > is registered, so somepeep at jasdklaklsdfsdfsd.com would return false
> > although syntax is correct, but the domain would not respond to
> > getmxrr().
> >
> >        function validate_email($email)
> >        {
> >           $regexp =
> > "^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]
> > +)*(\.[a-z]{2,4})$";
> >           $valid = false;
> >           if (eregi($regexp, $email))
> >           {
> >                  list($username,$domaintld) = split("@",$email);
> >                  if (getmxrr($domaintld,$mxrecords))
> >                         $valid = true;
> >           } else {
> >                  $valid = false;
> >           }
> >           return $valid;
> >        }
> >
> > htht
> > Stefan
> >
> >
> > --
> > Liquidlounge
> > Stefan Dosch
> > Perlschneiderstrasse 34
> > 81241 München
> >
> > tel: +49 89 55274994
> > fax: +49 89 55274993
> > mobil: +49 160 90554762
> > mailto: sd at liquidlounge.de
> > http://www.liquidlounge.de
> >
> >
> >
> > Am 19.12.2007 um 20:57 schrieb Corban Baxter:
> >
> > > Hey guys has anyone created a simple send email service for SWX? I'm
> > > no PHP programmer and I was wanting to use SWX for my email forms.
> > > Just sending like first name, last name, email, phone, comments,
> > > etc. I really want to use it to like return errors of bad emails or
> > > something. Does anyone have a service like this they might share
> > > with me?!?! Please! ;)
> > >
> > > --
> > > -cb _______________________________________________
> > > swx mailing list
> > > swx at osflash.org
> > > http://osflash.org/mailman/listinfo/swx_osflash.org
> >
> >
> > _______________________________________________
> > swx mailing list
> > swx at osflash.org
> > http://osflash.org/mailman/listinfo/swx_osflash.org
> >
>
>
>
> --
> Corban Baxter
> http://www.projectx4.com
>
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20071220/909e1dde/attachment-0001.html 


More information about the swx mailing list