JcX Posted July 30, 2008 Share Posted July 30, 2008 This problem seems to occur after migration to Stevie. My PHP mail() function seems like not working anymore. I've a script on my site, whereby will send automated mail whenever user post in my guestbook to notify me of it. but recently, it seems like not working anymore. Could you please check for me?? Thanks for supporting. Earnest, JcX Quote Link to comment Share on other sites More sharing options...
Ashoat Posted July 30, 2008 Share Posted July 30, 2008 It is working 100% for me. What is the email you are putting in the "From" header? Quote Link to comment Share on other sites More sharing options...
CriBaby Posted July 30, 2008 Share Posted July 30, 2008 I haven't done a thorough test, but it appears to be working for me too. My forums haven't hiccuped, anyway. Quote Link to comment Share on other sites More sharing options...
JcX Posted July 31, 2008 Author Share Posted July 31, 2008 <?php $name = $_GET['Name']; $To = "JcX<john_vict8@hotmail.com>"; $Subject = "Guestbook Notice"; $message = $_GET['Message']; $Body .= "New guestbook entry from: $name \n\n"; $Body .= "$message"; mail($To, $Subject, $Body, "From: $name"); ?> My PHP mail() function is as simple as this. It used to work when user sign my guestbook, but not now anymore... I wonder why.... hope you all help.... thanks Quote Link to comment Share on other sites More sharing options...
Trippin Posted July 31, 2008 Share Posted July 31, 2008 Well unless the Name field on your form asks for the users email that might be why. I always assumed the from: had to be an email address. Quote Link to comment Share on other sites More sharing options...
Ashoat Posted July 31, 2008 Share Posted July 31, 2008 Yeah, Trippin is right. Quote Link to comment Share on other sites More sharing options...
JcX Posted August 1, 2008 Author Share Posted August 1, 2008 Well... not really. It just GET the string that user input, as name, not valid email address. And in my hotmail inbox, it displays the sender as jcx@server.heliohost.org if I typed JcX in the Name field. or djbob@server.jcx.heliohost.org if someone typed djbob. It just simply replace the name@server.heliohost.org. So... I just don't know why it malfunction after I migrate to Stevie. *Note: I don't find it in my junk mailbox either.... EDIT: I guess I know the problem why... the domain of sender has been modified to @stevie.heliohost.org Quote Link to comment Share on other sites More sharing options...
Ashoat Posted August 1, 2008 Share Posted August 1, 2008 Yes, but I would prefer if you do not send email from the server hostname. Please use your personal domain. Quote Link to comment Share on other sites More sharing options...
JcX Posted August 2, 2008 Author Share Posted August 2, 2008 Ermmm... I'm still noob at PHP. Could someone please teach me how to select my SMTP server/domain? Quote Link to comment Share on other sites More sharing options...
Ashoat Posted August 2, 2008 Share Posted August 2, 2008 Just write an email in the FROM header. mail("somebody@something.com", "Your Account", "Here is your password: blabla", "From: jcx@jcxvyc.com"); See http://php.net/mail for more details. Any questions you have about PHP can usually be answered there. Quote Link to comment Share on other sites More sharing options...
lappy512 Posted August 3, 2008 Share Posted August 3, 2008 Or you could forge it so that it appeared to come from billgates@microsoft.com. It's easy: mail("somebody@something.com", "Your Account", "Here is your password: blabla", "From: billgates@microsoft.com"); Quote Link to comment Share on other sites More sharing options...
Ashoat Posted August 3, 2008 Share Posted August 3, 2008 His email is actually billg@microsoft.com Anyways, you shouldn't do that either. Use your own email to send stuff, or you're probably spamming people. Quote Link to comment Share on other sites More sharing options...
JcX Posted August 3, 2008 Author Share Posted August 3, 2008 Oh... you mean just send it without displaying our server name "@stevie.heliohost.org" is it? I thought send it out using another SMTP server. Then I've asked a stupid question... :blink: *The mail is just send to me, I think the "From" sender doesn't really matters right? Quote Link to comment Share on other sites More sharing options...
Ashoat Posted August 4, 2008 Share Posted August 4, 2008 The PHP mail() function does not interface with an SMTP server. But yeah, if the email is just send to you it doesn't matter - I just don't want people thinking that your emails are actually coming from HelioHost Quote Link to comment Share on other sites More sharing options...
JcX Posted August 4, 2008 Author Share Posted August 4, 2008 Alright, thanks for all the info given. I guess I'll need to get more info on SMTP, POP3 and those things related before I asked any question. *Now my yahoo mail is able to receive mail sent from heliohost, but not hotmail. But hotmail used to receive mails from heliohost. Nevermind, that doesn't matter.. thanks a lot. This topic is closed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.