Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   PHP, sending e-mail with attachment (https://www.cableforum.uk/board/showthread.php?t=23956)

KingPhoenix 11-02-2005 12:10

PHP, sending e-mail with attachment
 
Hi Guys,

Having a royal pain in the arse session..........

I need to have an entry page where someone enters there e-mail address, that then goes to a PHP script, where a prewritten mail and attachment is sent to the e-mail address entered.....

Ive tried using the mail() function, this sends the e-mail, but not externally (only to local server) so need to use an smtp function (we have a relay service on our network that i can use), besides all this, the e-mail itself, when it arrives it has the attachment icon, but theres never any attachment, and also all of the headers are appearing in the body of the message....

Anyone done anything similar? or able to help?

Edit : The server is windows 2003, PHP 4.3.9

Graham M 11-02-2005 12:53

Re: PHP, sending e-mail with attachment
 
you should be able to use the mail function, you probably just need to set a SMTP server in the php.ini file.

KingPhoenix 11-02-2005 13:18

Re: PHP, sending e-mail with attachment
 
I cracked it, using phpmailer now, and it works a treat :)


All times are GMT +1. The time now is 14:50.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum