Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





SMTP Server - Sending Post From Php Script On Linux Server


Does any body know why send() is returning false..
where are the additional settings of SMTP server?




View Complete Forum Thread with Replies

Related Forum Messages:
Configure PHP To Use A Remote SMTP Server For Sending Mail On Linux
On Linux, can you configure a remote SMTP server to send mail? I set SMTP = mySMTPserver under [mail function] in PHP.ini; I also stopped sendmail service on my local machine. There are no mails send out. If I run the local sendmail service, mails are sent out.

View Replies !
Mail() On Linux To Use Other Smtp Server
I have written a php site that uses the mail() on windows and i had to state in the php.ini file which smtp server to use.

have now migrated this site to a redhat 9 server, but i still want the emails to be sent via the smtp server i stated earlier.

this may infact be a sendmail question, im not sure, (perhaps changing sendmail_path in php.ini) but has anyone managed to send email via mail() in php, on a linux box, that uses an external smtp server?

View Replies !
Sending Email Feature Using SMTP And Server Setting
I am trying to create a sending email feature in PHP. Let's somebody sign up and an email will be sent to them notifying them about their account.

Do you have any tutorial for this sending email feature?

View Replies !
Sending File From Server As A Post Variable
I have a page that needs to be able to send a file to an existing form as a post request. The form is on another site so I can't change it, I have to be able to send a post request with a file attached.

Any ideas how to do this?

View Replies !
SMTP Server Response: 503 This Mail Server Requires Authentication
I get this any time I try to send an email to someone that IS NOT in the domain of the company:

Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server. in corpevent.php on line 21

I have it setup like this (I removed the email address domain...but its correct in the code):

// INI Settings //
ini_set(sendmail_from,"info@domain.com");
ini_set(SMTP,"mail.domain.com");
ini_set(smtp_port,"25");

$headersĀ  = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1";
$headers .= "From: info@domain.com";

$to = $_POST['txtEmail'];
mail($to,"Your Email",$theEmail,$headers);

Why am I not allowed to send an email to anyone that doesn't have a "domain.com" at the end of the email?

View Replies !
E-mail From Linux Server But Not Windows Server
The following one-liner sends mail from a Linux server but not from their Windows server.

mail ("admin@mydomain.com", "Subject", "body");

What do I need to check / change, please?

View Replies !
Connect To A Pop Server Before Use The Smtp Server
A mail sent from a host to my smtp server is refused. This happens
because you have to connect to a pop server before you can use the
smtp server. Does anybody have any code to achieve this (PHPmailer doesn't work)?

View Replies !
Free SMTP Server Called Free SMTP Server
I downloaded a free SMTP server called Free SMTP server. And I have a PHP script that looks like this:

$to="My Email Address";
$subject="Yo!";
$message="Hi!";
mail($to, $subject, $message) or die("Failed");

View Replies !
NT4 SMTP Server
anyone know where I can get one? A imap/pop3 server would be gr8 too..

View Replies !
Smtp Server
i can get the smtp server to work and send to outlook express however when i try and send to gmail or hotmail the emails won't send?

View Replies !
PHP Through SMTP On 2nd Server
One for websites and one for email, both are RedHat. I want to be able to use php mail() to submit emails from the webserver to the mail server.

i have tried different settings, but most of the settings i find refer to Windows boxes and not unix.

what settings do i have to change to make this work. The php.ini is set with:
SMTP = 'mail.server.com', but as i read this only is valid on windows installations and not unix.

View Replies !
Smtp Server Error
First of all, I'm new to PHP. For my website I have some PHP scripts to run
a photo database. New users have to register them selfs. After registring
the new user is getting an e-mail maid by an php script. But if the user
clicks on the button to sent his info, so the PHP can sent him an e-mail, it
always results in this error
Warning: mail(): SMTP server response: 451 Request action aborted; local
processing error in {the file en line number}
In the PHP.ini smtp = localhost is set {I'm running apache under windows XP
pro) and have a mail server on the same server.

--
# Antwoord onderaan en op een lege regel, dus niet achter >>> tekens #
Ik lees alleen mail gepost naar onderstaand adres.
Mike@familie-smit.nl

View Replies !
SMTP Authenticated Server
I have this small script that is supposed to send an email. I have configured my local php.ini file to point to my SMPT remote server. The problem is that my SMTP Remote mail server requires authentication. I need to use this particular SMTP server. How can I do this?

View Replies !
Windows SMTP Server
I'm trying to send email in PHP, and I was hoping someone could refer me to an SMTP server for Windows that will work with PHP? I'm not coding any PHP but rather trying to setup PHP CMS applications (Drupal, Joomla, etc).  These applications are in a test environment, so I'm not worried about getting flagged as spam.

View Replies !
Remote SMTP Server
Hi, I'm trying to setup PHP so it will use a remote SMTP server.
I'm going to sound like a newbie but how? I know you need to alter
php.ini, change SMTP from localhost to the SMTP server and the address
to the correct one but I wondered about passwords? Outlook Express
needs a password so how would I do it.
Unless anyone has any other suggestions/tutorials. Oh and just so you
know my port 25 is blocked by ISP, I think that limits my choices.

Ah forgot to mention, I managed to send a test email from my home
machine to another account using Xmail server but I can't get it to
work from a PHP script.


View Replies !
Can The SMTP Server Be An IP Address?
I asked my service provider for the SMTP address then they gave me an IP number, told me it works, but i tried it and didn't work, can the SMTP server be an IP address? if it may, is there a special way to use it?

View Replies !
SMTP Server Response
When I submitted an email address into the part of this script that you use when you forgot your password. I entered the address and submitted and got this Warning:

Warning: mail() [function.mail]: SMTP server response: 550 The address is not valid. in C:Inetpubwwwroothttphomeclasses
otification.php on line 49

I believe Line 49 is: // echo "em h:" . $this->email_headers;

Here's part of the page code: Code:

}
/**
* send email
*
* @param string $to
* @param string $subject
* @param string $message
*/
function send_email($to,$subject,$message) {

//echo "em h:" . $this->email_headers;
$result = mail($to,$subject,$message,$this->email_headers);
if ($result == false ) { return false; } else { return true;}

}

