Help configuring email

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
pvallone
Posts: 10
Joined: 03 Sep 2008, 00:16

Help configuring email

Post by pvallone »

Hi,

I host mantis mantis-1.1.2. on a 3rd party server. I am trying to test the email notification, but it just says "PROBLEMS SENDING MAIL"

Here is my config.

$g_phpMailer_method = 1;
$g_smtp_host = 'sendmailx.xxxxxxx.com';
$g_smtp_username = 'xxx@xxxx.com';
$g_smtp_password = 'xxxx';
$g_email_send_using_cronjob = ON;
$g_email_set_category = OFF;

I have confirmed sendmail address, username and password are correct.

Any ideas?
thx
pvallone
Posts: 10
Joined: 03 Sep 2008, 00:16

Re: Help configuring email

Post by pvallone »

Anyone?

If I can't send an email using send mail can I uses a php script? If so how do i configure it point to the script file?

Code: Select all

g_phpMailer_method = 0;

Code: Select all

<?

require("c:\php\includes\class.phpmailer.php");



$mail = new PHPMailer();



$mail->IsSMTP();

$mail->Host = "mail.YourDomain.com";

$mail->SMTPAuth = true;

$mail->Username = "you@domain.com";

$mail->Password = "EmailPassword";



$mail->From = "you@domain.com";

$mail->FromName = "Your Name";

$mail->AddReplyTo("you@domain.com"); 

$mail->AddAddress("user@domain.com"); 

$mail->IsHTML(true);

$mail->Subject = "Test message sent using the PHPMailer component";

$mail->Body = "This is a test message.";

$mail->Send();

?>
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

Re: Help configuring email

Post by vzw614 »

Change this value to use SMTP

$g_phpMailer_method = 2;
pvallone
Posts: 10
Joined: 03 Sep 2008, 00:16

Re: Help configuring email

Post by pvallone »

Thanks but that didnt work either. Is there a way to use a php script?
pvallone
Posts: 10
Joined: 03 Sep 2008, 00:16

Re: Help configuring email

Post by pvallone »

I've been working on this for days. Here is my config:

Code: Select all

$g_phpMailer_method = 2;
$g_smtp_host = 'sendmailx.xxxxxxx.com';
$g_smtp_username = 'xxx@xxxx.com';
$g_smtp_password = 'xxxx';
$g_email_send_using_cronjob = ON;
$g_email_set_category = OFF;
Any help would be appreciated. As a note. I use joomla with the same settings and my email works. What am I missing?

Thanks,
pvallone
Posts: 10
Joined: 03 Sep 2008, 00:16

Re: Help configuring email

Post by pvallone »

After searching the forum for similar issues, its clear that many people have this issue. Not sure what it takes to get any decent help, I'll probably try bugzilla.

:(
vzw614
Posts: 143
Joined: 15 May 2008, 14:59

Re: Help configuring email

Post by vzw614 »

Are you trying to use SMTP? If you are, does your smtp server use the default port or a different port? (25 is default I believe). If it uses a different port check the config file and it shows how to include the port number to use.

Have you checked your php.ini file to make sure the SMTP setting are correct there also?
pvallone
Posts: 10
Joined: 03 Sep 2008, 00:16

Re: Help configuring email

Post by pvallone »

Hi vzw614,

My site is hosted by a 3rd party, which uses a SMPT server. I added the default port (25). Since the site is hosted, I cant access the ini file. The funny thing is, I have a similar configuration for joomla, which works.

Thanks for the help.

Phil
dgizusse
Posts: 1
Joined: 08 Oct 2008, 01:56

Re: Help configuring email

Post by dgizusse »

Same issue here. I tried with both version 1.1.2 and 1.2.0a2. Something must be wrong with Mantis since all my other services are working fine.
allan
Posts: 11
Joined: 11 May 2007, 12:30
Location: Campinas, SP - Brazil

Re: Help configuring email

Post by allan »

Hi there, take a look at this:
http://www.mantisbt.org/wiki/doku.php/m ... il_queuing

When email_send_using_cronjob is ON you need to execute a command to send the emails saved on the queue.
=======================
Allan Herbert Medeiros
allan.medeiros@transdatasmart.com.br
Transdata Smart Automation Services
http://www.transdatasmart.com.br
Campinas, SP - Brazil
Post Reply