Elxis CMS Forum

Support => Administration => Topic started by: rentasite on September 24, 2008, 03:42:23

Title: Problem with Form, sending emails [SOLVED]
Post by: rentasite on September 24, 2008, 03:42:23
Hi,

I have a problem with an Elxis installation.

- I cannot make the site's contact form send emails. So someone can help me, clear this out?

In Administration panel / Global Configuration / Mail  we have 3 options

- PHP mail function
- Sendmail
- SMTP Server

I changed/played with those 3 settings. I did some tests but i wasn't able to receive messages that were submitted through the form. What should i check? And especially from the server's side? What are the most common settings i should take a look so an Elxis installation can run smoothly regarding the form and in general... sending email options. (Note: For sendmail its set to /usr/sbin/sendmail ).

 ???

Thanks in advance
Spiros


Title: Re: Problem with Form, sending emails
Post by: rentasite on September 25, 2008, 02:15:37


No one has faced such problem with his contact form ?    ???
Title: Re: Problem with Form, sending emails
Post by: Ivan Trebješanin on September 25, 2008, 02:34:48
It is usually server setting, I never noticed anything wrong, so it must be problem with some specific server.
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 25, 2008, 09:04:14
It is usually server setting, I never noticed anything wrong, so it must be problem with some specific server.

Ivan, which option between  "PHP mail function" and "Sendmail" do u use?
Title: Re: Problem with Form, sending emails
Post by: babis1 on September 25, 2008, 13:35:06
i use PHP mail function and i have not problem  ???
Title: Re: Problem with Form, sending emails
Post by: Ivan Trebješanin on September 25, 2008, 13:40:29
Yes, that is the best option for most users. I use SMTP only if authentication is required.
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 25, 2008, 14:51:42
Yes, that is the best option for most users. I use SMTP only if authentication is required.

Ok i sellect the "PHP mail function" option. In which email account do the emails go? I do not receive anything.

Im realy messed up withis so suddenly. From my Support i got this message:

==================================================================
I checked your VPS out, and ran a simple mail script in PHP, and it ran fine.  It appears that everything on
the server is setup already to do what you want.  The problem appears to be in your script for the form.
==================================================================

Is there anything else i should check, except from just sellecting "PHP mail function" ??


