Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

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.

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, 10:47 AM   #2
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,295

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335

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 with the smtp server you want to use.
Old 09-26-2009, 01:36 AM   #3
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

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.


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-16-2008 12:45 AM
mail-function php sharp81 Linux - Software 3 02-17-2006 10:45 AM
HELP !!! php mail function akamaru607 Programming 22 08-26-2005 03:44 PM
PHP - mail function saravanan1979 Programming 2 08-06-2003 02:46 AM
Using the PHP mail() Function !?!? Hdata Programming 0 06-22-2003 07:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:19 AM.

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