Sending mail to SMTP(for e.g. gmail) :
Mailing.cs file
Steps:
1. Open the file mailingService.cs & make following changes
Changes:
- Change 'from' address to your email address
- Change 'to' address to receivers email address
- In function new MailAddress(from, "Senders Name" , System.Text.Encoding.UTF8) change senders name to your name
- Write Subject for your mail in mail.Subject
- Write message for your mail in mail.Body
- Change the user Credentials by writing your email password
3. Run the code
Sending mail to POP3(for e.g. yahoo) :
Steps:
1. Open the file emailPOP3.cs & make following changes
Changes:
1. Open the file emailPOP3.cs & make following changes
Changes:
- Change 'oMail.To' address to your email address
- Change 'oMail.Subject' address to receivers email address
- In function oMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "Senders Email ID") change Senders Email ID to your username.
- Write Subject for your mail in oMail.Subject
- Write message for your mail in oMail.Body
- Change the user Credentials by writing your email password in oMail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "Senders Email's Password")
2. Copy the File to your root directory
3. Call SendIssueEmail() function from your script
Check Out the Code in PHP