Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

The mail() function mal()fuctions.

the mail() function

Moderators: macek, egami, gesf

Do you think Andy is a newbie?

of course!
2
100%
maybe baby
0
No votes
no way man!
0
No votes
 
Total votes : 2

The mail() function mal()fuctions.

Postby AndyCS » Sat Nov 09, 2002 3:21 am

Hi all!

Thanx for any help in advance! Ive got a problem emailing variables from a form (file1.php). In file2.php is this mail()-function: // it mal()functions!

mail ("myemail@mydomain.xx",
"Contacting from http://www.mydomain.xx:",
"The User submitted:
Name: $name
Firma: $firma
e-Mail: $email
Website: $website
Telefon: $telefon
Job: $job
Stunden: $hours
Lohn: $lohn
Wochenende: $wochenende") // This is line X (see below)

Then I get this error:

Warning: Failed to Connect in c:\path\file2.php on line X // <--

Why? My php.ini isset

[mail function]
; For Win32 only.
SMTP = localhost
; For Win32 only.
sendmail_from = localhost
; For Unix only. You may supply arguments as well
(default: "sendmail -t -i").
;sendmail_path =

I say thanx to everybody helping me! Greets,

Andy
AndyCS
New php-forum User
New php-forum User
 
Posts: 3
Joined: Sat Nov 09, 2002 2:19 am
Location: Hamburg, Germany

Postby Oleg Butuzov » Sat Nov 09, 2002 5:26 am

yes Andy i think you are newbee =)

if you use windows (i thick you use windows)
you must write a ip adress of the smtp server...

[mail function]
; For Win32 only.
SMTP = smtp.mail ru
; For Win32 only.
sendmail_from = localhost@localhost.com

P.S.
Why you a strt a vote ?
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby AndyCS » Sat Nov 09, 2002 6:44 am

Pejone wrote:yes Andy i think you are newbee =)

You are right (thats y i started a vote maybe....)

Pejone wrote:(i thick you use windows)

you are right too. can i write smtp.web.de (my e-mail-account) as ip adress of the smtp server? Beacuse: I have no mailserver installed (just wamp) and only a testing-server (my home pc).

[mail function]
; For Win32 only.
SMTP = smtp.web.de
; For Win32 only.
sendmail_from = localhost@localhost.com

Thanx in advance,

Andy
AndyCS
New php-forum User
New php-forum User
 
Posts: 3
Joined: Sat Nov 09, 2002 2:19 am
Location: Hamburg, Germany

Postby Oleg Butuzov » Sun Nov 10, 2002 9:33 am

yes, you can
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.