Jump to content

Recommended Posts

Posted

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

Posted

I haven't done a thorough test, but it appears to be working for me too. My forums haven't hiccuped, anyway.

Posted
<?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

Posted

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.

Posted

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

Posted

Yes, but I would prefer if you do not send email from the server hostname. Please use your personal domain.

Posted

Ermmm... I'm still noob at PHP.

Could someone please teach me how to select my SMTP server/domain?

Posted

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.

Posted

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");

 

:P

Posted

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.

Posted

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: :blink:

 

*The mail is just send to me, I think the "From" sender doesn't really matters right?

Posted

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 ;)

Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...