[SOLVED]using an smtp server to send mail via php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ryuuka
Forum Contributor
Posts: 128
Joined: Tue Sep 05, 2006 8:18 am
Location: the netherlands

[SOLVED]using an smtp server to send mail via php

Post by ryuuka »

greetings

currently i'm trying to make a file upload site that(when a file is submitted)
sends an email to the submitter and one to the reciever with the link.
with wich the file can be downloaded.

creating this was not a problem but saying that the message should
use our local mail server is a lot more difficult.

variable explenation:
$download_mail -> for the one who is going to download it.
$upload_mail -> for the guy who uploaded it
next one is the subject -> @@@ is the company name as usual
$description -> this is description that is given on file upload
$downloadlink -> this is the link for the file that is to be downloaded

Code: Select all

mail('$download_mail, $upload_mail', 'file from @@@ is waiting', $description $downloadlink)
where do i input the mailserver?
the mail function page was useless for as far as i can tell btw
Last edited by ryuuka on Fri Dec 01, 2006 6:32 am, edited 1 time in total.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

You can't do it with mail(). But you can with Swift ;)
ryuuka
Forum Contributor
Posts: 128
Joined: Tue Sep 05, 2006 8:18 am
Location: the netherlands

Post by ryuuka »

thanks for the advice will try that
Post Reply