On April 27, 2004 08:56 pm, bogi wrote:
> Hi Nick.
> you can tell php where sendmail is. As a matter of fact it does not even
> needs to be (sendmail) you could use ANY smtp server. Just tell php, using
> php.ini where the binary or the link to the binary is. 

Yup did that...

> Because you are (in 
> this case) not a qualified (MX) for your domain. You can not (emit) email
> from your box, and hope anyone will accept it. So you need to configure
> your smtp server to relay your locally generated e-mail (using php in this
> case) to your isp's mail server. 

Ok, have to do some reading...probably try qmail. 

> Alternatively, you may want to go ahead 
> and tell php, that the mail server (sendmail) is actually the URL of your
> isp's mail server, and let php send the mail directly to that one. 

if I do sendmail = "shawmail.cg.shawcable.net" in php.ini it says command not 
found in the apache log.

> Now you 
> also need to make sure that the necessary ports are open on your firewall,
> and traffic will be able to pass through the firewall.

outbound traffic shouldnt be an issue.

> Cheers
> Szemir
>
> On April 27, 2004 08:13, Nick W wrote:
> > I'm having problems with the mail() function in PHP. I don't think its my
> > code causing the issue. I tried running it and it quickly returned a
> > failure. Then I RTFM and realised I needed sendmail installed. Thats
> > where my fun began. Sendmail was blocked (we're talking emerge here) by
> > the virtual MTA package. So I killed that from the sendmail ebuild rather
> > than unmerging ssmtp. Got sendmail installed, and put the path in php.ini
> > (with the reccomended switches), then restarted apache2.
> >
> > Now instead of returning an immediate failure it sits there for like 20
> > seconds then fails but the mail() function never says why, just 1 or 0.
> > Anyone with insight? Im a sendmail n00b in every sense of the term.
> >
> > Thanks.
>
> _______________________________________________
> clug-talk mailing list
> [EMAIL PROTECTED]
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca

-- 
Nick W ([EMAIL PROTECTED])
Registered Linux User #324288 (http://counter.li.org)
MSN Messenger: [EMAIL PROTECTED]
Yahoo: foolish_gambit
ICQ: 303276221

_______________________________________________
clug-talk mailing list
[EMAIL PROTECTED]
http://clug.ca/mailman/listinfo/clug-talk_clug.ca

Reply via email to