Page 1 of 1
contact form smtp
Posted: Tue Mar 21, 2006 8:44 am
by qwe123
Where can i specify wich SMTP server the contact form should use? I can not find anywhere settings for smtp server in either cmsms or the contact form tag.
If i try to use contact form i get the message "Sorry, the message was not sent. The server may be down!"
David
Re: contact form smtp
Posted: Tue Mar 21, 2006 9:07 am
by cyberman
contact form tag use mail for sending requests. It's IMHO not possible to use smtp. Perhaps you should try feedback form ...
Re: contact form smtp
Posted: Tue Mar 21, 2006 3:34 pm
by qwe123
Sorry if I appear dumb, but what do you mean by mail? Is that a module in cmsms?
I will try feedback form, but I'm still curious to understand what I need to do to get the contact form to work.
/David
Re: contact form smtp
Posted: Tue Mar 21, 2006 3:37 pm
by calguy1000
he meant that the contact form uses the php mail function, which requires configuration in the php.ini
the feedbackform module requires the cmsmailer module which also allows you to choose between mailer methods.
Re: contact form smtp
Posted: Tue Mar 21, 2006 8:24 pm
by jelle
Maybe the contactform should be refactored so it could use the cms/phpmailer class if installed, or else default to the mail php function?
Re: contact form smtp
Posted: Sat Apr 01, 2006 2:28 pm
by davidL
I have tried to use feedback form to achieve something similar to contact form, but failed since I can not get the cmsmailer module to work. I’ve tried two different smtp servers but it doesn’t work. Are there any known problems with this module? I’m not sure if it’s me or some form of bug. If I send a test email through the cmsmailer admin it appears to work (no error messages and I get back to original page after pressing send) but no emails are delivered.
I agree that it would be good if contact form could use the cmsMailer module since not everyone may have access to specify a server in php.ini (I don’t). I also did not find a way to get feedback form to work exactly as contact form so feedback form can’t work as a replacement
/David
Re: contact form smtp
Posted: Sat Apr 01, 2006 2:33 pm
by calguy1000
The CMSMailer module is in use by alot of other modules used for sending messages. Unfortunately CMSMailer isn't very nice in the feedback it provides (it doesn't provide much at all).
As a fallback, try setting the mailer method to "mail", this will use the php.ini settings on your host, and should just work fine for you.
Re: contact form smtp
Posted: Sat Apr 01, 2006 2:36 pm
by davidL

you answered while i was editing my post. I cant acess php.ini

Re: contact form smtp
Posted: Sun Apr 02, 2006 8:08 am
by cyberman
What result has the php instruction phpinfo() on your account? Especially this line:
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
(It's a line from one of my accounts

)
It will be shown under Configuration PHP Core.
Re: contact form smtp
Posted: Mon Apr 03, 2006 4:30 pm
by davidL
It seems I spoke to soon. It actually seems to work. Today I got like 10 mails from the cmsmailer. All being sent on Saturday when I was playing with the module

. They must have gotten stuck in some thin cables on their delivery

. I tried the module again and now it worked immediately. Strange that both smtps i tried were giving delayed deliverys
Sorry to bother you. I very much appreciate your will to help
/David