Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old August 29th, 2008, 03:00 PM
Member
 
Join Date: Jan 2008
Posts: 118
Default Emailing via Script

Hi,

I have a script on my website and when a user posts to the script it sends an email out.

Untill recently this has been working fine then all of a sudden it stopped sending email's out.

In the script i have this section:

[PHP]
$headers = "From: Website Name <noreply@website.com>\n";
$headers .= "Reply-To: Website Name <noreply@website.com>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\n";
[/PHP]

I found if i replace the above with this:

[PHP]
$headers = "From: Website Name <>\n";
$headers .= "Reply-To: Website Name <>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/alternative; boundary=\"$mime_boundary\"\n";
[/PHP]

It works fine, but the emails come through without saying what email address it has come from.

Why would this happen and how can i fix it so i can put the email address back in.

Cheers,
Adam
Reply
  #2  
Old August 29th, 2008, 10:24 PM
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Age: 24
Posts: 5,306
Default

Heya, Adam.

It looks like you removed the email address from the 'From' and 'Reply-To' headers, which is why the email gets delivered without this information.
Reply
  #3  
Old September 1st, 2008, 10:11 AM
Member
 
Join Date: Jan 2008
Posts: 118
Default

Hi,

I think you have mis-understood my problem, basically it will not send out the emails when i put in the to field.

It was working fine but then it stopped working like the server had reached a limit or something?

When i removed the from address it worked fine.

Cheers,
Adam
Reply
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles