Jump to content

simple mail command


freshfreelovinit

Recommended Posts

Hi

 

I was having a problem with a free subscription not working on my website so I tried to narrow down the problem and ended up with these two lines of php code:

 

mail("[email protected]", "testing", "testing www.escapesmoking.com", "$headers");

mail("[email protected]", "testing", "testing", "$headers");

 

I do not receive mail from the first mail command but I do receive mail from the second mail command. My webhost says it is my problem to fix but i don't see how I can fix it. It seems that mail I send out which contains my website address does not get through. Does anyone have any advice they can give me?

 

Thanks

Alessandra

 

Link to comment
https://forums.phpfreaks.com/topic/39699-simple-mail-command/
Share on other sites

did you check your junk mail?

 

Sometimes mail servers like hotmail, yahoo, etc.. read mail as spam if it has a web address in the subject line like that.  Try adding the subject line in the headers as well and play around with it.  I have a mail code that gets through to any mail server and past spam but it took some work and playing around.

Link to comment
https://forums.phpfreaks.com/topic/39699-simple-mail-command/#findComment-191650
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.