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 Mail Problem (but Works OK In Outlook)


I'm finding when a mail is sent from a script, I get:

Warning: mail() [function.mail]: Failed to connect to mailserver at
"smtp.ntlworld.com" port 25, verify your "SMTP" and "smtp_port" setting in
php.ini or use ini_set() in C:Documents and Settings

However, when using Outlook and setting the SMTP agent in that to
smtp.ntlworld.com, on the same PC, mail is sent fine (using Outlook)
without any problems.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
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 HTML Mail To Outlook Express With Mail()
I'm sending out an HTML mailer using the mail() function in PHP. I'm appending all of the headers to the message. This message displays correctly in Hotmail, Outlook 2000, and even Mac's OSX mail client. But, for some reason, Outlook Expess (on Win XP & OSX) displays the HTML code and doesn't render it.

If, however, the recipient copies the HTML code and composes a new HTML message in Outlook Express, it gets sent correctly.

This particular user is also getting other HTML mailers that display correctly, so I know that the client is capable of accepting HTML mail.

I'm led to believe that PHP's mail() headers are not being interpreted correctly. In fact, they appear as the first 3 lines in the body of the message when viewed in Outlook Express. OK, here are some samples to tie this all together: First, the mail() code I'm using: PHP Code:

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 !
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 !
Mail(), Html & Outlook
I see that a while ago people had the same problems as me (http://www.phpbuilder.com/board/show...eadid=10240258), but I see no answers anywhere, so here goes:

I am sending E-Mail from a form on my website using the php mail(). The problem is that when I send it as html, outlook has problems. Here are the headers I'm using:


$headers  = "From: $name <$email>";
$headers .= "Reply-To: $email ";
$headers .= "MIME-Version: 1.0";
$headers .= "Content-type: text/html;";

When I do this, the E-Mail looks fine in squirrelmail (a webmail program www.squirrelmail.org), but in outlook...instead of getting a nicely formatted html message, I get a message that starts with "Content-type: text/html;" then continues on in plaintext, showing me all the html tags, etc. I tried switching some of the headers around, and if I switch the mime & content-type headers, I see html in BOTH E-Mail programs, but outlook starts the message off with "MIME-Version: 1.0" which I suppose is the lesser of 2 evils, but there is no reason that I should have to see that. Does anyone have a solution?

View Replies !
Mail() Seen As Junk In Outlook
I am trying to set up a system that automatically sends out emails to subscribers. I am testing it on my system using my own email address as the recipient address. For some reason it gets put into my junk folder by outlook express. Any way of stopping this?

It will eventually be used to send to people who use all sorts of different email clients. Are there any easy ways to avoid these being filtered into the junk mail? Code:

View Replies !
Mail & Outlook Express
I'm sending an html email to members subscribed to a mailing list. However, the email isn't showing up as intended. This only occures in Outlook Express, Hotmail displays the email correctly. Code:

View Replies !
Send Mail From Outlook Web Access
I've got RH9 Linux with default PHP.

Is there a way to send email on Linux to an Exchange Server from PHP
and/or other tools when there is *NOT* SMTP access?

Has anyone figured out a way to use PHP to get inside an OWA (Microsoft
Outlook Web Access) website to send email that way?

The reason I ask is because my corporate office is going to do away
with our rogue SMTP server access and force everything through Exchange
Server. This makes it hard for our batch scripts on the Linux server to
relay to internal email accounts that a job has failed or other errors.

View Replies !
Mail() To Outlook, No Carriage Returns
I'm sending normal text email, but in Outlook all the carriage returns
are ignored. The text comes from MySQL database, and I've tried

str_replace("
", "
", $dr['email_template']);

I also tried sending header Content-type: text/plain but still no luck,
still the email comes through as one big line.

I'm sure this must be a common thing but I can't immediately find an
answer through Google.

View Replies !
Send Mail By Connect PHP To Ms Outlook?
how can we send mail by connect PHP to ms outlook?

View Replies !
Send Mail To Outlook From Http://localhost
Does anyone know how to set up a script to send mails from http://localhost to your local mail client (Outlook, to be exact).

View Replies !
Read E-mail Addresses From Outlook Express
how to read email addresses from outlook express (from local hard disk) It will be great if you help me to read e-mail addresses from and folders (of outlook Express) like Send, input, output etc).

View Replies !
Sending Mail From Php And Correct MS Outlook Receive
In my MS Outlook I use global address book to handling contacts.
When I send email from Outlook to myself and double click on sender I
get information about me from my global address book.

When I use php mail() function to sending messages and then double
click on sender I get specificity message email window only.

How do I have to prepare header at mail() function (for example: FROM:
?) that after send and double click on sender in Outlook I get
information about sender from Outlook global address book ?

View Replies !
Make A Mail System Like Outlook Express
i need to make a mail system like outlook express that mean i run my system on client system it connect to server download mail on client system and after this i work with these mail exectly like outlook express. Firstly i am confuse how to download mails from web to client system?

View Replies !
Mail Ends Up In Outlook Junk Folder?
I have a mail PHP mail script set up to send email to me when a user completes a from on my web site. The problem I'm having is that if the mail is sent to an address on my domain it ends up in Outlook's "Junk-mail" folder. However if I send it to another adress not on my domain it works fine. Code:

View Replies !
Outlook Chopping Href Tags In Html Mail
I have been trying to send a multipart text and html message through the mail() funciton. It works beautifully with Hotmail. However, when it is received by the IceWarp web-based mail server or by Outlook, some of the HTML is hacked out. Specifically, on href tags, look like this when viewing the source: <a href=ttp://.... It also chops off the last character of the url and the quote before the end ">" on the tag. I can't figure out what is happening ....

View Replies !
Problem Of The Php Mail Function Not Formatting Emails Properly For Outlook Express On A Mac
anyone found a fix ever for the problem of the php mail function not formatting emails properly for outlook express on a mac, they always appear blank, something to do with the mime headers apparently......

View Replies !
Mail - SMTP ?
1) Does anyone know where we can d/load the smtp.php file ?

2) if you scroll down that screen - Theres a few examples that suggest SMTP.. however theyre either too little information - or too much information (Makes it complex, or too much info so I miss the important bits..)

View Replies !
Php Mail() And SMTP
Is there any way to set up the php mail() function so that it sends a
username and password to the server? I'm on a winXP machine, and I have an
SMTP provider, but it requires me to login to use it, and for some reason I
can't find anything about it in the php.ini file.

View Replies !
Mail Via SMTP
I was wondering how I could send an email via SMTP using php.

View Replies !
Images Shown In Outlook Express But Not In Outlook 2003
I'm writing a php code to send email in mime format. All seams ok if I read the email with outlook express, or Thunderbird, or any webmail, but if I open the email with Outlook 2003, I can't see the images, I just see a small box (I send 1 image) with inside the path of the image. The image is embedded in the message, it's not a link.

<?php
$header = "From: Sender <sen...@domain.org>";
$header .= "CC: Altro Ricevente <blabla...@domain.net>";
$header .= "X-Mailer: Our Php";

$boundary = "==String_Boundary_x" .md5(time()). "x";
$boundary2 = "==String_Boundary2_y" .md5(time()). "y";

$header .= "MIME-Version: 1.0";
$header .= "Content-Type: multipart/related;";
$header .= " type="multipart/alternative";";
$header .= " boundary="$boundary";";

$messaggio = "If you read this, your email client doesn't support MIME";

$message .= "--$boundary";
$messag .= "Content-Type: multipart/alternative;";
$message .= " boundary="$boundary2";";

$message .= "--$boundary2";
$message .= "Content-Type: text/plain; charset="iso-8859-1"";
$message .= "Content-Transfer-Encoding: 7bit";
$message .= "Alternative message in plain text format.";

$message .= "--$boundary2";
$message .= "Content-Type: text/html; charset="iso-8859-1"";
$message .= "Content-Transfer-Encoding: 7bit";.....

View Replies !
Combination Of Outlook And Php - Create Stationery For MS Outlook Using PHP Engine
Some of my clients asked me to create "fancy emails" for them (aka html
formatted emails).

I know how to make a nice html document, but I had trouble creating a simple
way to provide the document to my clients so that they could use it to.

I know most of them use Outlook XP or Outlook 2003, so what I created was a
page that creates a Visual Basic script that, when saved to the desktop and
clicked (run), opens a message in outlook using the html provided.

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

View Replies !
PHP SMTP E-Mail Almost Working
I wrote a PHP function to talk to SMTP servers directly and it works, it
sends the message out.

The problem I have is that gmail.com will show Unknown sender. As far as
I can tell gmail reports the sender by the "Reply-To" field. I have been
looking for information on how to get Reply-To to work but I'm not
successful. Any Ideas.

I tried:
telnet localhost 25
HELO test.com
MAIL FROM: <me@...>
RCPT TO: <me@...>
REPLY-TO: <me@...>

Server Resp for last command "221 2.7.0 Error: I can break rules, too.
Goodbye."

View Replies !
SMTP In Php Mail Program
I have written a mail program and it is taking localhost as the mail server by default , I want to specify the smtp variable in php program so that I can pass the mail server name dynamically.

View Replies !
Mail: Setting Up SMTP
I want to set it up so my php will use for the mail() function a email address I have on a different server... how can this be done? I must enter password and the URL?

View Replies !
Reconfigured The Php.ini With Smtp=mail.isp.net
I reconfigured the php.ini with smtp=mail.isp.net, and i have an error: failed to connect in..i'm using phpdev4.

View Replies !
$SMTP = Fsockopen(mail.example.org, 25);
I tried the following posted by Nickoons and get a parse error: unexpected T-string in this line - $SMTP = fsockopen("mail.example.org", 25);

I had the same issue. My old server worked fine.. and when I migrated the site to its own dedicated box, this function stopped working even though sendmail was working just fine. I also noticed that PHP's mail() function is very slow. I run a mailing list, and I created a web-based system to manage and deploy all of these emails.

I ended up creating my own function to replace PHP's mail() function, which A) works on my new system, and B) is many times faster than PHP's mail() function. Here it is, in case you'd like to use it. It uses sockets to connect directly to the SMTP server of your choice:

function SendMail($ToName, $ToEmail, $FromName, $FromEmail, $Subject, $Body, $Header)
{
$SMTP = fsockopen("smtp.sitename.com", 25);

$InputBuffer = fgets($SMTP, 1024);

fputs($SMTP, "HELO sitename.com");
$InputBuffer = fgets($SMTP, 1024);
fputs($SMTP, "MAIL From: $FromEmail");
$InputBuffer = fgets($SMTP, 1024);
fputs($SMTP, "RCPT To: $ToEmail");
$InputBuffer = fgets($SMTP, 1024);
fputs($SMTP, "DATA");
$InputBuffer = fgets($SMTP, 1024);
fputs($SMTP, "$Header");
fputs($SMTP, "From: $FromName <$FromEmail>");
fputs($SMTP, "To: $ToName <$ToEmail>");
fputs($SMTP, "Subject: $Subject");
fputs($SMTP, "$Body.");
fputs($SMTP, "QUIT");
$InputBuffer = fgets($SMTP, 1024);
fclose($SMTP);
}

I believe I've modified the script sufficiently that it doesn't include anything specific to my configuration.. I apologize if I haven't. You'll need to replace "smtp.sitename.com" and "sitename.com" with your server's information.

View Replies !
How To Send Mail With SMTP
What I want to do, is create an email form, where the user can select emails by groups from a database. So based on what group the user selects, I'm guessing I'll use SQL select query to select the appropriate user emails and print them out to the address line of the form. But I need to know the actual coding for SMTP. Is it much more complicated than the mail() function?

View Replies !
Send Mail But No Smtp
I would like to send mail from my php script. I have all that set up etc and works when i use on a server with smtp configured, however the server i am going to use this on does not have access to any smtp server, local or remote. Are there any alternatives options that i can use or is smtp the only way?

View Replies !
Mail() And IIS Virtual SMTP
I'm trying to get the PHP mail() function to work with a localhost IIS Virtual SMTP server. However, I keep getting an error message: quote:

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in f:Inetpubwwwrootformsmail.php on line 4

I don't understand what other settings to change or how to get it to talk to the virtual SMTP domain. Anybody know how?

View Replies !
SMTP Authentication & Mail()
Being able to send emails through PHP is a fundamental part of the site, so I've been searching around and trying to come up with some code to authenticate with the SMTP server to send the email.

What I have at the moment is code found on the Internet to perform this task using the PEAR module. I assume this module is installed as the php.ini 'include_path' setting is c:php4pear. Code:

View Replies !
PHPMailer SMTP Mail
I am trying to send emails via a PHP script and I am trying to avoid the spam filters. I have used the mail() function which seems to be the worst of all solutions. I have tried SMTP emailing via PHPMailer, and some address wont receive the emails, and 1/10 hotmail attempts will get through, the rest wont even appeaer in the junk folder. All the email contains is

SUBJECT: "Linxsmart Document"

BODY:
"
Hello <<Dynamic Name>>,

View Replies !
Mail() And SMTP Authentication
It would seem BT Internet have just turned on SMTP mail authentication although they have been talking about it for years as I now get the following error message using the mail function on my local machine which worked fine a couple of weeks ago.

Warning: mail() [function.mail]: SMTP server response: 530 authentication required - Your email could not be sent. To fix this you must make a simple change to your email (known as SMTP authentication). For advice visit www.btyahoo.com/smtp or call 0800 328 9968

Needless to say "Advice" relates to Outlook Express and little else, certainly not PHP.
Anyone know the changes I need to make and where, parameters for the mail() function or in the php.ini file perhaps. Naturally I know the information relating to mail username and password.

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

View Replies !
Mail() Works, Uh, No It Doesn't
Below is the code. I receive the blind copy but not the copy to the email in the TO variable. (This variable, $recipient, is from a form.) The blind copy has the content of the TO variable in it, but no mail is delivered.

$mailheaders = "From: Web Site";
$mailheaders .= "Bcc: mail@mywebsite.com";
mail($recipient, "Title", $msg, $mailheaders);

View Replies !
External SMTP For Mail Script
I am trying to make a script which can send an e-mail through my providers SMTP server. Is this possible and how?

View Replies !
Adding Smtp To Mail Script
I been trying to figure this out but I just cannot seem to get it
I need to take this PHP Code:

View Replies !
Php Mail() Problem; Firewall? Smtp?
My php script will not successfully send emails to recipients outside our firewall. My system administrator says that it is my server which is blocking emails being sent from anonymous accounts, and that I *should* be able to send out. However, I don't know what to do to make that happen.

I work for a school district, and our domain is www.lausd.net. My server's hostname is sib.lausd.net. (I have root access to the server, so I can do whatever you suggest I do on this server.)

Here is the error message I got in my root account mailbox when trying to send to an AOL account: PHP Code:

View Replies !
Non-local SMTP Mail Function.
I am working on a webpage that is on a different server than the email
server that the company wants me to use to send emails.

Is it possible to change the PHP.ini file to use this non-local SMTP
server, or is it not that simple?

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 !
PHPmailer - SMTP Vs Mail & Time Out
I am trying to send out 50,000 + emails through PHPmailer.  I am using the $mail->Send();.  Is it better to use SMTP so my server won't get blocked for spam?  Is SMTP better for the server resources, it's a lot of HTML mail going out?

The PHPmailer program does not seem to be sending out all the emails and it seems to time out.  Is this due to the max_execution_time in the php configuration?  Or has anyone used the PHPmailer to send out over 100,000+ emails?  Our email list is growing and I need to make sure all emails are going out.

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 !
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 !
Mail Function And Smtp Problems
I'm in the process of building a web-site. The script i've written for registering an account send an e-mail to a user specified e-mail address containing instructions for account activation. My problem is that the e-mails wont send. I know this is something to do with smtp and mailservers. My knowledge in this particular area is minimal however, and i simply cannot find any competent documentation, explaining what i need to do, anywhere.

My isp is AOL and i would like to use their smtp server if possible for sending the e-mails. I've changed the configuration of php.ini to connect to them. I do know that this requires authentication, but i have no idea how to do this. At the moment i'm getting the following error:

Failed to connect to mailserver at "smpt.aol.com" port 587, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:Program FilesApache GroupApache2htdocs
egister.php on line 82

However earlier when i was doing some trial and error, downloading programs and mail servers even though i had no idea what on earth i was doing (lol) i got the AUTH erorr message, which i assume meant that everything was working, apart from i needed authentication.

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 !

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