LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-10-2015, 06:58 PM   #1
kwatts59
Member
 
Registered: Aug 2012
Posts: 34

Rep: Reputation: Disabled
Connection refused by aspmx5.googlemail.com


To all,
I am trying to send an email from my server using the php mail function. However, when I run the script, it get a "Connection refused by aspmx5.googlemail.com".
Below is my PHP code and the error message in the /var/log/maillog file.
Any help will be greatly appreciated.
Ken


Code:
<?php
$message = "Line 1\r\nLine 2\r\nLine 3";
$message = wordwrap($message, 70, "\r\n");
mail('watana@unlv.nevada.edu', 'My Subject', $message);
?>

Code:
Sep 10 16:39:28 shenlab sendmail[14175]: t8ANU4nK014121: to=<watana@unlv.nevada.edu>, ctladdr=<apache@shenlab.sols.unlv.edu> (48/48), delay=00:09:24, xdelay=00:00:00, mailer=esmtp, pri=210398, relay=aspmx5.googlemail.com. [74.125.141.26], dsn=4.0.0, stat=Deferred: Connection refused by aspmx5.googlemail.com.
 
Old 09-14-2015, 12:22 PM   #2
kwatts59
Member
 
Registered: Aug 2012
Posts: 34

Original Poster
Rep: Reputation: Disabled
Any help would be greatly appreciated.
Thanks in advance
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Postfix/smtp] 25 connection refused / connection timed out wewanwang Linux - Server 2 12-22-2014 01:14 AM
JAVA: SSL Telnet connection "connection refused: connect" error kshaffer85 Programming 1 12-14-2013 07:06 AM
vsftpd not working: Connection attempt failed with "ECONNREFUSED - Connection refused davidlu766 Linux - Server 7 05-03-2010 08:34 PM
Socket Connection Failed: 111 Connection Refused degraffenried13 Linux - General 3 05-31-2009 01:17 AM
eth0 going down (connection reset by peer, then connection refused) Astarath Slackware 1 09-05-2007 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration