LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-25-2009, 07:36 AM   #1
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
Custom mailing function in PHP. Dont want to use built in mail().


Hello all,

Please consider me an idiot when it comes to programming in general and not just PHP. Basically a system administrator.
We have got out website for our organization hosted outside from third party hosting.
There is a need to design a page for some need, I do not know what it is for, but it will take input from text box for users email address.
I need to send email to this email address.

Now I know that there is mail() function built in PHP that will send mails. But it will send through SMTP server configured in php.ini.
I do not want to use this and want to pass my smtp server and can not configure the server as well as hosting is from outside.

Have got this from google but as an idiot, this difficult to understand.
http://www.webmasterworld.com/forum40/1178.htm

Any help will be appreciated.

I do not want to learn or read a lot of material but a bit of reading is fine.
 
Old 09-25-2009, 09:47 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,148

Rep: Reputation: 236Reputation: 236Reputation: 236
Hi

You can use Pear instead. You can then specify if you want it to use the system's mail, some other smtp server or to send directly. Here is a link. Look at the example sending a Japanese mail - change smtp.server.com with the smtp server you want to use.

http://pear.php.net/manual/en/packag....mail.send.php
 
Old 09-26-2009, 12:36 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Original Poster
Rep: Reputation: Disabled
Thanks for the information. Have read the link. Did not understand it completely but I still think it should do the trick. Not marking it as solved yet though so that I can just come back for any issues further.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Mail function phantom_cyph Programming 6 05-15-2008 11:45 PM
mail-function php sharp81 Linux - Software 3 02-17-2006 09:45 AM
HELP !!! php mail function akamaru607 Programming 22 08-26-2005 02:44 PM
PHP - mail function saravanan1979 Programming 2 08-06-2003 01:46 AM
Using the PHP mail() Function !?!? Hdata Programming 0 06-22-2003 06:02 AM


All times are GMT -5. The time now is 09:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration