Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Installing a SMTP for mail() in PHP
Closed Thread
Old 03-13-2005, 01:19 PM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 3

anandgagrawal

Question Installing a SMTP for mail() in PHP

Hello
Please help me out here
i have a project and need to create an automated email system that mails a user form to a predefined email address

I intend to use the mail() function of PHP for doing this but however encountered some problems in the SMTP installation...
So please tell me if i can make use of www.Hotmail.com or any other such common mail providers ..
If not then which one
Regards
Anand
anandgagrawal is offline  
Old 03-13-2005, 01:49 PM   #2 (permalink)
 
Super Techie

Join Date: Mar 2005

Posts: 259

C.Ingram

Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

You will need to use an SMTP server that will let you relay. You will need to ask your web hosting provider or web server admininstrator for information. You cannot use Hotmail, etc... unless you are sending e-mail to one of their addresses directly.
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline  
Old 03-14-2005, 09:39 AM   #3 (permalink)
 
Newb Techie

Join Date: Mar 2005

Posts: 3

anandgagrawal

Default

Hmm...so what u are sayiin is that for experimental purposes i can use hotmail wherein i can make the sender and reciever a hotmail account.... and these changes i would have to make in the php.ini file right?? and if so then all i have to do is type the URL in the SMTP statement in the php.ini file??
Thanx a lot....help me out more if u can
anandgagrawal is offline  
Old 03-14-2005, 12:53 PM   #4 (permalink)
 
Super Techie

Join Date: Mar 2005

Posts: 259

C.Ingram

Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

Quote:
Originally posted by anandgagrawal
Hmm...so what u are sayiin is that for experimental purposes i can use hotmail wherein i can make the sender and reciever a hotmail account.... and these changes i would have to make in the php.ini file right?? and if so then all i have to do is type the URL in the SMTP statement in the php.ini file??
Thanx a lot....help me out more if u can
Not quite. You need to make the destination a Hotmail address. You do this from the script. You can set the SMTP host in php.ini or using ini_set() (or at least you should be able to).
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline  
 
Closed Thread

Thread Tools
Display Modes

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