It is currently Sat Sep 23, 2017 6:13 pm


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: sendmail will not work again!
PostPosted: Sat Sep 13, 2008 10:16 pm 
Newbie
Newbie

Joined: Mon Apr 09, 2007 6:10 am
Posts: 5
and I have submitted a suport ticket,does anyone else have this problem going on? also I have the value plan not the free plan.[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 14, 2008 2:10 am 
Site Admin

Joined: Wed Jul 30, 2008 4:04 pm
Posts: 38
Currently there are no issues sending e-mails via php script. I uploaded an example script in your FTP space and it is working properly. You can see it here:
http://tnt-entertainment.biz/sendmail.php

_________________
Best Regards,

Kevin


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 14, 2008 3:30 pm 
Newbie
Newbie

Joined: Mon Apr 09, 2007 6:10 am
Posts: 5
thanks for fixing it :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 14, 2008 11:59 pm 
Site Admin

Joined: Wed Jul 30, 2008 4:04 pm
Posts: 38
You are welcome!

_________________
Best Regards,

Kevin


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 04, 2008 4:04 pm 
Newbie
Newbie

Joined: Sat Oct 04, 2008 3:59 pm
Posts: 2
Hello, could you please help me out on this?

I can't get my code to send an email. I've tried everything. The mail() command, an external phpmailer class, nothing seems to work ...

I've been looking for 4 hours for this now, and I can't get a simple mail command to work, I really need some help. A working source code would be awesome. This is what I have, and it's not working:

Code:
<?php

//error_reporting(E_ALL);
error_reporting(E_STRICT);

date_default_timezone_set('America/Toronto');

include("class.phpmailer.php");
//include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded

$mail             = new PHPMailer();

$body             = $mail->getFile('contents.html');
$body             = eregi_replace("[\]",'',$body);

$mail->IsSMTP();
$mail->SMTPAuth   = true;                  // enable SMTP authentication
$mail->SMTPSecure = "ssl";                 // sets the prefix to the servier
$mail->Host       = "smtp.gmail.com";      // sets GMAIL as the SMTP server
$mail->Port       = 465;                   // set the SMTP port for the GMAIL server

$mail->Username   = "myaccount@gmail.com";  // GMAIL username
$mail->Password   = "mypassword";            // GMAIL password

$mail->AddReplyTo("mymail@gmail.com","My Name");

$mail->From       = "mymail@gmail.com";
$mail->FromName   = "test test";

$mail->Subject    = "PHPMailer Test Subject via gmail";

//$mail->Body       = "Hi,<br>This is the HTML BODY<br>";                      //HTML Body
$mail->AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->WordWrap   = 50; // set word wrap

$mail->MsgHTML($body);

$mail->AddAddress("reciever@anymail.com", "Computer Addict");

$mail->AddAttachment("images/phpmailer.gif");             // attachment

$mail->IsHTML(true); // send as HTML

if(!$mail->Send()) {
  echo "Mailer Error: " . $mail->ErrorInfo;
} else {
  echo "Message sent!";
}

?>


That's from the class, here's some PHP code that I tried:

Code:
<?
include("Mail.php");

$recipients = "reciever@gmail.com";

$headers["From"]    = "my@mail.com";
$headers["To"]      = "my@mail.com";
$headers["Subject"] = "Hey!";

$body = "TEST MESSAGE!";

$params["host"] = "smtp.gmail.com";
$params["port"] = "465";
$params["auth"] = true;
$params["username"] = "my@mail.com";
$params["password"] = "mypw";

echo "First Stage";

// Create the mail object using the Mail::factory method
$mail_object =& Mail::factory("smtp", $params);

echo "Middle Stage";

// Send the mail off
$mail_object->send($recipients, $headers, $body);

echo "Final Stage";
?>


Now with this code, it does the first and middle stages, but it fails at sending off the mail. The request times out.

Any ideas? Some help would be really appreciated. I can't solve this :/


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 04, 2008 4:43 pm 
Newbie
Newbie

Joined: Sat Oct 04, 2008 3:59 pm
Posts: 2
I've also tried imap. On freehostia and on my own XAMPP server. Everything is supported, the ports are not blocked by my ISP, because I checked, but still it's not working:

Here's the imap code, just in case that helps:

Code:
]
<?php

   $server = "imap.gmail.com";

   $user = "myacc@gmail.com";

   $pass = "mypass";

   $conn = @imap_open("\{$server:993/imap/ssl}INBOX", $user, $pass)
   or die("Connection to server failed -> ".imap_last_error());

?>


This is the error I get on freehostia
Connection to server failed -> Certificate failure for imap.gmail.com: unable to get local issuer certificate: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=imap.gmail.com

This is the error on my XAMPP server
Can't open mailbox \{imap.gmail.com:993/imap/ssl}Inbox: no such mailbox


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 04, 2008 6:10 pm 
Support Tech
Support Tech

Joined: Tue May 09, 2006 2:27 am
Posts: 933
Please open a trouble ticket regarding this issue. Then we will be able to assist you further. This you can do via "Help Center" menu of your Control Panel.

Looking forward to hearing from you.

_________________
Andy
ModeratorsTeam
Freehostia.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 15, 2011 5:25 am 
Newbie
Newbie

Joined: Tue Feb 15, 2011 5:06 am
Posts: 1
I am getting problem when I click send and receive button. As per my knowledge what coding done is perfect. But not able to get where is the problem. Because in every project for mails the coding is same. I am facing this problem first time.

Please help me out.

_________________
Motorhomes for sale


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011