Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1833 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

php email script problem.

Thread title: php email script problem.
Closed Thread    
    Thread tools Search this thread Display Modes  
10-05-2006, 02:15 PM
#1
Stealthstorm is offline Stealthstorm
Status: Member
Join date: Aug 2005
Location: Netherlands
Expertise:
Software:
 
Posts: 226
iTrader: 0 / 0%
 

Stealthstorm is on a distinguished road

  Old  php email script problem.

Hello,

I'm using a php email script, do these scripts use a port to send the email (to outlook) and what port is that.

Because there is an adress of someone, if I put that adress in the php script to tell where the input of the php form should be mailed to..it won't arrive.

It does work with another mail adress.

Thanks in advance.

10-05-2006, 06:35 PM
#2
localhost is offline localhost
localhost's Avatar
Status: Dediport Hosting
Join date: Jul 2006
Location: Berkshire
Expertise: programming, business
Software: Dreamweaver
 
Posts: 1,316
iTrader: 17 / 100%
 

localhost is on a distinguished road

  Old

I dont understnad what your saying, Correct me if i am wrong.

10-06-2006, 11:40 AM
#3
Stealthstorm is offline Stealthstorm
Status: Member
Join date: Aug 2005
Location: Netherlands
Expertise:
Software:
 
Posts: 226
iTrader: 0 / 0%
 

Stealthstorm is on a distinguished road

  Old

Well, it's clear enough I think.

10-06-2006, 12:22 PM
#4
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

you have to use the mail() function to send the email:

mail($address, $subject, $message);

10-06-2006, 05:16 PM
#5
Joe is offline Joe
Status: Custom User Title
Join date: Apr 2005
Location:
Expertise:
Software:
 
Posts: 2,297
iTrader: 0 / 0%
 

Joe is on a distinguished road

  Old

PHP doesn't use a port as far is I know to send email.

10-14-2006, 05:18 PM
#6
RaZoR^ is offline RaZoR^
RaZoR^'s Avatar
Status: Member
Join date: Feb 2006
Location:
Expertise:
Software:
 
Posts: 191
iTrader: 1 / 100%
 

RaZoR^ is on a distinguished road

  Old

Any data transferred between two computers (a server being a computer...), must be transferred using a port and a protocol.

If you are using SMTP then the default port should be 25. Bear in mind that you can change ports used on a computer system so your host may have changed this. You may wish to check with them. That is the outgoing port, where data is sent out from the server.

The incoming port depends on the computer the person recieving the email on is using. If they have port forwarding setup it could be anything. But you can't really change this yourself if they are using Hotmail, Gmail, Yahoo! Mail etc as these are not on your server. If people are checking email actually on your server itself then you can choose which port your clients can use. By default, this should be 587.

The PHP mail(); function, believe it or not, uses SMTP. So again, you're looking at double-checking with your host to see if anything's been changed. By as said, the default is 25.

As a reference use: http://php.net/mail.

10-14-2006, 07:58 PM
#7
Marky is offline Marky
Status: Ready for Action
Join date: Aug 2005
Location: UK
Expertise:
Software:
 
Posts: 2,775
iTrader: 14 / 100%
 

Marky is on a distinguished road

  Old

Originally Posted by RaZoR^
Any data transferred between two computers (a server being a computer...), must be transferred using a port and a protocol.

If you are using SMTP then the default port should be 25. Bear in mind that you can change ports used on a computer system so your host may have changed this. You may wish to check with them. That is the outgoing port, where data is sent out from the server.

The incoming port depends on the computer the person recieving the email on is using. If they have port forwarding setup it could be anything. But you can't really change this yourself if they are using Hotmail, Gmail, Yahoo! Mail etc as these are not on your server. If people are checking email actually on your server itself then you can choose which port your clients can use. By default, this should be 587.

The PHP mail(); function, believe it or not, uses SMTP. So again, you're looking at double-checking with your host to see if anything's been changed. By as said, the default is 25.

As a reference use: http://php.net/mail.
That sounds about right to me...
Although writing your own would be better, no need really to know anything about the ports etc.
If you want me to make you a small email form that emails the message to a particular email address, just ask

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed