mail function

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
dracus
Posts: 12
Joined: Thu 29. Mar 2007, 03:48

mail function

Post 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
dracus
Posts: 12
Joined: Thu 29. Mar 2007, 03:48

Re: mail function

Post 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.
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Re: mail function

Post 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... ;)
It's mostly all about maintaining two or three customer's sites Still supporter for the band Mykket Morton. Visit Mykket Morton on FB. Listen Mykket Morton and live videos on youtube.
Now building a venue for young artists to get wet on stage, rehearsal rooms, a studio, a guitar shop - yes I'm going to build some guitars.
dracus
Posts: 12
Joined: Thu 29. Mar 2007, 03:48

Re: mail function

Post 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
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Re: mail function

Post 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.

... ;)
User avatar
santscho
Posts: 1442
Joined: Mon 2. Apr 2007, 08:56
Location: Schweiz

Re: mail function

Post 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]';
}}}
Schon Konfuzius sagte: "Sei kein YAML-Lappen". YAML-phpwcms-Integration auf http://www.yaml.phpwcms.org
Post Reply