Page 1 of 1

email function

Posted: Mon Jun 30, 2003 4:56 am
by mustafa
how can i relay mail form a web server to an externel mail server.


i am using linux server

my code is:
<?php

include("dbconfig.php");

$subject=$HTTP_POST_VARS['subject'];

$email=$HTTP_POST_VARS['email'];

$inquiry=$HTTP_POST_VARS['inquiry'];

$query="insert into inquiry (mi_subject,mi_mail,mi_inquiry,mi_repliedinq) values ('$subject','$email','$inquiry',0)";

$result=mysql_query($query);

mail($email,$inquiry,$query,"from:mth52@yahoo.com");

?>

Posted: Mon Jun 30, 2003 5:01 am
by twigletmac
Are you getting an error message with your code? Is something working/not working as it shouldn't/should?

Mac

Posted: Tue Jul 01, 2003 3:03 am
by twigletmac
Try and keep all posts on one topic in the same thread, cross-posting makes me sad :cry:

viewtopic.php?t=10247

Mac