Jump to content

[SOLVED] how to mail an object?


tomasd

Recommended Posts

Hi,

 

I was using php's mail function and on the manual it says that message must be string, I have an array consisting of objects I want to mail;

 

stdClass Object ( [check_date] => 2008-04-08 00:17:53 [out_date] => 2008-06-07 [price] => 24.99 )

stdClass Object ( [check_date] => 2008-04-08 00:17:53 [out_date] => 2008-06-07 [price] => 24.99 )

stdClass Object ( [check_date] => 2008-04-08 00:18:02 [out_date] => 2008-06-14 [price] => 24.99 )

stdClass Object ( [check_date] => 2008-04-08 00:18:02 [out_date] => 2008-06-14 [price] => 24.99 )

stdClass Object ( [check_date] => 2008-04-08 00:18:08 [out_date] => 2008-06-21 [price] => 34.99 )

stdClass Object ( [check_date] => 2008-04-08 00:18:08 [out_date] => 2008-06-21 [price] => 24.99 )

stdClass Object ( [check_date] => 2008-04-08 00:18:14 [out_date] => 2008-06-28 [price] => 34.99 )

stdClass Object ( [check_date] => 2008-04-08 00:18:14 [out_date] => 2008-06-28 [price] => 24.99 )

 

how do I go about doing this? should I have something like while function which would echo the object?

 

Any help or ideas is appreciated

Link to comment
https://forums.phpfreaks.com/topic/100112-solved-how-to-mail-an-object/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.