|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Here's a simple question for you coders: I have this line: [:"blue"]$to = $config['emailaddy'];[/] and I want to substitute an actual e-mail address in the "$to" field. How is that done? Thanks! 
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Thanks..... even though it didn't resolve my problem, which I hoped it would.
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
I guess you didn't pinpoint your problem then.
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Actually, I did pin-point the problem but I don't know how to resolve it. [] http://www.the-highway.com/Smileys/stupidme.gif[/]
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
Ok, so what value does the variable $to have in your case?
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
[]Anno said: Ok, so what value does the variable $to have in your case? [/] I don't know what a "value" is. But I'll venture a guess and hope it is what you are asking for: $to = $Email;
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
$to = " [email protected]"; The value of the variable $to in the above case is [] [email protected][/] . Did you enter your email address instead of [email] [email protected]?[/email] Also, which script are we talking about at all?
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Anno, Yep... understood now about "value". And yes, I substituted my actual e-mail address as you kindly showed me. The script is actually a custom addon script to both my "subscriptions.php" and "dopurgemessages.php" files which used to send an e-mail to me showing how many subscriptions were sent out each night as well as how many PMs had been deleted from the database. I have a cron set to delete all PMs over 30 days old. All subscriptions are successfully sent out and PMs are deleted as intended. The problem is with these two e-mails that are supposed to be sent to me personally with the subscription count and PM deletion count.  They were both working fine until my ISP made some changes to their e-mail server configuration. Jeff
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
Why not send a PM instead?
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
[] Anno said:Why not send a PM instead? [/] 1) Having the results of these cron jobs sent via e-mail eliminates my having to visit the Board, 2) E-mails allow me to have a permanent record that I can then use for reference and statistics purposes, and 3) The script is already written for e-mail, which although presently it isn't working, it did for 4 years. To change it would require a knowledge of PHP which I unfortunately don't have.  Jeff
Artificial Intelligence is no match for natural stupidity!
|
|
|
|
Joined: May 2001
Posts: 550
Code Monkey
|
Code Monkey
Joined: May 2001
Posts: 550 |
Well, the problem seems to be the server, not the variable.
|
|
|
|
Joined: Jun 2000
Posts: 190
Enthusiast
|
Enthusiast
Joined: Jun 2000
Posts: 190 |
Anno, Out of courtesy I'm just wanting to let you know that the problem has been resolved. It was nothing I tried that resolved it but evidently, my hosting ISP made yet another change to their e-mail server configuration. [] http://www.the-highway.com/Smileys/bingo.gif[/]
Artificial Intelligence is no match for natural stupidity!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|