Visit Our UNIX and Linux User Community

PHP Mail Script Takes Hours to Send emails

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting PHP Mail Script Takes Hours to Send emails
# 1  
Old 11-12-2010
PHP Mail Script Takes Hours to Send emails

guys, i have a php script that i wrote that takes hours to send emails to recipients.

i can't post the content of this script in here because the script contains some very important confidential information.

so my question is, why is it that when the php script runs, it runs successfully, but instead of receiving the emails in less than 3 minutes (being generous here), it doesn't send the emails until hours after the script completed.

what could be wrong with it?

the script sends two emails:

1 email has a file attachment that is no more than 7kb in size.
The other email is just a regular notification email to another different email address.

Last edited by SkySmart; 11-12-2010 at 10:11 AM..
# 2  
Old 11-12-2010
So you mean to say that emails are beng sent, but taking hours.
It could be problem with mail server. May be you want to check that.
# 3  
Old 11-12-2010
Originally Posted by anurag.singh
So you mean to say that emails are beng sent, but taking hours.
It could be problem with mail server. May be you want to check that.

the webserver is owned by godaddy. and i have no control over that. but its kind of disturbing this is happening. there has to be a way around this.
# 4  
Old 11-12-2010
I have used godaddy mail server few times (with and without attachment) and I found that it takes max 15 mins some times. And since you don't have any control over the mail server, you may raise a ticket to godaddy and they can see what exactly is the problem.

Previous Thread | Next Thread
Test Your Knowledge in Computers #104
Difficulty: Easy
Unix is a family of multitasking, portable, multi-user computer operating systems, which do not have time-sharing capability.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Client was not authenticated to send anonymous mail during MAIL FROM (in reply to MAIL FROM comm

I am having trouble getting mail to work on a red hat server. At first I was getting this message. Diagnostic-Code: X-Postfix; delivery temporarily suspended: connect to :25: Connection refused Then added the port to my firewall. Then I temporarily turned off selinux. I then copied this file... (1 Reply)
Discussion started by: cokedude
1 Replies

2. Proxy Server

How to send mail (sendmail) for php mail()?

PHP mail() function doesn't work. Nor does sendmail: loaded system configuration file /etc/msmtprc ignoring user configuration file /home/xi/.msmtprc: No such file or directory falling back to default account using account default from /etc/msmtprc host = xsi port = 25 proxy host = (not... (1 Reply)
Discussion started by: Xcislav
1 Replies

3. Shell Programming and Scripting

How to send mail using PHP mail function On apache server.?

Hello, I am using centos-6.2 I have apache server,php5 on my system and I want to send mail using sendmail on my system. when I try to send mail from shell that time mail is succesfully sent to respective address() but when I try to send it through webbrowser I am not able to send it.... (1 Reply)
Discussion started by: Kiran ursal
1 Replies

4. Linux

Sendmail takes too long to start and the host is unable to send emails

Hello All, Sendmail takes too long to start and the host is unable to send emails, below are the steps followed, Please let me know if I'm missing anything, is there a debug mode for mailx? # time service sendmail restart Shutting down sm-client: Shutting... (6 Replies)
Discussion started by: lovesaikrishna
6 Replies

5. Shell Programming and Scripting

script to send mail !!

Hi Experts.. i have created a table with the fields, empid name mailid 1 raja and entered the values of all persons who are in that file... i have a .csv file date shift1 shift2 6/6/2011 ram raja Now i want a script that could fetch the data in (input file .csv file) and... (3 Replies)
Discussion started by: cratercrabs
3 Replies

6. UNIX for Dummies Questions & Answers

send emails

hi guys I need to send emails to some accounts 1. I need sendmail up and running right? 2. I need my local sendmail to use an existing SMTP server to send emails (10.x.x.x)? in that case what I need to configure to send emails? since using mail is not sending emails... (3 Replies)
Discussion started by: karlochacon
3 Replies

7. Shell Programming and Scripting

Write a script to send alert for some particular hours in a day

Hi All, I have a have a script which checks for some processes whether they are running or not and if they are not running then it send a mail specifying that the processes are not running. This particular script example abc.ksh is runs in a cron like this 0,5,10,15,20,25,30,35,40,45,50,55 * * *... (5 Replies)
Discussion started by: usha rao
5 Replies

8. UNIX for Dummies Questions & Answers

Send Emails in Sco

I am trying to setup unix to send an email to an outside email address. I have searched the web and found a lot of sites. The problem is I can't figure out what I am supposed to do exactly. I have tried installing sendmail but I get m4 version errors. I then tried to install m4 which seemed to... (1 Reply)
Discussion started by: stufine
1 Replies

9. Shell Programming and Scripting

send emails to groups

Hi, I am trying to send alert emails through my script to users using a group name like DL_Failure but I am not able to send it, I thought it is because of the space in between and I tried to sedn is with quotes "DL_Failure" but that too did not work....I... (2 Replies)
Discussion started by: mgirinath
2 Replies

10. UNIX for Dummies Questions & Answers

Using mail to send HTML emails

Hi, I'm a programmer not a sys admin, so please excuse this if it seems a little out of place, but I think it applies to this forum. When I send my HTML newsletter from the server it comes in as plain text on some email programs and not others. Eudora is fine; Outlook Express, Hotmail, and... (2 Replies)
Discussion started by: dmennis
2 Replies

Featured Tech Videos