Ning Developer Network

I've been looking to make a custom feedback form--- the default form doesn't suffice for my purposes. Since mail() is disabled, does anyone know if there's a substitute? I only want the emails to be sent to me, the network creator.

Thanks.

Tags: email, form, mail

Share

Reply to This

Replies to This Discussion

i Could make this for you i just need the options you want on it like what you want it to ask such as there e-mail,Subject,A text box for them to write want they want to say about the site if this is what you want just tell me here is an example.

Reply to This

Thanks for your help. However, I already have the form designed and the php coded. I just need to know which part of the API sends emails. Is it XG_Message or something?

Reply to This

i do not no but i ca make somthing that is easier than doing stuff with the source code

Reply to This

Hello Eric!

XG_Message is indeed the library that you should use for this functionality. The built in php mail() method will not work.

Cheers!
Mike

Reply to This

I just remembered that I've already written one of these before as a short tutorial. I've attached it as a zip file. Check it out!

Cheers!
Mike
Attachments:

Reply to This

Is there a simpler method for sending mail? I have the php all coded for a custom page, but I just can't seem to find a way to mail it.

If I try

$message = XG_Message::create($_GET['subject'], $_GET['body']);
$message_sent = $message->send($_GET['to'], $_GET['from']);


I get an error for the included XG_Message.php:

Class 'XG_App' not found in /apps/makeprogress/lib/XG_Message.php

Reply to This

Tried mail_example.zip today but get this error:


Fatal error: Call to undefined method XG_Message::create() in /apps/reeftooutback/widgets/emailer/controllers/IndexController.php on line 50

I checked XG_Message.php and create() doesn't even seem to exist. Did it get removed? If so has it been replaced with an updated function?

Reply to This

I am having the same trouble - the error:

Fatal error: Call to undefined method XG_Message::create() in /apps/(etc.) on line 19

using the code from the zip file.

What should it be instead of "$message = XG_Message::create($subject,$msgbody);" if "create()" doesn't exist?

Reply to This

I attached an amended version of Mike's sample which uses XG_Message_Generic.
This works fine.
Attachments:

Reply to This

Livewired.ning.com

Reply to This

Beginner here to Ning...Can someone please help me understand what I need to do to create a form and make it email its content to my mailbox? How do I use the codes Jean-Paul provided? I tried creating a page and pasting the codes there, but it doesn't work. Thank you so much in advance!

Reply to This

JotForm.com or I can make one for you 100% free and to your needs.

Reply to This

Reply to This

RSS

© 2009   Created by Ning Developer Admin

Badges  |  Report an Issue  |  Privacy  |  Terms of Service