Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2000
Posts: 190
Pilgrim Offline OP
Enthusiast
OP Offline
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!
Sponsored Links
Joined: May 2001
Posts: 550
A
Code Monkey
Offline
Code Monkey
A
Joined: May 2001
Posts: 550

Joined: Jun 2000
Posts: 190
Pilgrim Offline OP
Enthusiast
OP Offline
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
A
Code Monkey
Offline
Code Monkey
A
Joined: May 2001
Posts: 550
I guess you didn't pinpoint your problem then.

Joined: Jun 2000
Posts: 190
Pilgrim Offline OP
Enthusiast
OP Offline
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!
Sponsored Links
Joined: May 2001
Posts: 550
A
Code Monkey
Offline
Code Monkey
A
Joined: May 2001
Posts: 550
Ok, so what value does the variable $to have in your case?

Joined: Jun 2000
Posts: 190
Pilgrim Offline OP
Enthusiast
OP Offline
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
A
Code Monkey
Offline
Code Monkey
A
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
Pilgrim Offline OP
Enthusiast
OP Offline
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
A
Code Monkey
Offline
Code Monkey
A
Joined: May 2001
Posts: 550
Why not send a PM instead?

Sponsored Links
Joined: Jun 2000
Posts: 190
Pilgrim Offline OP
Enthusiast
OP Offline
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
A
Code Monkey
Offline
Code Monkey
A
Joined: May 2001
Posts: 550
Well, the problem seems to be the server, not the variable.

Joined: Jun 2000
Posts: 190
Pilgrim Offline OP
Enthusiast
OP Offline
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!

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,551
Posts293,823
Members13,839
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 267
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 2
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,808
Greg Hard 4,625
Top Posters(30 Days)
isaac 5
Top Likes Received
isaac 64
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 2
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 7.7.6
(Snapshot build 20201121.dev)
Responsive Width:

PHP: 5.4.45 Page Time: 0.060s Queries: 41 (0.022s) Memory: 3.3656 MB (Peak: 3.6363 MB) Data Comp: Zlib Server Time: 2020-12-03 01:51:19 UTC
Valid HTML 5 and Valid CSS