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.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 Replies !
How To Configure External Mail Server On Linux In PHP.ini
Is there anyway I can configure PHP email to use external mail server on Linux? I know you can do it on Windows.

I did an experience. I updated php.ini showed below. However I could not receive email.

myServerAddress does have SMTP mail server running.  Any comments?

[mail function]
; For Win32 only.
; SMTP = localhost
SMTP = myServerAddress
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

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

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 Mail From Remote Server
i have a webhost, and i have a 'forget password?' form, but currently, i'm running a mail server from home, and i want to use it for sending mail, even though my web server is not at home. is there a way that i can do this? i currently have sendmail completely functional, etc, i just want to send mail via php and a forgot password form from my webpage on the web host.

View Replies !
Mail Using Remote Smtp
How can i send mail by php using a remote smtp server?

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 !
Mail Problem - Warning: Mail() [function.mail]: SMTP Server Response: 550 Invalid Recipient:
Whenever the recipient's email address includes a hyphen ( - ), I get the following error message...

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient:

I should stress that this only seems to occur when the hyphen is in the URL portion of the address, i.e example@perfect-example.com

The current code works along the lines of...

mail ($_POST['email'], 'Email subject is here', $body, $headers);

View Replies !
Sending Smtp Mail
Error: 220-We do not authorize the use of this system to transport unsolicited,

View Replies !
Mail() [function.mail]: SMTP Server Response: 550 Not Local Host Gmail.com
I do a mail() and get:

Warning: mail() [function.mail]: SMTP server response: 550 not local host gmail.com, not a gateway in C:xamppxampphtdocs estsitemail.php on line 7


<?php
ini_set("SMTP","rlwatkins.com");
ini_set("sendmail_from","hunter@rlwatkins.com");
mail("huntercjcarroll@gmail.com","hello me","spamtastic","From: hunter@rlwatkins.com");
?>

what is wrong with this, how do i set it so that i can send to something other than localhost?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 Syntax Error
When I try this under windows :

mail("User <user@example.com>",$subject, "", $headers);

I get this error :

Warning: mail() [function.mail]: SMTP server response: 501 Syntax error,
parameters in command "RCPT TO:<User <user@example.com>>" unrecognized
or missing in

It seems to add it's own <> characters. If I run the same script under Linux it works fine !?

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 501 5.5.4 Invalid Address
I receive this error:


PHP Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in D:clientsebiblecommentary.comconcordia-seminary.caconcordia-seminary.ca\_demo
egister.php on line 464

Both of my mail() uses fail, and I'm not sure why. I've followed the same syntax before on this my server and not had a problem.

My code is below: ....

View Replies !
Remote Linux Commands From A Windows PHP Server
I'm running a Windows webserver and I would like to use PHP to connect to my linux box (non-webserver), send it commands (change directory, run commands, create files, etc) and files, and be able to get files back that it created on the linux box.

The linux machine has ssh/sftp (with password) access, so is there a way for me to connect through ssh without installing extension libraries and run commands etc?

I've searched through the forums and haven't found anything that is my particular situation.

View Replies !
Sending Mail Using Smtp Authentication To Send Emails
I need some one to help me with sending mail using smtp authentication to send emails in this script. i got this far but i do not know how to setup this to sending mail using smtp authentication to send emails. Or how do i edit this so the top script work together.

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 550 5.7.1
I'm making e-mailing with php script and i setup mailtraq mailserver this thing is just a lil confusing to me first thing i want to know if i can use apache instead of this as mail server second when i wrote my script with that mail function i received an error this is it :

Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for monalisa20042006@yahoo.com in D:wampwww1stmail.php on line 2

what's that mean if this means that the mail server not configured right...SO third how to use or configure this server to use as my mail server. Code:

View Replies !
Warning: Mail() [function.mail]: SMTP Server Response: 553
my php.ini mail section is setup as follows:

