Email from address via cronjob

DuMee

New member
Joined
Oct 13, 2008
Messages
3
Hello ppl,

I am a user of direct admin, I managed to setup an cronjob that access a php program to email. My problem is this : Is there a way the it will send the email with sending as:
<servername> on behalf of <my email>?

If I access it via the browser it send how it should, so not on behalf.

Thanks,

Remy
 
You need to show an example I am not sure what you want it to do that it is not doing.
 
Hi scsi,

This is how it is now when the actuall email header which is sended by the cronjob that access the php script. The php script is located in the public_html/ folder:

[email protected]; on behalf of; Streep mijn naam maar weg [[email protected]]

I want it to be just sended from [email protected] instead of a on behalf email.

If I access my php program via the browser (just typing in the url) the from address is just [email protected], that's how I want the cronjob to address it.

Hope this helps, or do you need additional info.
 
You need to get the script to send mail via smtp instead of just using the sendmail command.
 
Back
Top