hi i want to send mails with PHP with SMTP authorization. i have an ASP script that is working. can anybody convert this to PHP? <% Sub sendEmail(eReceiver, eSubject, eBody) Set iConf = CreateObject("CDO.Configuration") Set myMail = CreateObject("CDO.Message") Set Flds = iConf.Fields Flds(cdoSMTPServer) = "server01" Flds(cdoSMTPServerPort) = 25 Flds(cdoSendUsingMethod) = cdoSendUsingPort Flds(cdoSMTPConnectionTimeout) = 120 Flds(cdoSMTPAccountName) = "COrder@deft.gr" Flds(cdoSendUserName) = "COrder" Flds(cdoSendPassword) = "2507" Flds(cdoSMTPAuthenticate) = cdoBasic Flds.Update Set myMail.Configuration = iConf myMail.Subject= eSubject myMail.From= "COrder@deft.gr" 'eSender myMail.To=eReceiver myMail.Bcc= "COrder@deft.gr" myMail.HTMLBody = eBody myMail.Send set myMail = nothing set iConf = nothing End Sub %> Code (markup): thanks in advance
PHPMailer example: http://blog.taragana.com/index.php/archive/how-to-send-mails-using-smtp-server-in-php/ PEAR Mail package example: http://email.about.com/od/emailprogrammingtips/qt/et073006.htm