Page 1 of 1

mail function

Posted: Tue 29. Jul 2008, 03:07
by dracus
Hi,

It seems that mail function in phpwcms 1.3.9 does not work.
I am constantly receivnig:
Could not instantiate mail function
Any sugestions or doubts?

Regards,
Dracus

Re: mail function

Posted: Tue 29. Jul 2008, 18:51
by dracus
I am really out of concepts what can be wrong.

Is anyone having same problems?

I would be very glad for any tips or sugestions.

Re: mail function

Posted: Tue 29. Jul 2008, 18:58
by update
tip 1:
http://forum.phpwcms.org/viewtopic.php? ... l+function
tip2:
search for Could not instantiate mail function
tip3:
http://forum.phpwcms.org/viewtopic.php? ... l+function
running out of tips - perhaps this is some kind of hmmm... ;)

Re: mail function

Posted: Wed 30. Jul 2008, 03:26
by dracus
Hi Claus,

Thanks for tips.
I have change "mail" to "sendmail" in config.php.

Unfortunately emails cannot be delivered from email form to recipient. There is no problem with copy to sender.
I am testing this here:
http://euromed.ie/index.php?contact

I would like to add that emails are hosted on Google servers (Google Apps).

I was trying to set up smtp but it does not work also.
Google needs “ssl” also port 465.
Does anybody know how to set up properly smtp in email form for google apps?

I would be glad for answer.

Regards,
Dracus

Re: mail function

Posted: Wed 30. Jul 2008, 06:05
by juergen
First: SMTP Error: Could not connect to SMTP host.


There is the reason for the mail .. stop using smtp service, change to 'mail' in conf.inc.php

Googlebaby may pull emails from your account, it may also sent "looklike" your account, but php needs server account. No real account, only servers sendmail with whatever you think is the name of that.

... ;)

Re: mail function

Posted: Sun 17. Aug 2008, 06:44
by santscho
In my case, I got the error when I tried to use 'mail'. The webserver of Singapore Red Cross did not understand this mail function, even the mails were delivered correctly. I sovled this problem like this:

Code: Select all

{{{
$phpwcms['SMTP_FROM_EMAIL'] = 'postmaster@domain.com';
$phpwcms['SMTP_FROM_NAME'] = 'Postmaster';
$phpwcms['SMTP_HOST'] = 'smtp.domain.com';
$phpwcms['SMTP_PORT'] = 25;
$phpwcms['SMTP_MAILER'] = 'smtp';
$phpwcms['SMTP_AUTH'] = 1;
$phpwcms['SMTP_USER'] = 'postmaster@domain.com'; 
$phpwcms['SMTP_PASS'] = '[password for postmaster@domain.com]';
}}}