Welcome! Log In Create A New Profile

Advanced

Sending Registration Confirmation Emails

Posted by 77928490 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Sending Registration Confirmation Emails
May 01, 2013 02:13PM
Hi all,

Is anyone else struggling sending registration confirmation emails:

My code is below but I receive php.ini notices about smtp_port = 25.

Language: PHP
//Email registration confirmation $to=$form_value[14]; $mailsent=mail($to,$subject,$emailmessage,$headers); echo $mailsent ? "Mail Sent" : "Mail Failed"; if($mailsent){ $message=$message."<br>"."Email successfully sent to ".$to; } else{ $message=$message."<br>"."Registration Email Not Sent."; }

So my questions are:-

- do we need to define config parameters in the config file?
- can emails work through gmail?
- is the code correct? Hope so.

Look forward to your assistance.

Cheers
Ian
avatar
Mac
Re: Sending Registration Confirmation Emails
May 02, 2013 07:42AM
Answered elsewhere - you cannot send emails using XAMPP or EasyPHP because they are not connected to the Internet
Re: Sending Registration Confirmation Emails
May 02, 2013 09:16PM
Thanks Mac,

Managed to find a solution in the previous issues raised.

Ended up using PHPMailer successfully.

Thanks again

Ian
Sorry, only registered users may post in this forum.

Click here to login