Login or Register

RSS IconRecent posts in this topic

avatar
fpradignac on Oct 13. 2006. 5:54 am
Hello,

AC 0.7RC2

When I try to use the "Test mail settings" with the "Default PHP settings", I have this return : "Test mail has been successfully sent", but no email came in my mailbox.

So, is there anywhere a log or PHP info that can tell me about the problem on my server, or misconfiguration, cause I think it's a server issue ?
I'm not abble to use STMP setting anymore : "Notifier has failed to construct mailer object".

Thanks for your help,
françois.

PS : I can sent phpinfo.
avatar
grrreat on Oct 13. 2006. 10:32 am
Have you configured your smtp service via php.ini?

Look for something like and make the appropriate changes.

[mail function]
; For Win32 only.
SMTP = xxx.x.xx.xxx; for Win32 only
smtp_port = 25
sendmail_from= php@yourdomain.com ; for Win32 only


There's actually a file that contains the logs location: cache/log.php
Try the mail thing again and if it didnt work, then paste info from that file here
avatar Staff
Ilija Studen on Oct 13. 2006. 11:00 am
Please check cache/log.php (file content, not output).

This is what test mailer does:

* Construct mailer object based on the data from your configuration (native mailer or SMTP mailer)
* Send the email using that mailer

This means that script will show a success message if mail is forwarded to the mail server and it replied that it will be delivered. Its up to mail server what will be done after that. There is no way that script can actually test if mail is received.
activeCollab team member | LinkedIn
avatar
fpradignac on Oct 13. 2006. 11:29 am
Thanks Grrreat and Ilija,

Here's my log.php after a default php test mail :
-----------------------
Session "default" started at 2006-10-13T16:27:02+0000
#1 ERROR: Error: mail() [<a href='function.mail'>function.mail</a>]: SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE. in '/home/.../Swift/Stream/MailProxy.php' on line 374 (error code: 2)
Time since start: 0.26311016082764 seconds
-----------------------
avatar
grrreat on Oct 13. 2006. 11:34 am
you might need to specify user id and password in php.ini for your smtp server.

Ilija, is that correct?
avatar
fpradignac on Oct 13. 2006. 12:11 pm
@grrreat : I don't have an access to my hosting php.ini :-(
avatar Staff
Ilija Studen on Oct 13. 2006. 2:28 pm
This is the error:

SAFE MODE Restriction in effect. The fifth parameter is disabled in SAFE MODE

Quick search through SwiftMailer and I found this:

/**
 * Attempt to parse the email into something we can send with mail()
 * @param string parseable message
 * @return boolean
 */
private function sendNativeMail($string)
{
	$original_from = @ini_get('sendmail_from');
	@ini_set('sendmail_from', $this->from);
	$extra = "-oi -f ".$this->from;
	$sent = @mail(
	  implode(', ', $this->getTo($string)),
	  $this->getSubject($string),
	  $this->getBody($string),
	  $this->getHeaders($string),
	  $extra);
	@ini_set('sendmail_from', $original_from);
	return $sent;
}

Try removing $extra param from mail() function call.

Note that this is dirty hacking because I'm not familiar with internal working of SwiftMailer library. This might or might not work. If it does not work and you need a working mailing:

1. provide SMTP server
2. ask your hosting provide to turn of Safe mode for PHP.
activeCollab team member | LinkedIn
avatar
fpradignac on Oct 13. 2006. 3:37 pm
@Ilija, I've tried to remove $extra : same issue.

1. When I put the SMTP server of my provider, I keep getting "Notifier has failed to construct mailer object" (nothing in log.php)
2. My provider keep safe mode on.
avatar
ideapower on Feb 9. 2007. 4:13 pm
I'm still having problem. My php.ini doesn't have any place for username and password to the SMTP server. Could this be an issue? If so, can someone help me with the syntax for putting that in? (I have no clue)
avatar Staff
Ilija Studen on Feb 9. 2007. 8:50 pm
In 0.7.1 you can specify SMTP server in the administration (Configuration -> Mail).
activeCollab team member | LinkedIn
Topic is locked. If you have something important to say about issues discussed on this page please write at hi@a51dev.com.

RSS IconRecent posts in this topic