2006 Jul 20 7:03 AM
Hi,
Is there a way to check if the email address in the receipent list is valid or not?
Even if I give wrong mail adress, in the out box it shows as message sent to the given address with out errors.
thanks
Hi,
Is there a way to check if the email address in the receipent list is valid or not?
Even if I give wrong mail adress, in the out box it shows as message sent to the given address with out errors.
thanks
2006 Jul 20 7:16 AM
I think, it is not possible. Let me know if you find out.
Thanks & Regards,
Govind.
2006 Jul 20 7:26 AM
Hi Srikanth,
If you are looking for the logic to check whether the e-mail id is valid or not, you can refer the standard BAPI: "BUPA_ADDRESS_CHANGE". It returns and error message saying e-mail is not valid, when invalid e-mail is entered.
regards,
Raj
2006 Jul 20 7:43 AM
Hi Raj,
It is possible to check an internet mail address.
But we need to give the partner number???
2006 Jul 20 9:21 AM
Hi Srikanth,
In the earlier post I had given the BAPI name that you can use as ref to build a logic to check if the e-mail is valid, in the sense it has an "@" ".com" and so on.
If you need to check whether the e-mail address is the correct one for the Business Partner, you need to check the "ADSMTP" field in the table "BP030" (Business partner Address table) by using the Business Partner Number.
Please award points if found useful.
regards,
Raj
2006 Jul 20 9:28 AM
Hi Srikanth,
The mthod IF_RECIPIENT_DIALOG_BCS~CHECK_RECIPIENT_NAME of the class CL_CAM_ADDRESS_BCS Checks a String as to Whether it Can Be a Recipient.
Regards,
Vidya.
2006 Jul 20 10:38 AM
You can check a valid emailaddress using the following code.
DATA: iv_email TYPE STING.
* Email address check
IF iv_email CP '+*.+*@+*.++*' OR
iv_email CP '+*@+*.++*' OR
* Email format is correct. Do further checks.
* Check for invalid characters
CONDENSE iv_email NO-GAPS.
IF iv_email CO 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890.@-_ '.
* Email address is correct.
ELSE.
* Email address contains invalid characters
ENDIF.
ELSE.
* Email address has wrong format.
ENDIF.Hope that helps.
Regards, Adam
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |