LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Custom mailing function in PHP. Dont want to use built in mail(). (https://www.linuxquestions.org/questions/linux-newbie-8/custom-mailing-function-in-php-dont-want-to-use-built-in-mail-757706/)

linuxlover.chaitanya 09-25-2009 07:36 AM

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.

Guttorm 09-25-2009 09:47 AM

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

linuxlover.chaitanya 09-26-2009 12:36 AM

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.


All times are GMT -5. The time now is 04:57 AM.