Insert dyanamic data while sending

Technical discussion for developers and service providers

Insert dyanamic data while sending

Postby tpk » 7:42am, Mon 17 Jan, 2011

Hi,

I want to insert data from another database into the body, depending on choices every receiver made himself before. On what point of the code would you do this?

Thanks
tpk
phpLister
 
Posts: 8
Joined: 8:09pm, Thu 25 Feb, 2010

Re: Insert dyanamic data while sending

Postby duncanc » 1:30pm, Tue 18 Jan, 2011

See this plugin, enhanced placeholders, that also modifies the body of each message while it is being prepared viewtopic.php?f=7&t=33957
That should give an idea of whereabouts to modify the code.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Insert dyanamic data while sending

Postby tpk » 11:01am, Fri 28 Jan, 2011

Thanks, the dynamic text is in place now.

I also would like to put pictures into the html dynamically. Using phpmailer I used to do this with

->AddEmbeddedImage()

But it seems that this function is not used? Would be glad about a hint how to manage this.
tpk
phpLister
 
Posts: 8
Joined: 8:09pm, Thu 25 Feb, 2010


Return to Developers Space

Who is online

Users browsing this forum: No registered users and 1 guest