Dear all,
i use mail() function to send mails from linux servers and every thing was ok put when i use it on windows server i face many problems like how can i change the sender address and more so can u give me simple php script to do that on windows server.
thank you.
[56k Warn] mail from php
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Have a good read of the mail function.
To change who the email is from you must send the appropriate headers along with the email, which is all explained in the link provided.
To change who the email is from you must send the appropriate headers along with the email, which is all explained in the link provided.
- itsmani1
- Forum Regular
- Posts: 791
- Joined: Mon Sep 29, 2003 2:26 am
- Location: Islamabad Pakistan
- Contact:
only 2 ways :infolock wrote:only 2 ways : 1 use a cron job, 2 use task scheduler. Other than that, you'd have to be on your site in which the script would check to see if when it is accessed is the date you want it to send, and then it would execute.
1 use a cron job -> What is this ?(From where i can some information about it)
2 use task scheduler -> what is this?(From where i can some information about it)
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
This is normally found on Linux/Unix systems only and task scheduler on Windows.itsmani1 wrote:1 use a cron job -> What is this ?(From where i can some information about it)
I dont know the direct method to initate cron jobs because my host has cpanel and it has a menu to input cron jobs - you just need to enter the command or just the scriptname in the wizard proided in cpanel.
Take a look at the image - You'll find Cron Jobs at Row 6 Col 3:
