Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 201
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 212
Total: 212

Author Topic: Sending Mail: Campaigns & Single Messages  (Read 5335 times)

0 Members and 1 Guest are viewing this topic.

Offline TheDy

  • Member
  • *
  • Posts: 2
    • View Profile
Sending Mail: Campaigns & Single Messages
« on: July 31, 2013, 07:19:40 pm »
Hello,

Our group has recently purchased Newletter Pro and we've run into a few problems:

1:  Trying to send an email to ~1000 forum members (this method works when sending to a lower amount of people... like 20.) when we goto: Main > News and Newsletters > Newsletters we see the following error:

 
Code: [Select]
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3907347 bytes) in /usr/www/group/public/Sources/Load.php on line 2686
I have checked phpinfo and see the following:
memory_limit   128M / 128M

The Send Mail Queue then only has ~180 of the 1,000 people in there.  The other 80% are never added.

I have UNCHECKED Disable administration security.

2: I have then tried to setup a campaign to a group which contains 19 members. I set the campaign to send 10 minutes into the future.  The campaign runs at, or just after the set time, and shows up in the 'reports' section.  send_email_campaign DOES run every 4 minutes as shown by the task log.  No emails are ever received by the Campaign.  No emails are in the send mail queue.  

My SMF Email settings are set to send via php and have ensured SMTP fields are empty.  At the start of /index.php i have also included ini_set('memory_limit', '128M'); on a new line following <?php.
We are using cloudflare with 'basic' CDN / caching.  Pretty URLs is set to ignore the 'admin' action.

Any suggestions to:

1: Get the single email send tool to work.
2: Get campaigns to work at all.

Thanks,

TheD

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Sending Mail: Campaigns & Single Messages
« Reply #1 on: July 31, 2013, 08:32:26 pm »
#1
128mb is too low you need to raise try it errored out since 128mb was the max
ini_set('memory_limit', '300M');

#2 What type of scheduled task do you have running?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline TheDy

  • Member
  • *
  • Posts: 2
    • View Profile
Re: Sending Mail: Campaigns & Single Messages
« Reply #2 on: July 31, 2013, 09:33:35 pm »
Thank you for the quick reply.

1:phpinfo reports: memory_limit reports 350M for Local and 128 for Master. I've changed it also via .htaccess

2: It looks like the idea behind a Campaign is to schedule a task (send an email newsletter) in the future. Correct?  So I created a Campaign (task) to send a newsletter at a later time and it looks like no emails are ever sent.  If this is not correct can you elaborate a bit on what Campaigns are used for, or how to use them?  

Edit 1: I am using newest SMF, 2.0.4.

Edit 2: bumping up to 350MB worked, but then the script just timed out.  I also upped the timeout to 700 seconds from within the news php file.   By doing the instant send message I was able to add 257 message to the mail queue... then it just died.  Is there a way to actually do an instant newsletter with more than just a few names?

Edit 3: I was able to get the Campaign to send send once. It was set to go to 19 people... for some reason it just worked.  No idea why.  Haven't been able to duplicate it at all... removing all short cuts {$member.name}, for example, for the subject hasn't mattered.  It just won't send again.

Edit 4: Raised it to 350M and 1000 second timeout. Then I exported all email addresses via the script which was posted in another thread and added them to a custom list. When I sent the newsletter  I got a message stating that the full 350MB had been used:  Fatal error: Allowed memory size of 367001600 bytes exhausted (tried to allocate 16777216 bytes) in /usr/www/group/public/Sources/Load.php on line 2686

This shouldn't be the case.  Is there any solution?  Adding ~250 messages a time to the mail queue is not doable.
« Last Edit: August 01, 2013, 12:50:07 am by TheDy »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Sending Mail: Campaigns & Single Messages
« Reply #3 on: August 01, 2013, 09:31:56 am »
I would need to really need to look into your hosting situation which mods are installed hard to say the exact cause without looking it deeply but seems like something is eating up the memory..
I have sent over 40k emails at a time with the newsletter system.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3586 Views
Last post December 17, 2008, 11:11:47 pm
by SMFHacks
1 Replies
3865 Views
Last post December 17, 2008, 07:02:22 am
by fotografo74
4 Replies
7948 Views
Last post June 04, 2009, 01:54:58 pm
by Darkshadow
3 Replies
5591 Views
Last post January 21, 2014, 05:09:08 am
by Jonas1975
9 Replies
6368 Views
Last post March 12, 2013, 02:46:59 pm
by Wegg

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal