View Full Version : Advice on how to setup Universal Email settings
easterth369709
04-14-2009, 09:54 AM
We have an exchange mail server. I am runing php, mysql and Apache on a linux box. I am trying to configure the mail settings in Universal mail in order for users to received email confirmation when submit button is pressed.
I used the example in the Universal mail documentation to see how it works with no luck.
Note: I tried both options "Mail and PEAR Mail using SMPT.
Do I need to configure Debian Linux mail server. I rather use our already mail server on campus. Thanks for any advice you can provide me.
Ray Borduin
04-14-2009, 10:30 AM
Use Mail unless username and password are required for your smtp server. Most restrict by IP.
To debug, in the file mail_PHP.php... update the code where it says:
$mailObj = mail($mailTo,$mailSubject,$mailContent,$mailHeader );
and add code afterward:
$mailObj = mail($mailTo,$mailSubject,$mailContent,$mailHeader );
var_dump($mailObj);
die();
That may tell you more about why the email won't send.
easterth369709
04-14-2009, 10:53 AM
Hi Ray,
i am new in php, do you mind telling me where is the mail_php.php is located. is it on the linux box, dreamweaver, etc. Thanks for your prompt response too.
Ray Borduin
04-14-2009, 11:03 AM
It is in the Universal Email directory in the root of your site.
easterth369709
04-14-2009, 11:22 AM
Hi Ray,
The web browser now says bool(true) after I press the Submit button on the form i created.
Ray Borduin
04-14-2009, 12:06 PM
That means the email was successfully sent to your SMTP server and no errors were recorded. You should have gotten the email unless it is blocked by a spam blocker.
easterth369709
04-14-2009, 12:28 PM
I checked our campus firewall an it does not appear as blocked. I tested with my private email and nothing there either. Still no emails.
I appreciate your responses very much.
Ray Borduin
04-14-2009, 12:30 PM
Try writing more information to the page like:
$mailObj = mail($mailTo,$mailSubject,$mailContent,$mailHeader );
var_dump($mailObj);
echo(" : ");
echo($mailTo);
echo(" : ");
echo("$mailHeader");
die();
easterth369709
04-14-2009, 12:42 PM
This is the new message I am getting...no email coming thru. I even disabled the spam filter.
bool(true) : diazc1@mailbox.sc.edu : MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="WAMULTIBREAKWA" From: Carlos Diaz Reply-To: diazc1@mailbox.sc.edu X-Sender: Carlos Diaz X-Priority: 3 Date: Tue, 14 Apr 2009 15:39:07 -0400 (EDT) Return-Path: diazc1@mailbox.sc.edu Message-ID: <2aa110c88a9bc3ba0f63eab1fe3b77dd@mailbox.sc.edu>
Ray Borduin
04-14-2009, 12:45 PM
Do you see anything wrong? I don't.
One more thing you might try... change the line of code in that same file:
$lineEnd = "\n";
change it to:
$lineEnd = "\r\n";
that could be the issue, but really it appears it should be working.
easterth369709
04-14-2009, 01:03 PM
Same error!
bool(true) : diazc1@mailbox.sc.edu : MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="WAMULTIBREAKWA" From: Carlos Diaz Reply-To: diazc1@mailbox.sc.edu X-Sender: Carlos Diaz X-Priority: 3 Date: Tue, 14 Apr 2009 16:00:53 -0400 (EDT) Return-Path: diazc1@mailbox.sc.edu Message-ID: <2aa110c88a9bc3ba0f63eab1fe3b77dd@mailbox.sc.edu>
Ray Borduin
04-14-2009, 01:05 PM
The debug information will stay until you remove it. Did any emials go through?
easterth369709
04-15-2009, 08:23 AM
Our email server administrator said that we should use smtp.sc.edu. For on campus he recommended to use unauthenticated e-mail relay.
Would this have something to do with the code you suggested we write on the mail.php not to work.
Thanks
Ray Borduin
04-15-2009, 09:22 AM
No it should work... is that what you used as your mail server? Try that as your smtp server and see if it works.
Jenny I
05-18-2009, 07:01 AM
Hello, I just tried your debugging technique because I am having the same problem and it came up with this exact error
Warning: mail() [function.mail]: SMTP server response: 504 5.5.2 <you@yourdomain>: Sender address rejected: need fully-qualified address in C:\wamp\www\test\WA_Universal_Email\mail_PHP.php on line 254
Warning: mail() [function.mail]: SMTP server response: 504 5.5.2 <you@yourdomain>: Sender address rejected: need fully-qualified address in C:\wamp\www\test\WA_Universal_Email\mail_PHP.php on line 256
bool(false)
The problem is I do not have a clue how to fix it. Secondly I do know why it is registering <you@youdomain> because in the UA panel I have input my email address.
Ray Borduin
05-18-2009, 07:55 AM
What is the code at:
mail_PHP.php on line 254 and line 256?
What do you have set up as your TO and FROM email addresses? Make sure they are full email addresses including the @ symbol.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.