944,057 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 3112
  • PHP RSS
Aug 11th, 2006
0

Newsletter sending problems

Expand Post »
Hi all

I have developed a newsletter for my client created dynamicly with PHP and MySQL. Everything was ok since I need to send the newssletter to the unclosed recipients. The problem is that I need elaborate the message with the newsletter inside (CSS,photos,etc) because the archive that contains the Newsletter have some loops and query to the data base. One time the Newsletter is sended and recived I can only vusualize the HTML but the PHP is missing, there is not readed.

What is the process for visualize this kind of dynamic newsletters?

Thanks all
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pepon is offline Offline
1 posts
since Aug 2006
Aug 13th, 2006
0

Re: Newsletter sending problems

PHP's a server side language, so any PHP you write will either be (a) left as-is or (b) processed. If your newsletter contains PHP code to be executed dynamically by the recipient, it's likely to not work. In that case, direct them to a webpage you know works.

(You could use Javascript, too, but many users have it turned off and don't like turning it on.)
Reputation Points: 23
Solved Threads: 23
Posting Pro in Training
Puckdropper is offline Offline
494 posts
since Jul 2004
Aug 24th, 2006
0

Re: Newsletter sending problems

PHP's a server side language, so any PHP you write will either be (a) left as-is or (b) processed. If your newsletter contains PHP code to be executed dynamically by the recipient, it's likely to not work. In that case, direct them to a webpage you know works.

(You could use Javascript, too, but many users have it turned off and don't like turning it on.)
Using server side scripts it's not the right way to send eNewsletters, expacially if the number of recipients is over than 10.000. You will have deliverability problems or bandwidth converns (depends on which smtp server you use).

:!: Don't make my mistakes, use an outsourced service if you are looking for a professional solution. I suggest www.mailupnet.com which does not have a pay per message or pay per contact pricing model, but you pay only a flat monthly fee and you can send whatever you like.

Victor
Reputation Points: 10
Solved Threads: 0
Newbie Poster
VictorA is offline Offline
2 posts
since Aug 2006
May 19th, 2010
0
Re: Newsletter sending problems
you can get the contents of the dynamically created pages using
$message= file_get_contents('filepath');
and then put $message in the mail function. newsletter will be sent fine

for rules to write a news letter
http://www.knowledge-transfers.com/i...tml-newsletter
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Prithwirajsaha8 is offline Offline
6 posts
since May 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: mailing html file
Next Thread in PHP Forum Timeline: onEvent tag using php





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC