Php email from intranet form to DH

software development

#1

I’ve got an intranet webserver with a form. When the user clicks “submit” it updates a database.

I’d like have the system send an email notice with the form contents. We use DH for our external website and email host.

Is this possible?

Currently, my php.ini file contains:

[code][mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = mail.mydomain.com
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = me@example.com
sendmail_from = dxadmin@mydomain.com[/code]

I’ve also tried port 587.
My php code contains:
[php]
//Send Email @93-1F4E470B
global $ECO1;
ini_set(“SMTP”, “mail.mydomain.com”);
$to = "dx@mydomain.com";
$subject = “Test”;
$message = “test”;
$from = "dxadmin@mydomain.com";
$charset = “Windows-1252”;
$transferEncoding = “”;
$additional_headers = “From: $from\nReply-To: $from\nContent-Type: text/plain; charset=$charset\nContent-Transfer-Encoding: $transferEncoding”;
mail ($to, $subject, $message, $additional_headers);
ini_restore(“SMTP”);
//End Send Email[/php]