| ||||
| Using php your mail server is almost irrelevant It will use whatever the default mail object is. Can be more specific about what you want to do, or post what you already thus far.
__________________ Cota 1, Mods 0....want to go for round 2? |
| ||||
| It's actually a problem my boyfriend has, I know nothing about it. But I will post here what he says. (so sorry if something is confusing... I hardly know where I'm talking about what I post here.) He made a server from his own computer. He has a website on this server and a mail server. The problem is that the website doesn't make contact with the mail server. He downloaded a standard package from firepages. It includes a server appache, bb forum and a php website. The php website is like a template. He wants to change, so i't becomes his website. There is also a register function in this website. This register function should send an email to a person who just registered. But he never receives the mail. He can send emails from his mailserver tough. He can send emails with outlook over the server. But not from the website over the server. His mailserver is on his own computer and it's a QK smpt server. This is what he has untill now: Code: ..\windows\php.ini [mail function] ; For Win32 only. SMTP = mail.bis.com // ; For Win32 only. sendmail_from = admin@bis.com ....\conf.php $SMTP_USER='admin@bis.com'; $SMTP_PASS='************'; $SMTP_HOST='local'; // And is this: SMTP = mail.bis.com also ok? |
| ||||
| appache should have installed the mail object by default. Use this to test the mail object. Copy this into a PHP file, change the email addresses, and run it. See if he gets the email Code: $headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'MyEmail@Domain.com';
$ok = mail('MyEmail@Domain.com','Test' , 'Test message', $headers);
if($ok) {
echo "Mail Object is Good";
} else {
echo "Booooooo";
}
__________________ Cota 1, Mods 0....want to go for round 2? |
| ||||
| Quote:
If you'd rather keep it, try enclosing it in quotes: SMTP = 'mail.bis.com' Though I think, if he's using a local mail server, this would be more appropriateL SMTP = 'localhost' Get him to check his apache config, and also his mail server settings - if he's still struggling, post back what he has here. Regards
__________________ Sean Johnstone Johnboulder Resources Tutorials: CSS: Tabs - Tutorial on creating navigation tabs using CSS PHP: Custom User Authentication - Tutorial on PHP custom user authentication |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Forum Question | skittle | Questions & Feedback | 7 | 12-29-2008 03:26 AM |
| [Question]Create your own software? | Xhris07 | Software Development | 7 | 01-03-2007 09:05 PM |
| XSLT A Question regarding If expressions | logic_earth | Website Programming | 0 | 12-24-2006 06:39 PM |