Results 1 to 6 of 6

Thread: PHP - set email date

  1. #1
    Join Date
    Mar 2010
    Posts
    383

    PHP - set email date

    Hello,
    I have a php application which runs well locally with easy php. But once I put it on the server it gives me the following message: Warning: mail (): "sendmail_from" not set en php.ini or custom "From:" header missing en C: \ Opac57 \ mail.php on line 74. Should I change something in the php.ini server? I think this is because I have not set the date for the emails which are send and received. Any help will be great.

  2. #2
    Join Date
    Nov 2009
    Posts
    359

    Re: PHP - set email date

    To be added at the beginning of code:
    Code:
    ini_set ('sendmail_from', 'test@server.com');
    Or you parameters the FROM field in the header of your mail. And then you have to add the date to the above function or method.

  3. #3
    Join Date
    Jan 2010
    Posts
    126

    Re: PHP - set email date

    I need to send an email from code in php. I used the mail () function with arguments required (there is no error in the execution of the program), but the message is not sent. What are the parameters to change in php.ini?
    The Apache log shows the following message:
    Code:
    PHP Warning: mail () "sendmail_from" not set in php.ini or custom "From" header missing in C: \ \ Program Files ...

  4. #4
    Join Date
    Jan 2010
    Posts
    126

    Re: PHP - set email date

    I returned to my problem of mail () function. I set up SMTP with what you gave me. But still nothing happens ... I still have that message in the Apache log:
    Code:
    mail (): "sendmail_from" not set in php.ini or custom "From:" header missing in C: \ \ Program Files \ \ Apache Group \ \ Apache2 \ \ htdocs \ \ ...

  5. #5
    Join Date
    Sep 2009
    Posts
    131

    Re: PHP - set email date

    Yes, I did that, the call to my function Mail () is done before any reference to html tags ... But nothing works, my function Mail () I desperately returns FALSE!

  6. #6
    Join Date
    Sep 2009
    Posts
    177

    Re: PHP - set email date

    The message suggests that you can not use an address not by their server. Besides, most servers are can hand because of spam. By putting a valid address and a valid smtp to have more luck than it works.

Similar Threads

  1. Replies: 3
    Last Post: 15-09-2011, 08:32 AM
  2. Can project send email reminder of task start date?
    By Dilbert in forum Microsoft Project
    Replies: 3
    Last Post: 01-06-2011, 10:55 PM
  3. Baseline Column Date automatically updates Finish Date
    By Adam 1980 in forum Microsoft Project
    Replies: 3
    Last Post: 18-05-2011, 06:08 PM
  4. Replies: 4
    Last Post: 07-03-2008, 07:13 AM
  5. Changing start date and creating formula for finish date
    By stringse in forum Microsoft Project
    Replies: 1
    Last Post: 11-09-2006, 01:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,296,795.73124 seconds with 17 queries