470,848 Members | 1,220 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,848 developers. It's quick & easy.

Override php function

Hi, I'm need to test a php script that sends email messages, I'm using
a windows local machine (without internet connection), so I can't set
an smtp server in php.ini, but I need to see the content of the
messages, so I think I have three choices: (1) get something like a
"sendmail" emulator that stores the messages in files instead of
sending them, (2) install a smtp server, (3) the easiest I think,
override the mail() function with a function that doesn't send
anything, just stores the parameters in a database or a file.

The script is a complex shopping cart, and it sends the
username/password to the email when a user sign up, so I can't create
test accounts because I can't receive email message with the password
and it is stored encrypted in the database. Also I must implement
other funcionalities that include send email, and I need to see how
the messages are sent.

Thanx

Andrés
Jul 17 '05 #1
0 1944

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

22 posts views Thread by Ruben Van Havermaet | last post: by
1 post views Thread by Urs Wigger | last post: by
5 posts views Thread by Mark Broadbent | last post: by
2 posts views Thread by Shark | last post: by
2 posts views Thread by Jason Huang | last post: by
5 posts views Thread by Marcel Hug | last post: by
5 posts views Thread by Suresh369 | last post: by
9 posts views Thread by Ben Voigt | last post: by
5 posts views Thread by Tony Johansson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.