Can i set two different kind of actions on one form?
Hey guys
i was making one web sites. in that, there is one page on which i have one form, so in thati want two thing done on same data.1) it should store in the database 2) that form data should also to be send on one email account.i know i can do this if i use "mail" function of php and on that same php file, i can store that. but i don't want my mail goes to spam [ if i use mail function then my mails are going as spam in users email. ]
So is there any way that i can 开发者_如何学Pythondo two different action on same form data.
and what is there any other way to do the same.btw i am using drupal-6.
thanks in advance.
Nitz. EDIT:I don't want my mails go as spam. i am sending mail using this kind of code....
<form action="http://www.bluehost.com/bluemail" enctype="multipart/form-data" method="POST">
Name : <input type="text" readonly value= "me"><br>
EMail ID : <input type="text" id="email" name="mailfrom"><br>
Query : <textarea name="comments" id="comments" rows="5" cols="19"></textarea>
<input type="hidden" name="sendtoemail" value="admin@example.com"><br>
<input type="submit" value="Thank You"></form>
now by this way my mails are not going as spam.
so now what i want is....i want to send mails and also want to store information in database also.it is most likely due to the smtp that is used by php mail or the senders address. Try with another mailer library where you can customize more (e.g. use another smtp server). see https://stackoverflow.com/questions/1872639/good-php-email-library
精彩评论