Title: Re: Problem with Form, sending emails
Post by: ks-net on September 25, 2008, 17:29:51
have you connect a user with that contact?which one? has he a correct email address?
have you setup correctly your email account(or other user's which is connected with that contact form) in users administrator

edit: use php mail.
Title: Re: Problem with Form, sending emails
Post by: xmanhattan on September 25, 2008, 18:05:06
Supernet,

Yes, the php mail function setting should work and normally works using sendmail on most servers.
Check that the sendmail directory on your server is as shown in your config, e.g.
Code: [Select]
/usr/sbin/sendmail
Then you should also be using an email address that is setup to receive the form in the form.
Code: [Select]
<form method="post" action="http://www.formname.ext" name="web_mail">
<input type="hidden" name="recipients" value="name@yourdomain.tld">

I normally do not use the same address as regular addresses so that I can change them from time to time due to spam.

Title: Re: Problem with Form, sending emails
Post by: Ivan Trebješanin on September 25, 2008, 22:31:07
==================================================================
I checked your VPS out, and ran a simple mail script in PHP, and it ran fine.  It appears that everything on
the server is setup already to do what you want.  The problem appears to be in your script for the form.
==================================================================

Wich elxis version are you using?
Title: Re: Problem with Form, sending emails
Post by: ks-net on September 26, 2008, 01:27:30
give an url to see the form that you are using?

P.S in your signature you have two site, none has a proper form or a correct setup. we are talking about them?
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 26, 2008, 11:57:32
==================================================================
I checked your VPS out, and ran a simple mail script in PHP, and it ran fine.  It appears that everything on
the server is setup already to do what you want.  The problem appears to be in your script for the form.
==================================================================

Wich elxis version are you using?

2008 but LOL What difference does it make?




Title: Re: Problem with Form, sending emails
Post by: rentasite on September 26, 2008, 11:58:18
give an url to see the form that you are using?

P.S in your signature you have two site, none has a proper form or a correct setup. we are talking about them?

No mate, im not talking about the urls in my signature.

WHERE DID U SEE THE NON PROPER SETUP ?

Thanks
Title: Re: Problem with Form, sending emails
Post by: babis1 on September 26, 2008, 14:25:34
components-contacts-manage contacts-select one account -set the user to no user-write the  infos -in the position email write your email adress- write a validate seo title-save it-go to menu select one menu (your visible menu pe main - new  - link contact item - give the name pe contact us-select the contact link -save it
Title: Re: Problem with Form, sending emails
Post by: ks-net on September 26, 2008, 14:35:23
give an url to see the form that you are using?

P.S in your signature you have two site, none has a proper form or a correct setup. we are talking about them?

No mate, im not talking about the urls in my signature.

WHERE DID U SEE THE NON PROPER SETUP ?

Thanks

one of them uses the default example of elxis installation the other has an wrapper with ext  form and action to (#public) .. i am not sure, is this this correct?

but no matter if you are not talking about them..... say that i wrote nothing.

why don't you give people here some more detail about,
 for e.g  the form script or the form html code?
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 26, 2008, 17:42:03
why don't you give people here some more detail about,
 for e.g  the form script or the form html code?

Maybe u didnt understand. The phrase "ran a simple mail script in PHP" wasnt mine. It was my provider's answer, for "PHP mail function".

SO IM'TALKING ABOUT THE DEFAULT ELXIS FORM. No other form, no other script.


Thanks
Title: Re: Problem with Form, sending emails
Post by: ks-net on September 26, 2008, 20:34:32
what about this?

have you connect a user with that contact?which one? has he a correct email address?
have you setup correctly your email account(or other user's which is connected with that contact form) in users administrator


and this from babis1 ?

Quote
components-contacts-manage contacts-select one account -set the user to no user-write the  infos -in the position email write your email adress- write a validate seo title-save it-go to menu select one menu (your visible menu pe main - new  - link contact item - give the name pe contact us-select the contact link -save it

have you done these above?
Quote
Maybe u didnt understand. The phrase "ran a simple mail script in PHP"  wasnt mine. It was my provider's answer, for "PHP mail function"
this doesn't mean that you don't use other form- script or that you use elxis default function, never mentioned before what is the form that don't works for you.
Anyway...

P.S have in mind that people try to help you...  that's why we ask you so many things, also none else have mention a problem with form contact in elxis , think that may be your fault.
From the details that you mention here is not quit clear were is your problem ... must be more specific... must be sure that you have publish  a contact in elxis the proper way ... and so on.
From the first time i suspected that you haven't publish correct your contact in elxis, i asked and got no answer,
babis1 also mention that.. no comment again. look at the quotes please.
maybe there the answer to your problem.
Title: Re: Problem with Form, sending emails
Post by: babis1 on September 26, 2008, 21:07:09
for me is the first time who read a problem with emails in elxis (i dont search the forum) and i would like to know if there is some bug or problem with the component contact
Title: Re: Problem with Form, sending emails
Post by: ks-net on September 26, 2008, 21:20:49
for me is the first time who read a problem with emails in elxis (i dont search the forum) and i would like to know if there is some bug or problem with the component contact

do you have a problem with contact form?
Title: Re: Problem with Form, sending emails
Post by: babis1 on September 26, 2008, 22:34:22
no i have'nt ,its the first time who read something like this (i mean supernet problem).For me maybe its server problem, or he try to made a custom form. I dont know
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 27, 2008, 02:23:33
Guys, first of all i must say that its not the 1st Elxis installation i have proceeded. The problem is very mysterious for me also.

I tried anything that i could try. Especially what babis1 said (quote).

components-contacts-manage contacts-select one account -set the user to no user-write the  infos -in the position email write your email adress- write a validate seo title-save it-go to menu select one menu (your visible menu pe main - new  - link contact item - give the name pe contact us-select the contact link -save it

- As u can see in the pic, i have set the Mailer to "PHP Mail function" in the site's Configuration area.
- I have tried also "Sendmail".
- YES, the email accounts are set ok.
- YES, i also tried "NO USER" in "Manage Contacts".


*** ...and im talking about the default Elxis form. No other script, no nothing ***


[attachment deleted by admin]
Title: Re: Problem with Form, sending emails
Post by: babis1 on September 27, 2008, 09:47:23
your global is good, in your site you see the contact form if you go to the link contact us? when you write something and send it after gives you the thanks page? try to take off the security image.Your elxis installation is on server that in the past you had install other elxis with no problems or is in a new server?
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 27, 2008, 10:29:18
your global is good, in your site you see the contact form if you go to the link contact us? when you write something and send it after gives you the thanks page? try to take off the security image.Your elxis installation is on server that in the past you had install other elxis with no problems or is in a new server?

- Yes i see tha contact form.
- Yes it gives me the "Thanks" message.
- Im not going to take off Captcha, of course   8)
- Yes, the installation is on a server with many other Elxis installationS.
Title: Re: Problem with Form, sending emails
Post by: babis1 on September 27, 2008, 10:33:20
ok and you cant take those messages in your outlook or thunderbird? i thing there is not elxis problem. in this account can you take emails from other mails?
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 27, 2008, 10:36:42
ok and you cant take those messages in your outlook or thunderbird? i thing there is not elxis problem. in this account can you take emails from other mails?

Nai Babi :)
Title: Re: Problem with Form, sending emails
Post by: babis1 on September 27, 2008, 10:48:28
hands up  ;D call elxis police department E.P.D i smell some very small problem but where is this? you test everything. if there is some elxis problem i think that you will have and some php warnings but now all the things working fine.where going your lost emails oeo?
Title: Re: Problem with Form, sending emails
Post by: rentasite on September 27, 2008, 20:31:03
SOLVED !!!!!!!!!!!

There was an option on WHM, that was checked. That option should be unchecked! And it was unchecked... until some VPS's software was upgraded. Don't know really know what upgrade... TURNED ON the option seen below:  ::)

Prevent the user "nobody" from sending out mail to remote addresses (PHP and CGI scripts generally run as nobody if you are not using PHPSuexec and Suexec respectively.)

So check your form's once again !!! Cause u never know...