Sending via PHP Script

'Fax to Email' and 'Email to Fax' services
Post Reply
Wakie
Posts: 7
Joined: Thu Aug 10, 2006 2:18 pm

Sending via PHP Script

Post by Wakie » Mon Jan 04, 2010 12:45 am

Hi,

I'm in the process of creating a PHP script which is going to be sending out bulk faxes to my client base.

The problem I'm having is e-mails sent via my script aren't acknowledged by the Exetel fax server. I've CC'd myself on the e-mails that are being sent and all syntax and headers are fine.

I can e-mail from my e-mail client with no troubles.

Has anyone achieved a workable solution or is there something stopping these faxes for a reason?

Thanks
Wakie.

User avatar
Dazzled
Volunteer Site Admin
Posts: 5990
Joined: Mon Nov 13, 2006 1:16 pm
Location: Sydney

Re: Sending via PHP Script

Post by Dazzled » Mon Jan 04, 2010 8:47 am

Some random guesses --
Unix or Windows (no standard mail binary)? Is password a legal subject line? Attachments/mixed MIME? Looping with PHP (opens and closes SMTP for each iteration)?

Why send bulk fax emails via PHP - wouldn't a shell script be more appropriate?

Wakie
Posts: 7
Joined: Thu Aug 10, 2006 2:18 pm

Re: Sending via PHP Script

Post by Wakie » Tue Jan 05, 2010 12:08 am

Dazzled wrote: Unix or Windows (no standard mail binary)?
I'm using Unix, e-mail works fine so it's not a problem with my server.
Dazzled wrote: Is password a legal subject line?
Sure is, the password for the sending e-mail address is in the subject.
Dazzled wrote: Attachments/mixed MIME?
I have tried mixed and plain/text. When I send a basic one line of text it CC's to me, but not to the Exetel server.
Dazzled wrote: Looping with PHP (opens and closes SMTP for each iteration)?
Nope, I dump the output of the script into a variable which is inserted into the PHP mail() function.
Dazzled wrote: Why send bulk fax emails via PHP - wouldn't a shell script be more appropriate?
I have more experience writing PHP scripts, plus my contacts are in a MySQL database.

Thanks for the comments though,
Wakie.

William M
Posts: 510
Joined: Wed Mar 21, 2007 1:28 pm

Re: Sending via PHP Script

Post by William M » Mon Jan 11, 2010 9:08 am

Hi,

If you haven't already, can you please email residentialsupport@exetel.com.au with your registered email address, and the date and time which you sent the emails?

Cheers Will

Wakie
Posts: 7
Joined: Thu Aug 10, 2006 2:18 pm

Re: Sending via PHP Script

Post by Wakie » Mon Jan 11, 2010 9:14 am

Hi Will,

I've realised the sender is being picked out of the 'return-path' and because I'm using a shared host, I had to rewrite it using the -f command in the mail() function.

Thanks for the help.

Post Reply