Click to See Complete Forum and Search --> : Using mailsend


DaveinLondon
03-17-2005, 11:57 PM
Hi,
I have set up my site on bluehost.com who seem to be
fairly good. In several of my scripts I use the standard expression

$mailsend=mail("$N_email","$subj","$emess","$ehead");

to send email out. Before I signed up, I asked specifically if the servers send out mail using mailsend, and I was told that yes they did.

I have noticed that they have a mailsend path
of /usr/sbin/sendmail - how do I direct my php
program to use that path ?

My programs reside in a directory something like
mydomain/www/

Any help much appreciated.

Thanks .
David.

amazing_andr3
03-18-2005, 05:17 PM
I think this is something which is configured in the server's configuration files, I don't see how you could do that from your PHP files.

shortiee4
03-20-2005, 02:45 PM
if you're talking about php then you do not need that path, that is for perl. usually if there is an smtp server it should work without you doing anything else. if you are on a windows box, try going to start>run> type cmd in the box, when you get to the black screen type "telnet yourdomain.com 25" and it should say something like "welcome to mail send system" or something along those lines.

DaveinLondon
03-20-2005, 11:56 PM
I got it sorted out.
I took another look at the mail() command at php.net and re-wrote my script.