Send email via form

fluffy2001 - February 22, 2005 - 14:21

maybe somebody can give me example of form and file that sending email in drupal (using windows)

thanks

Possibly webform

jnt - February 22, 2005 - 15:14

Hi, not sure if I understand your requirements however the webform module will send an email to a selected address when a form is filled out.

jnt

Webform patch increases email flexibility

jnt - February 24, 2005 - 04:04

Hi, I just added a new patch that increases webforms functionality in email handling. It may be relevent to this thread, you can get it here: http://drupal.org/node/17433

jnt

Thank you very much. I'll

fluffy2001 - February 24, 2005 - 14:43

Thank you very much.
I'll try it.

http://www.geocities.com/oonlineslots/

feedback.module

Aran Deltac - February 22, 2005 - 16:38

Check out feedback.module as well.

Whether you are on windows or not does not really effect how well drupal sends e-mails. Since you are on windows you will, like someone on linux or anything else, need to make sure that your php.ini file is configured correctly for your network to send e-mail.

--
http://www.electroniclife.org/

email on windows configuration and ini_set

Shawn Faison - February 23, 2005 - 07:46

Also if you are getting errors and dont have access to the php ini with your host you can use these two lines at the top of the php page thats calling the mail function.

ini_set(sendmail_from, "you@yoursite.com");
ini_set(SMTP, "mail.yourmailserver.com");

This worked for me!

zakpet - January 3, 2006 - 16:45

Thanks Shawn Faison for the great patch!

Hooked on PHP worked for me!

Can you tell me what page I

g9mickey - May 1, 2008 - 21:38

Can you tell me what page I should add this text to? would it be mail.inc? Do I need to past it in in any particular place in the file? I have my site on crystal tech and they reccommend:

// Please specify your Mail Server - Example: mail.yourdomain.com.
ini_set("SMTP","mail.YourDomain.com");

// Please specify an SMTP Number 25 and 8889 are valid SMTP Ports.
ini_set("smtp_port","25");

// next two lines added by REW, CrystalTech
// Please specify the return address to use
ini_set('sendmail_from', 'ValidEmailAccount@YourDomain.com');

 
 

Drupal is a registered trademark of Dries Buytaert.