Computer ForumsComputers  

Go Back   Computer Forums > Programmers Lounge > Programming Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 05-15-2005, 02:38 PM   #1 (permalink)
Super Techie
 
Join Date: Oct 2003
Posts: 439
Default sending an email with php

I'm making a form and I don't want to use the mailto command that makes the user open up their local email client. I want to send the email automatically once the user clicks the submit button and then redirect them to a certain page. I'm guessing this is possible using php, but wouldn't know how to. Simpleness is good, because I don't know too much php; thanks.
__________________
\"I have many layer-eight problems in my life, including myself.\"
Obtruse_Man4 is offline   Reply With Quote
Old 05-15-2005, 02:40 PM   #2 (permalink)
Super Techie
 
Join Date: Mar 2005
Posts: 259
Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

http://php.net/mail
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline   Reply With Quote
Old 05-15-2005, 02:47 PM   #3 (permalink)
Super Techie
 
Join Date: Oct 2003
Posts: 439
Default

oh crap I didn't think that I might need a mail server running. The one server I am using now doesn't give me access to a mail server. Any other way to send mail automatically and redirect without having to alter anything server side?
__________________
\"I have many layer-eight problems in my life, including myself.\"
Obtruse_Man4 is offline   Reply With Quote
Old 05-15-2005, 03:08 PM   #4 (permalink)
Super Techie
 
Join Date: Mar 2005
Posts: 259
Send a message via AIM to C.Ingram Send a message via Yahoo to C.Ingram
Default

No.

What you can do here depends on where you are sending e-mails. If you are sending to just one e-mail address, you can use ini_set to specify SMTP and smtp_port, changing the mail server PHP will use. If its your ISP's, you are set.

If you need to send to different addresses, you will need to look up the MX record and change the SMTP server settings on the fly before calling mail().
__________________
Christopher Ingram
Principal Consultant, Souken Group, LLC.
C.Ingram@SoukenGroup.com
(856) 392 5244 -- (866) Go Souken
C.Ingram is offline   Reply With Quote
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are On



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


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0