Jump to content

Recommended Posts

Posted

Hello guys. I'm new here.

I've a problem with my website.

 

Before owner can receive the order from user, user should confirm their order.

So I sent a e-mail to user for their confirmation.

 

But when I sent, it seems like a problem.

The subject isn't correct at all.

Form section isn't from no-reply@starharvest.tk.

It should be no-reply, maybe anyone can help me?

 

I've attached the e-mail and my code. Is that any problem of my code?

 

Thank you.

 

Nb : Sorry for my English and code, I'm from Indonesia.

post-110638-0-51037900-1495345831_thumb.jpeg

post-110638-0-98343900-1495345844_thumb.jpeg

Posted

You're not setting your headers properly. Just change this one line and it should work.

$from = "From: no-reply@starharvest.tk";
The reason is the fourth argument to mail() isn't FROM, but rather HEADERS so you can even put multiple lines of headers including from. Just separate them with /r/n.
Posted

You're not setting your headers properly. Just change this one line and it should work.

$from = "From: no-reply@starharvest.tk";
The reason is the fourth argument to mail() isn't from, but rather headers so you can even put multiple lines of headers. Just separate them with /r/n.
OK, I will try it later.

And also for subject it appears correctly.

 

I will update again if all correct.

 

Thank you.

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