[techtalk] cgi - mail question

coder coderman at mindspring.com
Thu Jun 29 09:50:44 EST 2000


"Shelly L. Hokanson" wrote:
> 
> <<cut>>
>
> i'm using the net-lib package (with active-perl for windoze) for a simple
> web based emailer via SMTP. wondering if anyone has any experience using
> this module with any of the major ISP's, or if i must be running my own mail
> server as well in order for it to work.

You dont need to run your own server, however, whatever SMTP server your
ISP is providing, you should use.

For example, at home if I were using Mindspring for network access, my
mail server would be 'mail.mindspring.com'.

If I were on ADSL, it might be 'mail.swbell.net'.  and so on.

If your ISP SMTP server is configured in the script, but your sending
mail from your school network, you will have problems.  The ISP SMTP
server will refuse to forward your mail, since, as far as it knows you
are not allowed (since you are on your school network).  

One way to check is to make sure the SMTP host your using at school
'mail.somecollege.edu' is the same as in the script, and try that.

> 
> the cgi script basically takes form input from a user, then uses the smtp
> net package w/ datasend & dataend to send the form input out via smtp. short
> and sweet. the script fails when attempting to call the function 'mail'
> that's built into this module. according to the documentation, a value
> returned as undefined is the equivalent of a failure, which is what happens
> to me upon calling the mail function.
> 

I beleive this is what happens when a forward is refused.

> thanks all -
> 
> shelly
> 


-- 
.oO()Oo.oO()Oo.oO()Oo.oO()Oo.oO()Oo.oO()Oo.oO()Oo.oO()Oo.oO()Oo.
    coderman at mindspring.com | http://cubicmetercrystal.com/
         "You are the product of a mutational union 
           of ~640Mbytes of genetic information."





More information about the Techtalk mailing list