#1  
Old 2nd November 2005, 19:23
Joe-Montana Joe-Montana is offline
Junior Member
 
Join Date: Oct 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default Formmailer apache server

Hey All

Running Mandrake 10.2 LE with apache
and need some help here, i´m trying to make a simple php form mailer.

#########Form Mailer####################

<?


$message ="navn=$name $tlf $mail $bem";


mail( "info@noname.dk", "Mail Fra Support Question",
$message, "From: $email" );
header( "Location: http://www.noname.dk/files/thanks.php" ,main );
?>

##################################
Note" tryed to put this in my formmailer ini_set("SMTP","smtp.mail.dk");"

The thing is, that i think i have to set something up on my Box/apache server, so i wil be able to send.

I´ve looked at the php.ini, file to se if there is any thing there.

Don´t know if this is right

######## PHP.INI ####################

[mail function]
; For Win32 only.
SMTP =

; For Win32 only.
sendmail_from =

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i

####################################

If i run the thing on my webhotel at the ISP server all works fine

I know, when i just want to sendt mail from i normal mail client like Thunderbird, i just provide it with my isp gateway "smtp.mail.dk and the af password.

So how do i get my box to send mail direct from my website

Any one????

Thanks in advance

Joe Montana
Reply With Quote
Sponsored Links
  #2  
Old 3rd November 2005, 02:43
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

If you're trying to send from the same host where the mail server is on, you don't need a username and password. You can simply use PHP's mail() function.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 3rd November 2005, 21:43
Joe-Montana Joe-Montana is offline
Junior Member
 
Join Date: Oct 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
If you're trying to send from the same host where the mail server is on, you don't need a username and password. You can simply use PHP's mail() function.
Thanks, all is working fine now, Falko you are the best.
Reply With Quote
  #4  
Old 3rd November 2005, 23:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by Joe-Montana
Thanks, all is working fine now, Falko you are the best.
Good to hear that!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Setup Behind a Router/Firewall/Cable Modem kisong Installation/Configuration 2 1st August 2010 17:05
DNS Server questions BlueStream Server Operation 2 18th October 2005 18:47
Server Hostname and IPSConfig Lil'Brudder Installation/Configuration 2 14th October 2005 12:46
ISPConfig and separate machines pfm.smits Installation/Configuration 1 11th October 2005 15:09
Server can't "see" the internet Luciano Installation/Configuration 8 22nd August 2005 23:22


All times are GMT +2. The time now is 22:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.