View Replies !
Free SMTP Server
Does anbody know a good, free SMTP server that is easy to set up?

View Replies !
SMTP Server Response: 554
Warning: mail(): SMTP server response: 554 <jan@DOMAIN_NAME.com>: Recipient address rejected: Relay access denied in e:domainsvvathq.co.ukuserhtdocs
ewdownload_form.php on line 58

first time i've ever encoutered such error when using mail() funtion in php..

did some research. found some threads here on phpbuilder and somewhere else regarding this.. but they all seem to be talking about ini settings, smtp, etc,etc.. complicated stuff. Code:

View Replies !
Using External SMTP Server
I need some help with an script:

// send message
if($_POST[submit]) {

// check for suspected injection strings
foreach($_POST as $name => $value) {
filter_string($value);
}

// check for unexpected newline characters
foreach($_POST as $name => $value) {
if($name != 'message') filter_string($value);
}

$_POST = safe_data($_POST, 'display');.

View Replies !
Mail() - SMTP - And Server Queue
I have made any test with high volume sent with mail() and with direct STMP connection
I monitoring under WHM of my server the QUEUE (under mail queue manager)With the first (mail()) I see only 20% in the queue, other is sent immediately With the SMTP I see 100% on the queue and I must send manually (with delivery now) and sent is really slowly.

View Replies !
Use Mail() When The SMTP Server Needs Authentication?
Is it possible to use mail() when the SMTP server needs authentication?

View Replies !
Code To Connect To A SMTP Server?
Is there anyway, while using the mail function in PHP, to write some code to connect to a SMTP server? I have a form for my website but it is not sending me the results when it is filled out and the only conclusion i have is that the site cannot connect because of authentication problem.

View Replies !
Mail Function Need A SMTP Server
im using the mail function in my script. I realised that it isn't working from my laptop but when i run the script at uni it is working perfectly and emails are sent. I then did some reseach and found that i need a SMTP server. Code:

View Replies !
Setting Up SMTP Server And Mail()
I've never seen a clear and useful post about setting up an SMTP server and getting the mail function to work properly.

Some info about my system:
Windows XP Home (SP2)
Apache 2.0.XX
PHP 5
MySQL 4.1
ActivePerl 5.8.7 (If anyone knows how to set this up with apache, please send me a pm, thanks)

I'd really like if someone could post a few links or someinfo on how to set up php's mail stuff

From what responses I've gotten in the past, I think I need an SMTP server installed on my computer, when I googled, the only results that I seemed to get were servers I would have to pay for. I'd also like to know about configuring PHP's mail functions (php.ini options) so that it will work corectly.....

View Replies !
How Do I Determine A Webhosting Smtp Server?
How do I determine a webhosting smtp server? I am trying to use phpmailer and not sure where to get this info.

View Replies !
Send An Email Through A SMTP Server
Anyone got a block of code that will send an email through a SMTP server using php? Keep in mind this SMTP server requires a username and password.

View Replies !
Testing SMTP Server Settings
I am developing a little system, what verifies every setting option, what user inputs.
So, one thing, what I have to test, is SMTP. Does somebody know a good trick or snippet, how to test SMTP without sending e-mail?

View Replies !
Use Yahoo Smtp Mail Server
I have tried several ways to send mail but I hav failed and I m veryyyyyy upset. Now
I have few question about mail sending in php 1. I cant/dont use the smtp server of my ISP. Now which server I can send my mail thru?

2. I want to use yahoo smtp mail server. Now do I have to set yahoo smtp server name and port in php.ini? Cant I set these (both name and port)dynamically in php. if so, how?

3.If the server name I m using uses authenticated smtp, WHERE and how to put code for user id and password in php . If in mail header then in which format? Code:

View Replies !
Send Email To An External Smtp Server ?
I am running VBulletin board, the web forum on a linux machine running apache. How to config php so that it can send email thru an external smtp server instead of local sendmail. My external smtp server is running on an NT machine.

View Replies !
PHP Warning: Mail(): SMTP Server Response: 550
I'm writing a form for my boss with a mailing option. He gave me the SMTP to use. However, I get the error:

PHP Warning: mail(): SMTP server response: 550 <blba@hotmail.com>... Relaying denied in C:websitesendMail.php on line 85

I showed him the error, he cheked the mail at the server, everything was working fine !
How can I AT LEAST check if my mailing works ? (can i use m html smtp ? How can i get it ?)

View Replies !
SMTP Server Response: 503 5.5.2 Need Rcpt Command
I m getting this error message in my application. previously it wasnt there
 
Warning: mail() [function.mail]: SMTP server response: 503 5.5.2 Need Rcpt command. in C:Program ......

View Replies !
Use Yahoo SMTP Server To Send Mails
how to know yahoo SMTP server to send mails from my website, i don't mean the code, everything is fine with it but i get this message when i send:

SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/p... in E:MYDOMAINwwwindex.php on line 24

i tried going to the website but didn't help, i also tried to change port to 465 but didn't work too

SMTP: smtp.mail.yahoo.com
PORT: 25

View Replies !
How To Send Mail Using Googlemail SMTP Server ?
how I can send mail through a php script, using my googlemail account..

View Replies !
Warning: Mail(): SMTP Server Response: 451
I am trying to work through some of the Wellington and Thomson book on PHP and MySQL - I am trying to process a mail feedback form and I get the following error:

Warning: mail(): SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in C:Documents and SettingsRLaneMy DocumentsWeb SitesLocalhostInDevelopmentWellingtonSource4processfeedback.php on line 14 ....

View Replies !
Mail Function - Can Not Connect To The SMTP Server
My host did something a couple of months ago to their mail server to make it more secure. YOu now have to delare more variables or something. NOw my PHPlist will not work because it can not connect to the SMTP server or something like that.

JUst wandering if any of you have run into the same problem and could tell me how to fix it?

View Replies !
Ensure That Mail() Generated From Php Is Sent Out Via The Smtp Server
I have a smtp server on machine 'a'. Linux machine 'b' runs php. I want to ensure that mail() generated from php is sent out via the smtp server on machine 'a'. How/where do I configure that?

View Replies !
Mail() Problem With Localhost Smtp Server
Using PHP 5.0.4/MySQL 4.1.12/IIS 6. Have setup an Microsoft SMTP virtual server which works fine when I try to send an outgoing email via "localhost" using Outlook.

However when trying to use mail(), i get an error "Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini"

I had previously tried to use my ISPs smtp server but also got the same "failed to connect" error which is why i tried going locally. Code:

View Replies !
Use Any Other Smtp Server And Port To Send My Mail
I cant send a simple mail from my pc. I dont know smtp server name and port of my ISP. Cant I use any other smtp server and port to send my mail. Wud u pls tell me the name as well as the port of such smtp server. What is the name n port of yahoo.

View Replies !
SMTP Server Response: 550 5.7.1 Unable To Relay
does anyone know what this means? SMTP server response: 550 5.7.1 Unable to relay
trying to configure my smtp server.

View Replies !
Linux Php -> Nt Sql Server
How can I connect from a Linux Apache server with PHP 4.0 to a Windows NT SQL Server?

On NT this is easy (load the module), but on Linux I didn't see such an option. Also I didn't see anything like --with-mssql in configure. Is it even possible?

View Replies !
Test Mail() On Development Machine W/o Smtp Server
My development machine (WinXP, Apache 2.2.4) does not have an smtp
server, and I don't really want to install one if I can help it.

Does anyone know of a simple method of testing php scripts that employ
mail() by simulating an smtp server and directing output to a text file
or to an installed text editor.

Right now I can modify the script to use something instead of mail(),
then change it when I put into production, but I would really like to
test the script in its production form w/o having to actually send email.

View Replies !
SMTP Server Response: 550 5.7.1 Unable To Relay For Any E-mail.
I am trying to use the mail() function, and I keep get the following error that says

SMTP server response: 550 5.7.1 Unable to relay for any e-mail.

I added the IP of the webserver in Exchange to allow relaying, but still I get this error. Does anyone know how to go about fixing this and allow an e-mail to be sent?

View Replies !
PING Php Linux Server?
Anyone know how i can ping from a linux server to a remote machine then echo the results to the screen?

View Replies !
Windows Server To Linux
I have the code below which worked fine when I was using it on my windows server. However I had a few problem with the windows server then I had to switch to a Linux based server. Once the switch was completed I started having problems with a number of my codes which worked fine previously. I have managed to solve quiet a few of them with the exeption of this one which I cant figure out and was hoping you could help. Code:

View Replies !
Use Different Fonts On Linux Server
A client of mine wants me to use all sorts of different fonts to write some text on the predefined image and to show it to visitors (like a show - visitor would choose a font and then my engine would have to show that as a picture). I have the functions covered (I use imagetfttext for this), so basic functionallity is not the issue, but the fonts are.

I have no root acces to the server and thus I can't figure out what fonts are installed (it's a Linux environment). Basically, I would like to know how to find out what fonts are installed (obviously I would need TTF fonts to use here) and if I need new ones how should I go installing them? Also if there is a better way in doing this please let me know.

