473,508 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

email from script to client mailbox.

plumpnation
16 New Member
Warning: mail(): SMTP server response: 550 Requested action not taken: mailbox unavailable or not local in.....


This is the error message.

The history of this situation is this: We took a job where the clients' old hosting company were and still are very unhelpful.

They still have the domain in their posession as the client did not want the mail to go down during the transfer process.

There is a contact form on the site now that sends variables to a php script which sends the mail.

I have sent tests internally on the server AND externally to hotmail, gmail and yahoo - all with success.

When I try to send to the clients mailbox, still in the possessed by the ex-hosts, the script returns this error.

I rang them up, and they were as usual very unhelpful and unprofessional, but told me that they had had this problem before but couldn't remember how they fixed it, and that I needed to find some way to tell the clients mailbox that this wasn't a robot spam message type thing.

Has anybody got any idea how to authenticate a php mail script to bypass security filters? It would seem to me that any such authentication would need to be confirmed by a script at their end, like a key and lock.

Is this just a load of rubbish and are they just being awkward? My guess is that they could simply allow the I.P. address of the server to bypass spam filters etc.

I really need peoples opinions and knowledge on this one, so don't hold back.

Thanks as always...
Jan 16 '07 #1
3 2507
BeRtjh
12 New Member
just use:

[PHP]mail($mail, $subject, $body);[/PHP]
Jan 17 '07 #2
byersj21
2 New Member
I'm having the same problem. I get the error:
Warning: mail(): SMTP server response: 550 Requested action not taken: mailbox unavailable or not local

Now, the client has their own internal mail server, but using outside hosting. I just can't figure this out.. but I have a theory.

I can use the following script below and it works fine if I put my own email or other emails that doesn't have cadresys.com at the end of it. I'm thinking it's some issue with SMTP authentication and I have no idea how to set that up in the form. You can look at my code and tell me what I'm doing wrong. I'm no expert with this stuff, but I can use it enough to get by.

code:
<?php
error_reporting(E_ALL ^ E_NOTICE);
if(!$_POST['erf_Name']) {
$errMessage = "Name required!<BR> ";
}
if(!$_POST['erf_Phone']) {
$errMessage .= "Phone number required!<BR> ";
}
if(!$_POST['erf_Event']=="Select desired event") {
$errMessage .= "Please select desired event.<BR> ";
}
if(!$_POST['erf_NumberofAttendees']) {
$errMessage .= "Please tell us how many will attend.<BR> ";
}
if(!$_POST['erf_HearAbout']=="Select...") {
$errMessage .= "Please answer how you heard about us.<BR> ";
}
if(!strrchr($_POST['erf_Email'],"@") || !strrchr($_POST['erf_Email'],".")){
$errMessage .="Invalid email!<BR>";
}

$xHeaders = $_POST['$erf_Email'];

if($_POST['erf_Event']=="Augi Cad Camp in Charlotte May 3rd") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="Carolinas Expo Feb 15th") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="NC Revit User Group- May 10th") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="NC Revit User Group- April 12th") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="NC Revit User Group- March 8th") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="NC Revit User Group- Febuary 8th") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="SouthEast Design March 7th") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="North Carolina Society Feb 1st") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}
if($_POST['erf_Event']=="South-Tec Advanced October 10th") {
$to = "somebody1@cadresys.com, somebody2@cadresys.com";
}

$name = $_POST['erf_Name'];
$event = "Event Confirmation " . $_POST['erf_Event'];
$bodyNote .= "<--- Note: Please send a confirmation email to the persons email below. --->" . "\n" . "--- Copy this text and paste in email ---" . "\n" . "This is a confirmation email from Cadre Systems that we recieved " . $_POST['erf_Name'] . " request for " . $_POST['erf_Event'] . " event" . "\n" . "\n";
$bodyName .= "Name: " . $_POST['erf_Name'] . "\n" . "\n";
$bodyCompany .= "Company: " . $_POST['erf_Company'] . "\n" . "\n";
$bodyAddress .= "Address: " . "\n" . $_POST['erf_Address1'] . "\n" . $_POST['erf_Address2'] . "\n" . $_POST['erf_City'] . " " . $_POST['erf_State'] . " " . $_POST['erf_ZipCode'] . "\n" . "\n";
$bodyPhone .= "Phone: " . $_POST['erf_Phone'] . $_POST['erf_Ext'] ."\n" . "\n";
$bodyEmail .= "Email Address: " . $_POST['erf_Email'] . "\n" . "\n";
$bodyEvent .= "Event: " . $_POST['erf_Event'] . "\n" . "\n";
$bodyAttendees .= "Number of Attendees: " . $_POST['erf_NumberofAttendees'] . "\n" . "\n";
$bodyHear .= "How did you hear about us: " . $_POST['erf_HearAbout'] . "\n" . "\n";
$bodyComments .= "Comments: ". "\n" . $_POST['erf_Comments'] ;
$message = "$bodyNote" . "$bodyName" . "$bodyCompany" . "$bodyAddress" . "$bodyPhone" . "$bodyEmail" . "$bodyEvent" . "$bodyAttendees" . "$bodyHear" . "$bodyComments";
$sent = "Thank you for your email " . $name . " Your request for the " . $_POST['erf_Event'] . " event has been sent to Cadre Systems." . " An email confirmation will be sent to you shortly.";
if(!isset($errMessage)) {
mail($to, $event, $message, $xHeaders);
echo "$sent";
}
Of course, this script works with my own email or other yahoo.. ect accounts. Also, I know others may have a better technique that what I have and if so.. please share. I probably should be using an array for the if statements, but right now I'm just making something work.

Other strange things to maybe help solve this problem, is I have trouble sending these people an email from my main email address thru my webmail and my local email application. Even happens with my secondary email address. I don't have this problem with anyone else.. just these people at Cadresys.com. So, I'm wondering if it's a firewall thing or what?

I appreciate all the help I can get on this. And one last thing I was trying to do was cc the person who sent the form. Instead, I'm going to have to have the company send an email to them once they recieve this email.. but unfortunately, I can't even get that to happen.
Jan 31 '07 #3
byersj21
2 New Member
Another thing I wanted to mention.
1. This company originally purchased their domain name thru network solutions. ( I don't have access to it yet)
2. Hosting is with earthlink, but the problem there is that I have to put a 4 on my php pages and earthlink will not fix that problem. I've never had to do that before.. I even tried fiddling with the .htaccess file and that didn't seem to help.
3. New website is on a new server. Me and a couple of guys are running a hosting server specifically for clients only, so we don't have separate email and dns servers. Therefore, I don't feel comfortable putting this clients DNS/MX records on our server. We just want to host the website on our server but using Network Solutions for all the DNS/MX records. I can see they had set that up on the earthlink hosting.. but I don't see any CName records, which I need for our server. I'm assuming that information is on network solutions. And the big kicker is the mail server is run internally by the company. So.. it's a big mess and I need a solution to make things work correctly.

So, right now, I have a redirect in the index page when you go to www.cadresys.com . I'm wondering if the problems lie somewhere in there. I'm sure some may think this scenerio is crazy and it is.. but what would you do in this situation to fix it?
Jan 31 '07 #4

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

Similar topics

12
8745
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I...
1
3284
by: chuck amadi | last post by:
any python script which will parse an email messages into a file to poplulate a database. Im trying with UnixMailbox but I cant figure out howto abstract the all email data messages to a file . ...
1
3759
by: chuck amadi | last post by:
Hi I have managed to print the output of the get_payload to screen but I need to write to a file as I only require the email body messages from the mailbox.My script using the fp.readlines()...
0
1311
by: chuck amadi | last post by:
Hi I have managed to print the output of the get_payload to screen but I need to write to a file as I only require the email body messages from the mailbox.My script using the fp.readlines()...
10
3539
by: Chris Sharman | last post by:
I'm doing a rough validation of an email address client-side (using js), but it's not enough - our customer service people are apparently incapable of typing in an email address without error - we...
7
12435
by: Monty | last post by:
I've written a simple e-newsletter app using the PHP mail() command. I want to be able to deal with bounce-backs if a member's email is no longer working or is using an old account. I'm using a...
4
1806
by: Madestro | last post by:
Hi guys, I am making a small program to retrieve e-mails from POP accounts. I got all the e-mail parsing stuff figured out, but I cannot seem to come up with a way to find out which e-mails are...
7
7566
by: erikcw | last post by:
Hi all, I'm trying to extract zip file (containing an xml file) from an email so I can process it. But I'm running up against some brick walls. I've been googling and reading all afternoon, and...
10
1583
by: Bill Bell | last post by:
The subject line is a little too general. I would like you to tell me about scripts that can receive email messages and call other scripts depending on the content of these messages. Thanks!
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
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...
0
7377
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5047
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...
0
4705
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...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1547
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 ...

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.