cancel
Showing results for 
Search instead for 
Did you mean: 

Delays to email coming from PHP on Hostopia

bobpullen
Community Gaffer
Community Gaffer
Posts: 16,886
Thanks: 4,977
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

I've just sent a few test messages without problem. Checking the headers of the received email shows messages from both 91.136.8.227 and 91.136.8.228.
Are you guys still having problems, and if so is it permanent or intermittent?

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: Delays to email coming from PHP on Hostopia

My test messages still not coming through ... this only started this morning as far as am aware - but hard to pin down as mails just seem to disappear ..
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,886
Thanks: 4,977
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

Are you using the phpMail() function or sending over SMTP using localhost?

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: Delays to email coming from PHP on Hostopia

hmm ... I actually have two sections under my hosted domain, one my own code which passes email calls to phpMailer, the other is a Wordpress site so the emails are sent through its functions. I have tested both and still no mails coming through.
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

Test messages sent by phpmailer using SMTP via localhost are arriving instantly for me though Cloudmark is tagging them as spam and moving them to the Spam folder..
David
Edit: Success also using the PHP mail() function which I think uses sendmail. However this also ended up in Spam.
David
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,886
Thanks: 4,977
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

V.odd, neither MTA is listed in any of the popular DNSBLs from what I can tell? Huh

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: Delays to email coming from PHP on Hostopia

Have tried a stripped down version of my mail routine - sending a test message through phpMailer (without using SMTP), which returns a 'Mail sent successfully' message, but then nothing ...
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

"Mail sent successfully" when using phpmailer means the localhost relay (webserver) has accepted it. Disappearing after that means the Hostopia relays (mailrelayXXXX.megamailservers.eu) are refusing to accept the message from localhost on the webserver.
This should result in the message being returned to sender, bit unfortunately we don't have a localhost mailbox for it to be returned to - so the message is discarded. Sad
David
David
andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: Delays to email coming from PHP on Hostopia

Bob,
am receiving orders on my website and still no confirmation emails (either to me or customers) .. should I raise this as a ticket or is there anything you can suggest?
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,886
Thanks: 4,977
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

Quote from: spraxyt
"Mail sent successfully" when using phpmailer means the localhost relay (webserver) has accepted it. Disappearing after that means the Hostopia relays (mailrelayXXXX.megamailservers.eu) are refusing to accept the message from localhost on the webserver.

There is the possibility that the email *is* accepted by Hostopia's relays and rejected refused at the recipient side.
Where is the destination email address hosted Andy? If not Plusnet, then does the situation change if you try testing to a Plusnet-hosted address?
If that still doesn't offer any clues, then raise a support ticket, post the ID here and I'll get it raised into Hostopia for you (same with you Mike).
Really sorry that you're having problems for the third time in almost as many weeks Embarrassed

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

mikep
Dabbler
Posts: 17
Thanks: 3
Registered: ‎31-03-2015

Re: Delays to email coming from PHP on Hostopia

I have raised a ticket regarding the non receipt of php mail from hostopia id102225170.
regards mike
andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: Delays to email coming from PHP on Hostopia

Bob,
Have tried sending a test message with from/to using my force9 mail address (usual is through my domain name which points to that) and no joy. This has been working fine with numerous daily emails - until now. Will raise a ticket, but mean time attached are headers from a successful email received yesterday (sent using phpMailer).
ticket ref 102226348
andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: Delays to email coming from PHP on Hostopia

So, still no mails coming through ... can I perhaps try SMTP with localhost?
Can someone give me the correct details to try (using phpMailer) ..
host= relay.force9.net
SMTPAuth= false ?
Username = xxx
Password = xxx
Port =  25 ?
?
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: Delays to email coming from PHP on Hostopia

To use SMTP sending all you need is to ensure the /phpmailer folder contains the three files
class.phpmailer.php
class.smtp.php
PHPMailerAutoload.php
Then in a folder of your choice edit proper values into a file such as the following (for a Force9 user):
[code=testing_smtp.php]
<?php
$phpmailerpath = $_SERVER['DOCUMENT_ROOT'] . '/phpmailer';
require "$phpmailerpath/PHPMailerAutoload.php";
$mail = new PHPMailer;
$mail->isSMTP();      // Set mailer to use SMTP
$mail->Host = 'localhost';  // Specify server
$mail->Sender = 'bounceaddress@youruser.force9.co.uk';    // bounce address (defaults to From)
$mail->From = 'yourchoicehere@youruser.force9.co.uk';
$mail->FromName = 'Your Choicer';
$mail->addAddress('someone@example.com', 'Someone Else');    // Add a recipient (name is optional)
$mail->WordWrap = 70;        // Set word wrap to 70 characters (optional)
mail->isHTML(true);                // Set email format to HTML
$mail->Subject = 'Put the subject here';
$mail->Body    = 'Put the HTML message body here <b>some bold text!</b>';
$mail->AltBody = 'Put the plain text here for non-HTML mail clients';
if(!$mail->send()) { // send it
  echo 'Message could not be sent.';
  echo 'Mailer Error: ' . $mail->ErrorInfo;
  exit;
}
echo 'Message sent: date ', date("D, d M Y H:i:s T");
?>
Browse to the file to send it.
David[/code]
David
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,886
Thanks: 4,977
Fixes: 316
Registered: ‎04-04-2007

Re: Delays to email coming from PHP on Hostopia

Hi guys, can you add the URL's to the pages your forms are hosted on to your open tickets? Thanks.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