Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - scottscomp

Pages: [1] 2
1
Project completed.

I discovered mailgun.com.  We're using their Mailing List feature, so the email list is stored there and when our alert software sends an email to one primary email address, it gets automatically redistributed to the whole list.   It's perfect for us.  :)

-Scott


2
My situation: I am starting a small "alert" service.  I have custom software that generates the alerts.  It can send an HTTP GET or POST request that contains the details of the alert.

So I created a mini PHP script that receives the POST request and generates a mail() to myself, and it works.

The next step is to update the script, and do one of 2 options:

     1) Create my own mailing script that queries the ListMailPro user list and sends the emails  (booo, not fun?)

     2) Tweak a copy of domail.php so that I'm effectively POSTing the alert directly from my software to ListMailPro to send the email   (yay! fun!)

The added benefit of #2 is it would automatically keep a history of all the alerts sent in the database.

Any suggestions?  I do have a small budget for this project so I'm open to hiring help.

-Scott





3
General Help & How-To / Re: Forward incoming email to mailing list
« on: October 28, 2016, 12:40:15 pm »
This topic can be considered closed because our situation has changed.  I figured how to adjust our software so it sends an HTTP request (either GET or POST) instead of an email, so now we can post the data directly to a PHP instead of instead of piping an email to it.

So now I'm going to make a new post in the Integrations section to see if someone can help me figure out how to do the rest of it.  :)

-Scott

4
General Help & How-To / Re: Forward incoming email to mailing list
« on: October 23, 2016, 11:42:20 am »
I understand forwarding in cPanel but the email list needs to get pulled from a mysql database (such as a list in ListMailPro).   We currently have about 75 users that would need to get the emails.  It would be too cumbersome to manage that via cPanel.

I'm not sure why the host wouldn't allow it... it would just use mail() or SMTP like any other mailing script.

I'll try to get an example of one of the alerts and then I'll contact you to see if it's something you can do or not.

-Scott

5
General Help & How-To / Re: Forward incoming email to mailing list
« on: September 28, 2016, 08:21:58 am »
Thanks for the reply Brett, unfortunately, I didn't explain the situation well enough.

Basically what I want to do is automatically "forward" an incoming email to a list.

So right now I receive an email alert.  But I want 20 people to get that email alert, not just me.  So I load up those 20 email addresses in Listmail, have the email alert piped to a PHP script, and let the script "forward" that email to that list of 20 people in Listmail. (at least this is my idea...but I'm open to other suggestions)

We wouldn't have to use Listmail for it; we also have an account at constantcontact and they have an API that would work too (but I lack the skills to program it).

And I don't want the email to look like it was forwarded; I want it to look like it came from my email software (like Listmail).  So the PHP script would parse it, just grab the body content and subject line, and then re-send the email to the list using the same subject line and body content.

Any ideas?

-Scott



6
General Help & How-To / Forward incoming email to mailing list
« on: September 20, 2016, 04:20:36 am »
I have some custom software that sends me an alert via email when something important happens (like a server goes down).

I want to be able to automatically redistribute that email to a list of email addresses maintained in ListMail.

There are lots of PHP scripts out there that let you pipe & parse an incoming email directly to a PHP script (to insert the email into a MySQL database, etc.) so this should be theoretically possible.

Has anyone done anything like this?

-Scott


7
Server Optimization, Tweaks / Exim optimization
« on: July 30, 2008, 12:10:27 pm »
Hey guys,

I have a list of about 300k, and when I send to the list LMP reports that I'm sending at about 60k per hour.

However, my Exim queue is clogging up... to the point now that when I log into my DirectAdmin control panel and click "Mail Queue Administration", the request times out, so I can't see or clear the queue via my control panel.

Since this topic has not been visited for quite some time, I'm wondering if there are any new Exim tweaks.  I already added these four lines to the top of my exim.conf file:

smtp_accept_queue_per_connection = 0
split_spool_directory = true
queue_run_max = 10
remote_max_parallel = 15

I just added those lines this morning after my queue was already clogged so I'll let it run for a day and see what happens.

I'm running a quad-core server with 4GB ram on a 100mb connection, so the mail should be able to exit the server pretty quickly.... but things are clogging up anyway.

Any additional ideas?

-Scott

8
Customization, Integration / Which file processes the remove links
« on: July 22, 2008, 08:07:56 am »
Just FYI, this is what I replaced it with:



 case 'remove' :
    $sign = substr(md5($email.'-AMEMBER'), 0, 4);
   $rlink = "http://www.forexconfidential.com/members/unsubscribe.php?e=$email&s=$sign";
   $rtext = "You can cease receiving further updates here:\n";
      
   if($mhtml=='1'){ $rtext .= "<br><a href=\"$rlink\">$rlink</a><br><br>"; } else { $rtext .= $rlink; }
        
   $xmsg = eregi_replace($keych . $ref,$rtext,$xmsg);
break;

So now when someone unsubscribes from a message we send in Listmail, they actually unsubscribe from the aMember list.  :)

