mailserver question - ny-dev | Design & Development Forums
Go Back   ny-dev | Design & Development Forums > Site Management > Database & Server

Notices


mailserver question

Database & Server


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 12-22-2006, 12:08 PM
nancy_kelpie's Avatar
nancy_kelpie has no status.
Member
Follower
 
Join Date: Dec 2006
Posts: 37
nancy_kelpie will become famous soon enough
Default mailserver question

Does someone how I can attach a mail server to a php site?
For example to send a new member who just registered a mail with "welcome this are your username and password".

I use php dev 4.2.3 and the mailserver is a qk mail server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
  #2 (permalink)  
Old 12-22-2006, 01:13 PM
Cota's Avatar
Cota has no status.
Senior Member
Addict
 
Join Date: Mar 2006
Age: 31
Posts: 450
Cota is a glorious beacon of lightCota is a glorious beacon of light
Default Re: mailserver question

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
  #3 (permalink)  
Old 12-23-2006, 12:34 PM
nancy_kelpie's Avatar
nancy_kelpie has no status.
Member
Follower
 
Join Date: Dec 2006
Posts: 37
nancy_kelpie will become famous soon enough
Default Re: mailserver question

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'; //
Is local ok? or should he replace it with his ip server?

And is this: SMTP = mail.bis.com also ok?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
  #4 (permalink)  
Old 12-23-2006, 06:01 PM
Cota's Avatar
Cota has no status.
Senior Member
Addict
 
Join Date: Mar 2006
Age: 31
Posts: 450
Cota is a glorious beacon of lightCota is a glorious beacon of light
Default Re: mailserver question

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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
  #5 (permalink)  
Old 12-27-2006, 01:10 PM
johnboulder's Avatar
johnboulder has no status.
Administrator
Aficionado
 
Join Date: Mar 2003
Posts: 103
johnboulder is just really nicejohnboulder is just really nice
Send a message via MSN to johnboulder Send a message via Yahoo to johnboulder Send a message via Skype™ to johnboulder
Default Re: mailserver question

Quote:
Originally Posted by nancy_kelpie View Post
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'; //
Is local ok? or should he replace it with his ip server?

And is this: SMTP = mail.bis.com also ok?
$SMTP_HOST should be 'mail.bis.com' - if he's using a local host as a mail server, then why specify one host name in one place, and another later - PHP is good at getting what it needs - but I would cosider commenting out the 'win32 only' section.

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Google Bookmark this Post!Blink this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 08:39 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
347media

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24