473,699 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Emailing via Script

133 New Member
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@websit e.com>\n";
$headers .= "Reply-To: Website Name <noreply@websit e.com>\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/alternative; boundary=\"$mim e_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=\"$mim e_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
Aug 29 '08 #1
2 1150
pbmods
5,821 Recognized Expert Expert
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.
Aug 29 '08 #2
adamjblakey
133 New Member
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
Sep 1 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
3131
by: somaboy mx | last post by:
I'm putting together a mass mailing application for sending out newsletters from a site admin area (no spam). I'm wondering how I can automate the removal of bounced addresses in this application. The ideal situation would be that returning mail triggers a script that removes the address of said message's recipient from the list. I'm thinking about a script that checks the pop3 server of the reply-to address and parses the inbox to...
2
1841
by: Jonathan M. Rose | last post by:
I am looking for a script that I can sit on an HTML server (Linux, Apache, PHP/Perl/Python/Etc.) that will allow me to do the following things: 1) Post news articles that consists of (i) a title and (ii) a body. 2) Show the last X posts (or, better yet, just the last X titles) on a home page. 3) Show all posts on a "news" page. 4) When a news article is posted, email the news article (with the title being the email subject and the news...
2
1912
by: Paul Hudson | last post by:
Ive developed a web based system where somebody can add a news record using ASP and MS Access database connectivity. The new record is inserted into the database and then a formatted email gets send to a list of about 30 email addresses using CDONTS. My emailing ASP script works by looping through a recordset containing the email addresses, the text gets formatted, and then it sends, then moves onto the next recipient etc etc ... I...
3
3033
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a App_Start handler to see if I could get emailed at all even from the first request of the app, but to no avail. Could someone please help me out? Thanks a lot! --Thiago Web developer AgniTEK
2
1349
by: Paul Wilson | last post by:
Hi guys, In classic ASP, i used to enable emailing from a webpage using the following code, lcData = "mailto:?CC=" + lcCC + "&subject=" + lcSubject + "&body=" + lcBody window.parent.navigate(lcData) Where lcData, lcCc, lcSubject and lcBody are variables. When this was done, a New Email was created on the CLIENTS computer (email form).
4
1651
by: Mike Moore | last post by:
What is the best way to launch outlook from an asp.net web page? Can you do this using MAPI or is there a control that you can purchase? We are unable to use SMTP. We use MS Exhange and MAPI currently for our client/server apps.
5
1253
by: Elmo Watson | last post by:
I'm having weird problems emailing on the Win2003 Staging environment - - the same script runs on multiple other computers, but on this one, the smtp service is running, but when the send is done (same exact script as on other working computers), it looks like it posts back, but nothing is sent - nothing is in any of the MailRoot folders. This particular script has an attachment, but, just to make sure, I commented that line out and it...
0
1578
by: slinky | last post by:
Thanks in advance for for any clues: I have a website I'm building using MS-Visual Web Developer Express (Asp.Net/VB.net). I'm tooling it to collect names and emails to send out our newsletter. I have successfully setup an XML file with some sample names and emails. I populated this through a well functioning .aspx page that writes to the XML file and I have set up another .aspx page from which I can view the collected persons. what I need...
2
1378
by: slinky | last post by:
Thanks in advance for for any clues: I have a website I'm building using MS-Visual Web Developer Express (Asp.Net/VB.net). I'm tooling it to collect names and emails to send out our newsletter. I have successfully setup an XML file with some sample names and emails. I populated this through a well functioning .aspx page that writes to the XML file and I have set up another .aspx page from which I can view the collected persons. what I...
0
8612
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.