[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

then in my php script:
<?php
mail("joecool@hotmail.com", "Testing", "Line 1
Line 2
Line 3", "From: tom@hotmail.com") or die("email error");
?>

i have also run mercury mail but i keep getting this error:

Warning: mail() [function.mail]: SMTP server response: 553 We do not relay non-local mail, sorry. in C:Program Filesxampphtdocsest.php on line 2

on all tutorials that i went, the mail function is written this way what is wrong?

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 !
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 !
Problem In Uploading File On Remote Linux Server
i do have a problem that i want to upload a file on the web server my site host on. the problem is that i want to upload it in a folder bt i m not able .

i do have check the permissions its 777 and i do used the copy function first bt it gives an error warning as given:

Warning: SAFE MODE Restriction in effect. The script whose uid is 504 is not allowed to access / owned by uid 0 in /home/virtual/site2/fst/var/www/html/court.php on line 19

code is as follow Code:

View Replies !
Capturing A Display On Remote (linux) Server From (windows) Web Browser
I've a utility that runs on a linux machine. Basically, it opens a window, draws a figure and captures the image (screen) and stores it as a jpeg file. The utility requires a window to be open (or displayed) inorder to save the image. Also, this utility is
in the form of an executable, so I can't possibly alter it.

I want to run this utility from a windows web browser and display the saved jpeg file. I pass some command line parameters to change the figure it draws. The php code I use is as below: Code:

View Replies !
Sending Individualised Emails From A Remote Server
I have been trying for several days to develop a mass email system which can handle HTML content, can mail out to multiple addresses and where I can individualise the content using each recipient's first name (Dear John).

I was recommended phpMailer which seems to offer everything I needed but I could not get it to connect (via SMTP) to the remote mail server I am using.

I then tried htmlMimeMail which also did everything I needed. I got it up and running, but when I tried to loop through the recipents addresses adding each recipients name to the body of the email the inbuilt function could not execute fast enough to keep up with the loop. Hence emails were sent to each recipient but each had the same name in the body, the first in the array.

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 !
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 !
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 !
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 !
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 !
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 !
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 !
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 !
Warning: Mail(): SMTP Server Response: 505 5.7.3 Must Issue A STARTTLS Command First
While using mail() function in PHP I am getting thjis error

Warning: mail(): SMTP server response: 505 5.7.3 Must issue a STARTTLS command first

I have used ini_set("SMTP","mail.subdomain.mydomain.");


But when I used this with the IP address of the MailServer (MS-Exchange server) it works. Any comments on this.

View Replies !
Remote Mail Server
I am trying to send a mailout using a php script hosted on my server to connect to a seperate mail server. The server uses pop3 and is QuickMail Server 2. Can anyone explain what PHP script I use to connect to the mail server. I am currently using the mail() function but this is simply sending from my development machine.

View Replies !
Sending A Mail Through Exchange Server
I want to send mail through PHP using the MS Exchange server.
My php.ini file looks like this (for the MAIL functions)
-------
[mail function]
; For Win32 only.
SMTP = exchgserver.test.com
smtp_port = 25

; For Win32 only.
sendmail_from = thegoodboy@test.com
-------
The following extensions have been loaded as well.
extension=php_imap.dll
extension=php_ldap.dll
After making these changes there were no errors/warnings. But I'm
unable to send any mails.
What are the other changes that i should do to send mails?

View Replies !
Sending Mail From Windows Server
i trying to send a mail using php scripts from windows server i used the following code for that:

<?php

$from="info@mysite.com";
$to      = "ajiths4u@gmail.com";
$subject = 'Invitation';
$message = 'hello ';
$headers = 'From: info@mysite.com' . "
" .
   'Reply-To: info@mysite.com' . "
" .
   'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

and i also change  my php.ini (smtp name & sendmail_from )but its  not working in windows server.

View Replies !
Anyone Know How To Configure Php5 On Debian Linux?
Have loaded Debian linux, and Php5.

1. Don't know how you start and stop the server apachectl and
httpd.apache don't seem to be present.

2. Added the elements to httpd.conf that I thought would need to go in
there, as I would if I was doing a windows application, and that seemed to
complete mess apache up.

View Replies !
Different SMTP On Linux
I read that you can specify a nonlocal SMPT host, for the "mail()" function, when running windows.

View Replies !
Smtp Name In Php With Linux
Iam working with php on Linux, I want the Mail Server name to be changed dynamically irrespective of the php.ini settings, I tried couple of scripts from forum, it is not working instead always it is taking local host as the mail server Does any one has any clue.

View Replies !
Remote Smtp
I have an account registered with a free server. It's kind of like those free ones that you can register for, like hyperPHP for instance, that have PHP and MySQL. I need to use a remote gmail SMTP account to send mail, however. As you know, the default for the mail() function  is to use localhost. How can I change this so that the mail() function uses my gmail account's smtp server (smtp.gmail.com)?

I have the outgoing port, username and password. All I need to know is how to change the settings. Also, note that since this is a free server registration, I don't have access to the internal software running the server. All I have is the account.

View Replies !
PHPMailer And Remote SMTP
I'm using PHPMailer to send out emails and I want to use my ISP SMTP server to send those emails since where my website is hosted, it says 'Email sent on behalf of' in the message ... yes, it's a shared hosting.

I'm using this code to send mails; PHP Code:

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 !
Remote Debugging With Quanta+ On Linux
I am trying to remotely debug a PHP application.

I have the following setup:
- Web server A (application accessed via https, PHP with XDebug
extension installed)
- Development server B (location of the php scripts)
- Remote workstation C (with Quanta+)

After a lot of searching for infos and trial and error I have not been
able to configure my environment on workstation C so I can remotely
debug PHP scripts executed on server B.

Does anybody use a similar configuration and know how to configure
Quanta+?
What other options for remote debugging do I have?

View Replies !
PHP.ini - How Can I Configure It On The Server?
I updated my the PHP.ini in Windows folder that it can accepts larger uploaded file size, it workd fine on my local machine, how can i configure it on the server?

View Replies !
Configure Php.ini For MAIL Function
Can you plz help me in configuring PHP.INI file to send mail by php's mail function?

I get the following error message:

PHP Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in C:Inetpubwwwroot\_debug_tmp.php on line 9

I am running this code on server and i don't know how to configure SMTP server. This is my PHP.INI file.

[mail function]
; For Win32 only.
SMTP = 127.0.0.1
smtp_port = 25

View Replies !
Mass Mailing - Sending SMTP Emails Via PHP Page
I am sending SMTP emails via my PHP page, I am sending about 20 SMTP emails (stress testing) one after another, these emails are sent via a FOR loop (has one MySQL seek for email address in each loop)(with NO forced delay what so ever). Code:

View Replies !
Configure Server Date To GMT +8.
how can i configure my server date to GMT +8. from my windows desktop i installed apache, php and mysql. i have configured my desktop to my current timezone which is GMT +8 beijing.

but once i print the value of date("Ymh - His"); on my PHP it shows the date that is 8 hour behind my current time. do you know where can i configure it? by the way im using XAMMP as my webserver.

View Replies !
Sending Mail: Choice Between Sending Receipt, Or HTML Formatting
I'm using PHP's mail function to send out a message via email.

I would like for this email message to send a receipt when read as well as send an HTML formatted email. Both aspects are important to me.

I know this is a product of the mail header. This is the format I currently have:

mail(to, subject, body, "From: name <email>
Disposition-Notification-To: name<email>
Content-type:text/html;charset=utf-8");

This prompts the email program to send a reciept, but the email message is not in the HTML format, and even contains "Content-type:text/html;charset=utf-8" at the top of the body.

If I switch the order to this format:

mail(to, subject, body, "From: name <email>
Content-type:text/html;charset=utf-8
Disposition-Notification-To: name<email>");

This sends the email with HTML formatting but does not prompt the sending of the receipt. I also get "Disposition-Notification-To: name<email>" at the top of the email message.

This tells me there is a problem in the transition between the headers, which currently is "".

What am I doing wrong?

View Replies !

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