Jump to content

PHP Mail


JcX

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...