| View previous topic :: View next topic |
| Author |
Message |
kinggeorge3287
Joined: 10 May 2009 Posts: 6
|
Posted: Sun May 10, 2009 3:41 am Post subject: Pear and Pear MAIL installed now what do i do? |
|
|
Hey there
I have a home server running. I am using wamp server. MY ISP (verizon) blocks port 25. Becaus of this i cant sent emails out from my php scripts( like feedbak forum). so i desided to get "Mail Relay Outbound Service" from www.dnsexit.com. I configured php.ini
| Code: | [mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = you@yourdomain |
TO
| Code: | [mail function]
; For Win32 only.
SMTP = relay.dnsexit.com
smtp_port = 26
; For Win32 only.
sendmail_from = me@yourdomain |
but the problem is dnsexit require that i enter username and password
so i installed pear and pear mail.
Now what text or script do i edit so i can enter the username and password.
pleas help
thank you |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Sun May 10, 2009 7:32 pm Post subject: |
|
|
| You need to modify the script that calls mail() currently. This line of code needs to be replaced by PEAR::Mail's calls. Examples can be found in the PEAR manual. |
|
| Back to top |
|
 |
kinggeorge3287
Joined: 10 May 2009 Posts: 6
|
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
|
| Back to top |
|
 |
kinggeorge3287
Joined: 10 May 2009 Posts: 6
|
Posted: Mon May 11, 2009 11:51 pm Post subject: i am so lost |
|
|
Hey there,
thank you for the fast replay.
my problem is i cant send mail from my PHP SCRITS. (which uses php.ini) because my ISP block port 25. so got dnsexit to mail relay. but in order for this to work, i need to enter username and password (i cant enter this information is php.ini). From searching on the web i came to understand that i can use PEAR ( i think). where in pear i can enter the username and password, port# etc..... .
my question is where is factory() ? is it in PEAR folder which is in php folder or is this something that i need to create?
Please help
thank you |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Tue May 12, 2009 11:02 am Post subject: |
|
|
Did you have a look at the examples? Especially the one that you've provided yourself?
You can find both the factory() call there, and also examples for using the Mail package with SMTP authentification. Simply copy one of the examples, replace the username and password etc., and it should work. |
|
| Back to top |
|
 |
kinggeorge3287
Joined: 10 May 2009 Posts: 6
|
Posted: Tue May 12, 2009 1:51 pm Post subject: where do i copy the example to? |
|
|
| mark wrote: | Did you have a look at the examples? Especially the one that you've provided yourself?
You can find both the factory() call there, and also examples for using the Mail package with SMTP authentification. Simply copy one of the examples, replace the username and password etc., and it should work. |
hey,
where do i copy the example to?
see the problem that am having is " i dont know what file to edit in PEAR" Is it the "mail.php" file? If it is, there are two of these files in PEAR folder(one inside the PEAR folder and one in a sub-folder named MAIL).
Thank you for trying to help me |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Tue May 12, 2009 1:55 pm Post subject: |
|
|
You need to edit the script that you're working with, i.e. the script that calls mail() currently. This call isn't needed anymore, instead you'll now need the code that is provided in the examples.
PEAR files or classes don't need to be modified. |
|
| Back to top |
|
 |
kinggeorge3287
Joined: 10 May 2009 Posts: 6
|
Posted: Sat May 16, 2009 10:59 pm Post subject: php-login-script pleas help |
|
|
| mark wrote: | You need to edit the script that you're working with, i.e. the script that calls mail() currently. This call isn't needed anymore, instead you'll now need the code that is provided in the examples.
PEAR files or classes don't need to be modified. |
hey,
i was trying to use pear with a php login script. but i dont know where to edit. http://php-login-script.com/ have you seen or used this script? can you please tell be where to edit, it will be very good of you.
thank you for the replay
thankyou |
|
| Back to top |
|
 |
kinggeorge3287
Joined: 10 May 2009 Posts: 6
|
Posted: Mon May 18, 2009 7:17 pm Post subject: help |
|
|
please help.  |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Wed May 20, 2009 3:57 pm Post subject: |
|
|
| If you have a specific question / problem, please ask with more details. I've already tried to give you the needed hints to find the lines of code that needs to be replaced by something like what you can see in the mentioned examples. |
|
| Back to top |
|
 |
|