-Scott

9
Customization, Integration / Making !remove automatic on all emails
« on: July 22, 2008, 07:06:55 am »
Is there an easy way to insert the !remove shortcode automatically into every single outgoing message?  I have a customer that will be using LMP and he tends to forget to add the !remove link..  I'd like to make it automatic for him.


-Scott

10
Customization, Integration / Which file processes the remove links
« on: July 22, 2008, 07:05:39 am »
I figured it out!

The removal link is generated on line 669 of admin.php.

I was able to remove the link generation code there and add my own, so when a user "unsubscribes", they are *actually* unsubscribing from amember.  When cron runs that night, amember will remove them from listmail.

11
Customization, Integration / Which file processes the remove links
« on: July 01, 2008, 01:04:49 pm »
Hey guys!

I am integrating my listmail pro with the amember membership system.  The only thing left to do is update the unsubscription link.

When I use !remove it automatically inserts the removal link.

What I need to do is insert this code:


if (preg_match('/"*(.*?)"*s*<(.+?)>s*$/', $email, $regs)){
$email_only = $regs[2];
} else
$email_only = $email;
$sign = substr(md5($email_only.'-AMEMBER'), 0, 4);
$link = "$config[root_url]/unsubscribe.php?e=$e&s=$sign";


Where $email is the subscribers email address, and it spits out the removal link as $link.

Subscribers are then sent to amember to unsubscribe, and amember makes sure they are also removed from listmailpro.

I just need to know which file "generates" the removal link so I can replace it with my code. :)

-Scott

12
I FOUND A SOLUTION!

I didn't know this but the server has the "Authorize by checking email" feature enabled for our POP accounts, so I hit that option instead of "Auth", and I'm at 19,000+ during this send and it's still going.

Thanks!



Side note - if you happen to read this - does the bounce.cgi script really make that big of a difference on performance?  I spent a couple hours trying to set it up and I think I'm getting stuck at the piping step..  if I have a list of 100,000 and I'm adding 10,000 to it daily and maybe 10% of new additions are bouncing - should I use the bounce.cgi - or keep using the pop account?

13
I have an email list of approximately 50,000.  We just moved the list to a brand new dedicated server for this purpose.

During the sending with a Reconnect Every 1200 messages, it will send exactly 1,000 messages and then report "421 too many messages in this connection."

So I set the Reconnect Every to 900 messages.  This is what happens (according to the SMTP log that it creates):


(this is the 900th email)
> MAIL FROM: <bounce@4xriches.com>
> RCPT TO: <recipient_address_goes_here>
250 OK
250 Accepted
> DATA
354 Enter message, ending with "." on a line by itself
> SENT DATA
250 OK id=1Izbxv-0002Lq-M9
> QUIT
221 server.4xconfidential.org closing connection
LM: Reconnecting... 221 server.4xconfidential.org closing connection
Connected!
> EHLO localhost
250-server.4xconfidential.org Hello server.4xconfidential.org [74.50.110.25]
250-SIZE 20971520
250-PIPELINING
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
> MAIL FROM: <bounce@4xriches.com>
> RCPT TO: <recipient_address_goes_here>
250 OK
550 authentication required
LM: Undeliverable. RCPT response: 550 authentication required
. Skipping.
> RSET
250 Reset OK
(then another MAIL FROM: and the cycle continues)


After 12 attempts with a "Skipping. RSET" every time, it says  "554 Too many nonmail commands".


It's almost like, when it does re-connect, it's not re-sending the username/password to make the connection again.  It's reconnecting but not re-authenticating.


Does that make sense and is there a fix?


Yes, I did try adding $smtp_timeout=45; to the config.php - it did not help.


-Scott

14
General Help & How-To / Removing an address from all lists at once
« on: November 15, 2007, 05:46:26 pm »
I've been an LMP addict for years too.  and it's already on a dedicated server that's only sharing with a few other sites.. .it's a P4 2.6ghz with 1.5GB of RAM on a 10mbps port.

It seems like it'll send 2-3 thousand emails before "crashing"..  during the "crash", the server is still up (can still be pinged, etc.) but it doesn't dish up any websites.. like only the httpd service quits.

Either way it's neither here nor there - I'm getting a new and faster dedicated server soon.

15
General Help & How-To / Removing an address from all lists at once
« on: November 15, 2007, 05:00:02 pm »
Fancy meeting you here Mike, I just signed up for your extreme lead program.  =)   My old server is crashing under the number of emails being sent - I need to find a way to slow things down (probably start using mail() with delays instead of smtp...) but things look good so far.

Thanks for the tip.  =)  yes I was aware of that but 'emailaddr' just looked better to my eyes... go figure...

Pages: [1] 2