tauchai83 Posted January 17, 2007 Share Posted January 17, 2007 my pc is connected to a proxy server and the email i send never reach and never work...how to solve this problems? using php email function, it should able to work either intranet or internet...here is my code..<?php$to = '[email protected]';$subject = testing on you;$message = 'hello how r u?;$headers = 'From: tauchai.tzo.com' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion();mail($to, $subject, $message, $headers);?> do i nit set up outlook and specify the email server? for me, i only a student and i don have the email account with my University. Only i have a web-based microsoft exchange email.the FROM filed should put localhost??? i have try many times 2day! but never work Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/ Share on other sites More sharing options...
Accurax Posted January 17, 2007 Share Posted January 17, 2007 You cant send email from local host unless you've set your computer up to run as a mailserver, this requires some configuration of the php.ini file and apache / IIS needs to be set up correctly.I test mail() scripts on a remote host simply because setting a local mailserver is not a task i relish.Unfortunatly if you need this to work from localhost your probably going to have to look into setting apache/IIS (whichever u use) up to act as a mailserver.Sorry i can be more help Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/#findComment-162726 Share on other sites More sharing options...
tauchai83 Posted January 17, 2007 Author Share Posted January 17, 2007 the remote host u mean is ur company mail server rite? what should i do if i wana try the way u try. (try the script on remote host...) Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/#findComment-162729 Share on other sites More sharing options...
Accurax Posted January 17, 2007 Share Posted January 17, 2007 If this is to send internal mail around your company intranet, your still going to need to setup a mailserver on the host. Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/#findComment-162766 Share on other sites More sharing options...
ted_chou12 Posted January 17, 2007 Share Posted January 17, 2007 this is my mailing script and it works fine for me:[code]<?php$to = '[email protected]';$subject = testing on you;$body = 'hello how r u?;$headers = "MIME-Version: 1.0rn";$headers .= "Content-type: text/html; charset=iso-8859-1rn";$headers .= "From: myname<$from>rn"; $headers .= "Return-Path: <$return>";if (mail($to, $subject, $body, $headers))?>[/code]tell me if it works for you or not,btw, some servers do not support the mail function, and requires additional payments, you can either upload a script with in order to know information about the email:[code]<?php phpinfo(); ?> [/code]or you can ask your support directly, i suggest you email your support.Good luckTed Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/#findComment-162884 Share on other sites More sharing options...
tauchai83 Posted January 18, 2007 Author Share Posted January 18, 2007 i have open it up..which function shold i check there? the sendmail_from? no value... Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/#findComment-163559 Share on other sites More sharing options...
ted_chou12 Posted January 18, 2007 Share Posted January 18, 2007 then I guess your host server doesnt support the mail, maybe you can request it through email or something.Ted Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/#findComment-163645 Share on other sites More sharing options...
tauchai83 Posted January 19, 2007 Author Share Posted January 19, 2007 OK. Thanks Ted anyhow! :)...i will check it out with network admin. Link to comment https://forums.phpfreaks.com/topic/34546-email-that-go-through-proxy-server/#findComment-164337 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.