Welcome Guest, Not a member yet? Register   Sign In
Contact form
#1

[eluser]doubleplusgood[/eluser]
Hi there,

I was wondering if anyone knew of any sample contact forms in CI that email the data to a specified address?

Thank you.
#2

[eluser]pistolPete[/eluser]
Did you look at the user guide?
These two pages should point you into the right direction:

- http://ellislab.com/codeigniter/user-gui...ation.html
- http://ellislab.com/codeigniter/user-gui...email.html
#3

[eluser]doubleplusgood[/eluser]
@pistolPete Hey, yes I did a sample form just asking for name and email, but it gave some errors;

An Error Was Encountered
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.
#4

[eluser]skunkbad[/eluser]
[quote author="Hanabi" date="1255406951"]@pistolPete Hey, yes I did a sample form just asking for name and email, but it gave some errors;

An Error Was Encountered
Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.[/quote]

Your server is either not configured to send mail, or may require sending mail with a different configuration, like SMTP. You should contact your host for email requirements. A lot of hosts require SMTP, which sometimes means you need an existing email account, and that you use its username and password to verify that your email isn't spam.
#5

[eluser]doubleplusgood[/eluser]
At the moment i'm just testing locally using MAMP on MacOSX. Even tried just setting the smtp to localhost.
#6

[eluser]skunkbad[/eluser]
[quote author="Hanabi" date="1255408189"]At the moment i'm just testing locally using MAMP on MacOSX. Even tried just setting the smtp to localhost.[/quote]

WAMP, MAMP, XAMP, LAMP; none come with an email MTA that I know of. Just pretend it worked...
#7

[eluser]Unknown[/eluser]
Maybe a bit late, but in order to use sentmail on MacOS X, you have to enable it. There used to be a freeware App. but it seems to have disapeared.
There is a shareware app on http://www.cutedgesystems.com that does the job. A license is $25,- But you can setup a complete email server with it.




Theme © iAndrew 2016 - Forum software by © MyBB