View Replies !
Ffmpeg In Linux Server
I want to extract a frame from a video using ffmpeg. I used

$ffmpeg_snapshot = "ffmpeg -i ../gal_video/test.flv -vcodec png -vframes 1 -an -f rawvideo -ss 00:00:09 ../gal_video/thumbnails/test.png";

shell_exec($ffmpeg_snapshot);

My hosting support ffmpeg. But it doesn't work.

View Replies !
Use External SMTP Server (like Google Apps) To Send Email
Is it possible to configure an external SMTP server to route all of
your outgoing mail through on Linux?

I know in php.ini there is a parameter, but it says its only for
windows? Can I do this on Linux?...

View Replies !
SMTP Server - Create A Php Script Thazt Send An Mail
i'm trynig to create a php script thazt send an mail does someone know how to set the smtp server

smtpserver=smtp1 and it is remote server not on my machine.
Itried but i've got this[color=blue][color=green]
>>Failed to connect to mailserver at "localhost" port 25, verify your[/color][/color]
"SMTP" >>and "smtp_port" setting in php.ini or use ini_set()

View Replies !
Http Authentication On A Linux Web Server
I've been running the following authentication in php on a linux web server. I'm trying to move it to a web server on a Windows machine running Omnihttpd. It isn't working. Any ideas?

<?php

if(!isset($PHP_AUTH_USER))
{
Header("WWW-Authenticate: Basic realm="Hardware Review"");
Header("HTTP/1.0 401 Unauthorized");
echo "You are not authorized to view this pagen";
exit;
}
else
{
if ($PHP_AUTH_USER!="hardware"| |$PHP_AUTH_PW!="Speed0")
{
Header("HTTP/1.0 401 Unauthorized");
echo "You are not authorized to view this pagen";
exit;
}
}
?>

View Replies !
Upload Script On Linux Server
My upload script is not working on Linux ,which is working perectly fine on windows 2000(localhost). my php version on linux is php version 4.2.2. Php Code:


View Replies !
Moving Files On A Linux Server
I need to find a way of moving files on my linux server using PHP. Because of security the folders I am moving files to require you to be logged in as the super user.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved