PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Dec 06, 2019 11:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sat Oct 06, 2018 10:38 am 
Offline
Forum Commoner

Joined: Thu Aug 10, 2017 4:48 pm
Posts: 33


Top
 Profile  
 
PostPosted: Sun Oct 07, 2018 9:35 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US
The $file variable is a resource returned by fopen(). The first parameter for mail() should be a string containing the email address of the recipient.

Are the email addresses in the file? If so, then read the line into a variable:
Syntax: [ Download ] [ Hide ]
  $email = fgets($file);
  mail($email, 'Thanks for joining!', Hi\nWe are glad to see you onboard\n\nPrivateloader);
 

_________________
(#10850)


Top
 Profile  
 
PostPosted: Thu Oct 11, 2018 1:56 pm 
Offline
Forum Commoner

Joined: Thu Aug 10, 2017 4:48 pm
Posts: 33
Thanks it really helped.

I have one other question how do i increase the time limitation of 30 seconds per execution in PHP?
I'm having problems running the whole script under 30 seconds.


Top
 Profile  
 
PostPosted: Sat Oct 13, 2018 7:14 pm 
Offline
Site Administrator
User avatar

Joined: Wed Aug 25, 2004 7:54 pm
Posts: 13592
Location: New York, NY, US

_________________
(#10850)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group